Ron Adam schrieb: > Would it be possible for attrview to be a property? Sure. It might conflict with a proper name of an attribute, of course. > Something like... (Probably needs more than this to handle all cases.) > > class obj(object): > def _attrview(self): > return self.__dict__ > attr = property(_attrview) That wouldn't work: you really need to invoke the entire attribute lookup machinery (e.g. to find methods, invoke properties, and so on). Also, for 2.6, it wouldn't support old-style classes. Regards, Martin
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