piiiipes!!

Ignacio Vazquez-Abrams ignacio at openservices.net
Fri Aug 31 05:35:46 CEST 2001


On 30 Aug 2001, Jeff Grimmett wrote:

>   while (t = file_1_read_object.read()):
>      process_stuff()
>      file_2_write_object.write(t)

t = file_1_read_object.read()
while t:
  process_stuff()
  file_2_write_object.write(t)
  t = file_1_read_object.read()

Granted, it's ugly, but it works.

-- 
Ignacio Vazquez-Abrams  <ignacio at openservices.net>





More information about the Python-list mailing list