Search the web
Sign In
New User? Sign Up
python-iter
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Show off your group to the world. Share a photo of your group with us.

Best of Y! Groups

   Check them out and nominate your group.

Messages

  Messages Help
Advanced
Messages 178 - 207 of 207   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
178
[Raymond Hettinger] ... +1 here. Curiously, the Icon language defined iteration over (its flavor of) dicts to return the values, not the keys. This struck me...
Tim Peters
tim.one@...
Send Email
Mar 14, 2001
7:48 am
179
[ Guido van Rossum :] ... [gzeljko:] ... [ Guido van Rossum :] ... Maybe we can use some atribute only for taging iterator. So if looking for (say)...
gzeljko
gzeljko@...
Send Email
Mar 14, 2001
12:06 pm
180
... Sounds good to me. I'll start coding. (Has anybody checked out the iter-branch code from CVS yet? I'd like to hear some comments!) --Guido van Rossum...
Guido van Rossum
guido@...
Send Email
Mar 14, 2001
3:33 pm
181
... Let's me elaborate: 1. I'm all in favor of simple (one pass, read only) iterators as anything callable. ( and YES, your right, with strong 'concept check',...
gzeljko
gzeljko@...
Send Email
Mar 14, 2001
4:45 pm
182
... No. You should not wrap body in the exception handler. def for_loop(seq, body): it = iter(seq) while 1: try: value = it.next() except IndexError: break ...
qrczak@...
Send Email
Mar 14, 2001
5:59 pm
183
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...
Greg Wilson
gvwilson@...
Send Email
Mar 14, 2001
8:20 pm
184
From: "Greg Wilson" <gvwilson@...> ... Couldn't all containers have container.keys and container.values as two standard iterators? (And then we...
Magnus Lie Hetland
mlh@...
Send Email
Mar 14, 2001
8:43 pm
185
... There isn't. The question may be meaningless (e.g. if 'x' is a tree). ... Wrap your different representations in a class that presents a uniform ...
Guido van Rossum
guido@...
Send Email
Mar 14, 2001
11:33 pm
186
... May it really be meaningless? You iterate over something "in" x... If it's a value, then that's that -- if it's an index/key, you can get the corresponding...
Magnus Lie Hetland
mlh@...
Send Email
Mar 15, 2001
8:19 pm
187
... Yes. An easier example: a set. Elements of the set are neither keys nor values. If you claim that they are keys or values, please define keys or values of...
qrczak@...
Send Email
Mar 15, 2001
9:26 pm
188
... Well -- I'm sure there are no keys in a set, but I think it's natural to see them as values, no? Isn't a set a collection of values? And, in general, if...
Magnus Lie Hetland
mlh@...
Send Email
Mar 15, 2001
9:36 pm
189
Opinions? I'm lukewarm -- and "enum" certainly suggests the wrong thing to folks who know Pascal, C or C++... --Guido van Rossum (home page:...
Guido van Rossum
guido@...
Send Email
Mar 16, 2001
2:51 pm
190
As I understand it, there are two options (the latter being implemented): a) Have an __iter__ to fetch a new iterator, and have __next__ to fetch the next...
Clark C. Evans
cce@...
Send Email
Mar 16, 2001
7:02 pm
191
I must say, I don't like either of the previous solutions since they both have disadvantages. This makes me wonder if our context is broad enough? It seems...
Clark C. Evans
cce@...
Send Email
Mar 16, 2001
7:44 pm
192
This previous proposal was kinda brain dead, as it requires the introduction of a "interface" type which is "not pythonic". However, I was wondering. Assume...
Clark C. Evans
cce@...
Send Email
Mar 17, 2001
2:18 am
193
... This is already implemented: look at the Queue module: http://python.sourceforge.net/devel-docs/lib/module-Queue.html To push an item into the Queue, you...
Guido van Rossum
guido@...
Send Email
Mar 17, 2001
4:26 am
194
... 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...
qrczak@...
Send Email
Mar 17, 2001
1:01 pm
195
Thank you for responding -- evidently I'm not being clear (did you read the second post, and not the brain-dead first version?). ... __iter__ has two different...
Clark C. Evans
cce@...
Send Email
Mar 17, 2001
5:54 pm
196
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,...
Greg Wilson
gvwilson@...
Send Email
Mar 22, 2001
5:08 pm
197
[Greg Wilson] ... I advise against it: of the three Python lists on SF, the "archives" link appears functional only for the python-numerics list. A mailing...
Tim Peters
tim.one@...
Send Email
Mar 25, 2001
4:17 am
198
... Not saying that it is, but this *could* be a standard mail man feature: until the first messages is posted, the archives don't exist. --Guido van Rossum...
Guido van Rossum
guido@...
Send Email
Mar 25, 2001
3:17 pm
199
... There were msgs to the iterators list before. Perhaps not to the set list, thoough. Just sent a test msg to each....
Tim Peters
tim.one@...
Send Email
Mar 25, 2001
6:17 pm
200
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...
Greg Wilson
gvwilson@...
Send Email
Mar 28, 2001
7:57 pm
201
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...
Guido van Rossum
guido@...
Send Email
Apr 20, 2001
3:28 am
202
[Guido] ... My answer is both! *Most* of what you described is no longer controversial; 2.2 is mondo pre-alpha (so we're not "stuck" with anything you check...
Tim Peters
tim.one@...
Send Email
Apr 20, 2001
7:15 am
203
... I don't totally agree. Removing something from the trunk is not as easy as not adding it ;) But I agree that, since the *concept* of iterators, and the ...
Thomas Wouters
thomas@...
Send Email
Apr 20, 2001
8:38 am
204
... 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...
Thomas Wouters
thomas@...
Send Email
Apr 20, 2001
9:27 am
205
... 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...
Greg Wilson
gvwilson@...
Send Email
Apr 20, 2001
12:16 pm
206
I've redirected replies to python-iterators@.... The archives work now: http://www.geocrawler.com/lists/3/SourceForge/9283/0/ --Guido van...
Guido van Rossum
guido@...
Send Email
Apr 20, 2001
2:39 pm
207
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:...
Greg Wilson
gvwilson@...
Send Email
Apr 21, 2001
2:29 pm
Messages 178 - 207 of 207   Oldest  |  < Older  |  Newer >  |  Newest
Advanced
Add to My Yahoo!      XML What's This?

Copyright © 2007 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help