Two functionaly identical functions - different results ??!

2008-11-19 Thread Barak, Ron
Hi Guys, I cannot see any difference between read1() and read2() below, and yet, one is okay, the other give an exception. In the first run, read2() is executed, and as expected, the text file is printed $ cat ./gzip_try.py import gzip FILE = text_file.txt def read2(): try: fl =

Re: Two functionaly identical functions - different results ??!

2008-11-19 Thread Chris Rebert
On Wed, Nov 19, 2008 at 11:24 PM, Barak, Ron [EMAIL PROTECTED] wrote: Hi Guys, I cannot see any difference between read1() and read2() below, and yet, one is okay, the other give an exception. In the first run, read2() is executed, and as expected, the text file is printed $ cat