> Guido van Rossum writes: > > def keys(self): > > return [c.objptr for c in self.__dict.keys() if c.objptr is not NULL] > > I presume you meant values() here rather than keys()? The keys() > method could simply delegate to self.__dict. I imagine most of us can > fill in any additional dictionary methods, though. Oops, I was indeed confused. I think I meant this: def keys(self): return [k for k, c in self.__dict.iteritems() if c.objptr is not NULL] And indeed I expected that you could extrapolate to the other methods. :-) --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