On Friday, February 14, 2003, at 12:15 PM, Skip Montanaro wrote: > 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. But this would merely be trading space for speed, where neither is necessary. What I'm proposing (and I think what Guido already had on his list) is that the instancemethod object never be created, as you can optimize the syntax to mean "call this method" rather than "get this attribute, call the result".
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4