readlines() question

Aahz Maruch aahz at netcom.com
Sat Jun 10 02:15:40 EDT 2000


In article <Pine.GSO.4.10.10006100839410.1511-100000 at sundial>,
Moshe Zadka  <moshez at math.huji.ac.il> wrote:
>On 9 Jun 2000, Aahz Maruch wrote:
>>
>> And if you're *really* paranoid ;-)
>> 
>> try:
>> 	my_file = open("blah")
>> 	...my_file.read, my_file.readlines, etc.
>> finally:
>> 	my_file.close()
>
>Not really. 

Never mind.  I got try/except and try/finally mixed up.  (I don't
usually use try/finally.)
--
                      --- Aahz (Copyright 2000 by aahz at netcom.com)

Androgynous poly kinky vanilla queer het    <*>     http://www.rahul.net/aahz/
Hugs and backrubs -- I break Rule 6

"I love you."
"Duhhhh!"  --SFJ



More information about the Python-list mailing list