2.2 <-> 2.3 surprise
From: Roman Suzi (rnd_at_onego.ru)
Date: 05/31/04
- Next message: Shalabh Chaturvedi: "Re: 2.2 <-> 2.3 surprise"
- Previous message: David Fraser: "Re: mod_python confusion"
- Next in thread: Shalabh Chaturvedi: "Re: 2.2 <-> 2.3 surprise"
- Maybe reply: Shalabh Chaturvedi: "Re: 2.2 <-> 2.3 surprise"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 31 May 2004 21:13:38 +0400 (MSD) To: python-list@python.org
Hi!
I really like python 2.3 but sometimes I write for 2.2 too.
New cool feature of doing:
f = open('file')
for line in f:
do_something(line)
works strange in 2.2: I can't just quit first loop and do:
for line in f:
do_some_more(line)
(I as skipping message header by first loop and processing body
the the second).
In 2.3 it works as intended! Of course, simple refacture made it one loop...
Sincerely yours, Roman Suzi
-- rnd@onego.ru =\= My AI powered by GNU/Linux RedHat 7.3
- Next message: Shalabh Chaturvedi: "Re: 2.2 <-> 2.3 surprise"
- Previous message: David Fraser: "Re: mod_python confusion"
- Next in thread: Shalabh Chaturvedi: "Re: 2.2 <-> 2.3 surprise"
- Maybe reply: Shalabh Chaturvedi: "Re: 2.2 <-> 2.3 surprise"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]