I have made the python-iter@yahoogroups.com mailing list moderated, and will now start bouncing messages that are sent to it --- please move all discussion to:...
... The sentinel method is for use with existing functions, that return a sentinel value (like "" or None or whatever.) Comparing to those is not terribly...
... Greg Wilson: I second the motion. ... Yup. Being able to iterate directly over a dictionary's keys w/out listifying will make things more efficient, as...
I've got a fairly complete implementation of iterators along the lines of Ping's PEP (slightly updated). This is available for inspection through CVS: just...
Hi, folks. I'll be shutting down this list at the end of this week. Please subscribe to the python-iterators list through the Python SourceForge page before...
Hi, everyone. There is now a python-iterators list at SourceForge (go to python.sourceforge.net, look under lists). If you have not already subscribed to it,...
... I see nothing special about __iter__. It's just a common functionality of some kinds of objects, like __getitem__, keys, __len__, __str__ or readline. (The...
Hi all, I believe Guido has pretty much made up his mind on the subject of iterators and i wanted to inform you of the current plan. Here is my understanding...
I agree that having "blah in dict" iterate over/check keys, rather than the values, is the natural behavior. I even think I know how to explain it to...
This is only a half-formed idea -- and if it is already covered by something I have missed in the ongoing discussion, I apologise :) I just started thinking...
While thinking about dynamic programming and iterators with memory, the thought of multidimensional iterators also struck me. (To combine the two would be...
Someone please help me work through this new syntax. Suppose I have a data structure in an object, MyTree, which contains tree-structured data. I now write two...
I may have answered some of my own question. It appears, on closer reading, that my original code: # Loop One: for node in myTree.getDepthFirstIterator(): ...
Not all that important -- but it isn't really necessary to quote entire mails if you only want to say "me too", or "not me", or "that's interesting". In fact,...
Hi, a month ago I came to Python, to satisfy raising needs for an interpreter (aka scripting). I like to say, analyzeing also moust promising alternatives (in...
First of all: I'm a fan of consistency. I think having "in"-tests checking the keys of a dictionary is arbitrary and ugly. (And I also think we should have a...
Hi, everyone. I thank you all for your participation and for contributing your ideas on the issues surrounding iterators. I'm collecting some of the points...
Hi again. I've seen a few responses with the sentiment that there is a lot of stuff going on in this proposal, so i just wanted to take a moment to explain why...
... It would be very handy if *all* containers provided these three members: C.keys returns a list of legal indices, C.values returns values, and C.items...
Just a thought on this topic, as a reaction to the multiple proposals and concerns: Smalltalk has a 20-year history, building quite a body of design and...
... Suprisingly, it is possible: The rule is that the 'in' operator loops over or checks for membership in a list (strings give a list of characters, ...
When thinking about dictionaries and iterators, several issues gave me heartburn. Working through each of them pointed to revised proposal for iterator syntax....
Hi, folks. Now that Marc-Andre has arranged a mailing list for technical discussion of Python iterators at SourceForge (see his earlier mail to this list),...
Hi, everyone. You're getting this message because you've sent me comments about PEP 234 at some point or other, and i'd like to get us all in the same forum...
Hi! I want to express my opinion about iterators. The secret agenda of this message (teehee) is to test that I can post to the list, and that I'm getting...
Hi, Marc. I'm trying to move the iterator discussion over to python-iter@yahoogroups.com, so i hope you join. For others on python-iter -- this message is a...