[Python-Dev] defaultdict and on_missing() (original) (raw)

Greg Ewing greg.ewing at canterbury.ac.nz
Fri Feb 24 07:54:07 CET 2006


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



More information about the Python-Dev mailing list