peter wrote: > I still think the third form is more explicit, but I am > +0 on making zip() a sequence method. Remember the "string join" debate? There is no sequence base class in Python (it's an informal inter- face, not a type), so where would you put that method? As specified, "zip" has a *single* implementation which takes any number of objects implementing the sequence interface, and return an object implementing the same interface. Can it be much simpler? -1 on a method. Python is moving towards more genericness (if you accept an integer/sequence/string, you should be able to deal with any kind of integer/sequence/string). Adding a method would be a move in the opposite direction. </F>
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