[Python-3000] PEP: rename it.next() to it.next(), add a next() built-in (original) (raw)

Ka-Ping Yee python at zesty.ca
Tue Mar 6 03:56:29 CET 2007


On Mon, 5 Mar 2007, Greg Falcon wrote:

I agree that file.read() is a different beast than iter.next(). However, file.write() is a counterexample to your argument here. It gets called by Python syntax, and yet doesn't (and shouldn't) have double underscores.

>>> print >> object(), "foo" Traceback (most recent call last): ... AttributeError: 'object' object has no attribute 'write'

True... and this is going away in Python 3.0.

-- ?!ng



More information about the Python-3000 mailing list