Hi, 2012/3/8 Ethan Furman <ethan at stoneleaf.us>: >>> A little more experimentation shows that not all is well, however: >>> >>> --> dir(Test) >>> Traceback (most recent call last): >>> File "<stdin>", line 1, in <module> >>> TypeError: unorderable types: int() < str() >> >> >> So what conclusion do you draw? > > > That other changes (that have definitely been for the better) are making the > 'feature' of non-string keys in namespace dicts less and less friendly. > Rather than letting it slowly fall into complete shambles we should go > ahead and deprecate, then remove, that functionality. Not that I disagree with the conclusion, but the obvious thing to do here is to fix dir() and return only string attributes, i.e. those you can access with getattr. Cheers, -- Amaury Forgeot d'Arc
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