In defense of PEP0238 (plus PS)
Kirby Urner
urner at alumni.princeton.edu
Fri Jul 27 13:00:10 EDT 2001
I've talked myself back into supporting PEP0238, after many of
the eloquent posts here had swayed me the other way. A
latest snap shot of my thought process:
http://mail.python.org/pipermail/edu-sig/2001-July/001579.html
Kirby
PS: I'm really enjoying the generators and iterators stuff. 2.2a
is a lot of fun. The language is steadily becoming more powerful.
For more on this:
http://mail.python.org/pipermail/edu-sig/2001-July/author.html
posts by Kirby Urner (me)
Note, in http://mail.python.org/pipermail/edu-sig/2001-July/001548.html
there's a coding error, should read:
def primes():
"""
Generator:
Yield next higher prime, starting at 2, accruing
successive primes in global list pr
"""
global pr
pr = [2]
i,new = 1,1
^^^^^^^
Of course the 2.2a docs themselves contain examples.
More information about the Python-list
mailing list