> Guido van Rossum wrote: > > In particular, classic classes can't define __get__ to the effect > > above. > > Why __get__() and __set__() and not get() and set()? Because they're mapped to the dispatch slots tp_descr_get and tp_descr_set. (Note that PEP 252 has get() and set() in some places, like the C API section. This is a mistake.) --Guido van Rossum (home page: http://www.python.org/~guido/)
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