Raymond Hettinger <python <at> rcn.com> writes: > > Would it make sense to provide a default ordering whenever the types are > the same? This doesn't work when they are not the same :-) Instead, you could make the decorating a bit more sophisticated: decorated = [(key, id(value), value) for key, value in blah(values)] or even: decorated = [(key, n, value) for n, key, value in enumerate(blah(values))]
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