Skip Montanaro wrote: > I suggested that since the standard library code is commonly used as an > example of basic Python principles (that's probably not the right word), it > should uphold that ideal tuple/list distinction. Raymond then translated > > for x in [1,2,3]: > > to > > for x in frozenset([1,2,3]): I may be missing something here (didn't follow the whole thread) but those two are not functionally equal. The docstring on frozenset sais "Build an immutable unordered collection." So there's no guarantee that the elements will return from the frozenset iterator in the order that you constructed the frozenset with, right? --Irmen
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