Ondrej> i.e. the str on list (and tuple and dict) calls repr() on the Ondrej> elements, instead of str. This really seems to me like a bug. Ondrej> Because if I wanted the repr() representation, I'd call repr() Ondrej> on the list/tuple/dict. If I want a nice readable Ondrej> representation, I call str(). That's the philosophy, no? I think this is the case which calls for the distinction: >>> str(["1", "2", "3"]) "['1', '2', '3']" >>> str([1, 2, 3]) '[1, 2, 3]' If the first case did as you suggested you couldn't distinguish it from the second. Skip
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