At 09:02 AM 1/13/05 -0800, Guido van Rossum wrote: >[Armin] > > I guess that a name-based hack in type_new() to turn all __*__() > methods into > > data descriptors would be even more obscure? > >To the contary, I just realized in this would in fact be the right >approach. In particular, any *descriptor* named __*__ would be >considered a "data descriptor". Non-descriptors with such names can >still be overridden in the instance __dict__ (I believe this is used >by Zope). It should check that the __*__-named thing isn't *already* an override descriptor, though.
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