A "scopeguard" for Python

Robert Kern robert.kern at gmail.com
Thu Mar 4 22:35:13 EST 2010


On 2010年03月04日 15:12 , Mike Kent wrote:
> On Mar 4, 12:30 pm, Robert Kern<robert.k... at gmail.com> wrote:
>>> He's ignorant of the use cases of the with: statement, true.
>> <humor> Ouch! Ignorant of the use cases of the with statement, am I?
> Odd, I use it all the time.</humor>

No, I was referring to Jean-Michel, who was not familiar with the with: statement.
>> Given only your
>> example of the with: statement, it is hard to fault him for thinking that try:
>> finally: wouldn't suffice.
>> <humor> Damn me with faint praise, will you?</humor>

Also talking about Jean-Michel. :-)
-- 
Robert Kern
"I have come to believe that the whole world is an enigma, a harmless enigma
 that is made terrible by our own mad attempt to interpret it as though it had
 an underlying truth."
 -- Umberto Eco


More information about the Python-list mailing list

AltStyle によって変換されたページ (->オリジナル) /