Thoughts on PEP315
Jordan Krushen
jordan at krushen.com
Tue Sep 23 01:35:57 EDT 2003
On Tue, 23 Sep 2003 06:08:06 +0100, Stephen Horne wrote:
> for ever :
> <statements>
> break if <condition> :
You could always hide something similar in a generator:
def forever():
while True: yield True
for now in forever():
print 'looping forever...'
...although I must admit, I don't really mind "while True:" that much.
syntactic-sugar-is-bittersweet-ly y'rs,
J.
More information about the Python-list
mailing list