[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
- Previous message: [Python-3000] Custom traceback entries (Exception tracebacks and PEP 3101)
- Next message: [Python-3000] Exception tracebacks and PEP 3101
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-3000] Custom traceback entries (Exception tracebacks and PEP 3101)
- Next message: [Python-3000] Exception tracebacks and PEP 3101
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]