[prev in list] [next in list] [prev in thread] [next in thread] 

List:       python-dev
Subject:    Re: [Python-Dev] PEP 310 and exceptions
From:       Josiah Carlson <jcarlson () uci ! edu>
Date:       2005-04-24 18:05:22
Message-ID: 20050424110041.63E4.JCARLSON () uci ! edu
[Download RAW message or body]


Toby Dickenson <tdickenson@devmail.geminidataloggers.co.uk> wrote:
> 
> On Sunday 24 April 2005 07:42, Nick Coghlan wrote:
> > Shane Hathaway wrote:
> 
> > > While we're on the subject of block handler method names, do the method
> > > names need four underscores?  'enter' and 'exit' look better than
> > > '__enter__' and  '__exit__'.
> 
> I quite like .acquire() and .release(). 
> 
> There are plenty of classes (and not just in the threading module) which 
> already have methods with those names that could controlled by a 'with'. 
> 
> Those names also make the most sense in the C++ 'resource acquisition' model.

Perhaps, but names for the equivalent of "acquire resource" and "release
resource" are not consistant accross modules.

Also, re-read Nick Coghlan's email with message id
<426B3FCA.2040605@gmail.com>.

 - Josiah

_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: http://mail.python.org/mailman/options/python-dev/python-dev%40progressive-comp.com
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic