[Python-Dev] make iter() return an empty iterator?
g.brandl at gmx.net
Fri Aug 3 10:23:55 CEST 2007
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.?
Thus spake the Lord: Thou shalt indent with four spaces. No more, no less.
Four shall be the number of spaces thou shalt indent, and the number of thy
indenting shall be four. Eight shalt thou not indent, nor either indent thou
two, excepting that thou then proceed to four. Tabs are right out.
More information about the Python-Dev