Georg Brandl wrote: > Sure, you could use ``iter(())`` or ``iter([])``, but for consistency's sake > wouldn't it make sense for ``iter()`` to return an empty iterator, as ``str()`` > returns an empty string etc.? I had no idea that "str()" or "int()" would do that. "file()" certainly doesn't! :) I don't really think there's much reason to make "iter()" work. As you say, "iter([])" works just fine. For those rare times you want an empty iterator, I don't think the two extra characters is much of a price to pay. -Andrew.
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