[Python-Dev] defaultdict and on_missing()
Greg Ewing
greg.ewing at canterbury.ac.nz
Fri Feb 24 07:54:07 CET 2006
More information about the Python-Dev mailing list
Fri Feb 24 07:54:07 CET 2006
- Previous message: [Python-Dev] defaultdict and on_missing()
- Next message: [Python-Dev] PEP 358 (bytes type) comments
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Thomas Wouters wrote: > __methods__ are methods that should only be > called 'magically', or by the object itself. > 'next' has quite a few usecases where it's > desireable to call it directly That's why the proposal to replace .next() with .__next__() comes along with a function next(obj) which calls obj.__next__(). -- Greg
- Previous message: [Python-Dev] defaultdict and on_missing()
- Next message: [Python-Dev] PEP 358 (bytes type) comments
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list