Re: [Python-Dev] "begin" as keyword for pep 340

2005-05-04 Thread Mitja Marn
On 5/4/05, Reinhold Birkenfeld <[EMAIL PROTECTED]> wrote: > PS: What about "using"? Too C#-ish? Another idea from a hobbyist programmer: "holding" or mabe just "hold". Like this: hold locked(myLock): # Code here executes with myLock held. The lock is # guaranteed to be r

Re: [Python-Dev] "begin" as keyword for pep 340

2005-05-04 Thread Reinhold Birkenfeld
Adam Souzis wrote: > I'm a bit surpised that no one has yet [1] suggested "begin" as a > keyword instead "block" as it seems to express the intent of blocks > and is concise and readable. For example, here are the examples in > PEP 340 rewritten using "begin": > > begin locking(): >... I don