On Wednesday 10 March 2004 08:43 pm, Aahz wrote: > That's why I said "kind of callable"; from the user's POV, they act like > callables because you invoke them with call syntax, just like methods. My first reaction to this was "Since when??!?" If the only descriptors you're thinking about are things that return callables from the __get__() method, it makes sense that you've made this mistake. What needs to be considered though is that not all descriptors provide callable results. Remember that "property" is a descriptor type; instances of property are not normally callable. -Fred -- Fred L. Drake, Jr. <fdrake at acm.org> PythonLabs at Zope Corporation
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