[Python-Dev] iterator API in Py3.0 (original) (raw)
Phillip J. Eby pje at telecommunity.com
Sat Mar 4 21:45:03 CET 2006
- Previous message: [Python-Dev] iterator API in Py3.0
- Next message: [Python-Dev] iterator API in Py3.0
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
At 09:34 AM 3/4/2006 -0800, Anna Ravenscroft wrote:
I think this is a really good point. next() is supposed to get used, by coders, in regular code - so it shouldn't be next. I can understand the desire for both forms, although that seems it would clutter things up unnecessarily - particularly if the two do the same thing.
By this argument, we should be using ob.len() instead of len(ob), and ob.iter() instead of iter(ob).
- Previous message: [Python-Dev] iterator API in Py3.0
- Next message: [Python-Dev] iterator API in Py3.0
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]