readlines() question

Aahz Maruch aahz at netcom.com
Fri Jun 9 18:41:42 EDT 2000


In article <Pine.GSO.4.10.10006092339580.29560-100000 at sundial>,
Moshe Zadka  <moshez at math.huji.ac.il> wrote:
>
>Ummmmm...I'm known as a professional paranoid in many places, so I usually
>code like:
>
>my_file = open("blah")
>try:
>	...my_file.read, my_file.readlines, etc.
>finally:
>	my_file.close()

And if you're *really* paranoid ;-)

try:
	my_file = open("blah")
	...my_file.read, my_file.readlines, etc.
finally:
	my_file.close()
--
                      --- 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