[Python-Dev] CALL_ATTR, A Method Proposal

Skip Montanaro skip@pobox.com
Fri, 14 Feb 2003 12:15:37 -0600


I thought one thing Glyph was trying to address was the single-use nature of
the instancemethod object.  Once it's been created, can't you just cache it
in the instance for later reuse?  When it's needed, you borrow it from the
instance, use it, then put it back (assuming the slot in the instance is
still empty, otherwise you DECREF it).  I think that would make it thread
safe.

Skip