Guido van Rossum: [...] > Thinking aloud: > > Would it be useful to also implement popkey(), popvalue(), popitem(), > which would remove the first item and then return the relevant part of > it? Since [].pop() takes in optional index as parameter which defaults to the *LAST* element, it would be better to make the name explicit: .popfirstitem() This is however some what long. DEJAVU: the {}.setdefault() discussion. May it is better to leave these methods out for the sake of simplicity, although they look useful. Regards, Peter
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