[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn commit: rev 4552 - in trunk/subversion: include libsvn_wc libsvn_client tests/clients/cmdline

From: <brane_at_xbc.nu>
Date: 2003-01-24 07:56:24 CET

cmpilato@collab.net wrote:

cmpilato@collab.net writes:

  

And here. I also like: contents = open(foo_path, rb).read()
      

I do too. Had I not just copy-n-pasted that code from elsewhere, I
woulda probably done it that way.
    

...and I woulda been doing something silly if I had. If I toss away
the file object, I have nothing to .close().
  

So what? The file object loses all references in that very same
statement, and close() is called automatically when the object is destroyed.

Remember, this is Python, not C! :-)

-- 
Brane Čibej   brane_at_xbc.nu   http://www.xbc.nu/brane/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 14 02:12:48 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.