Delaney, Timothy (Tim) wrote:
> RIIA - Resource Initialisation is Acquisition
>
> Python is adding an RIIA mechanism in 2.5 - look at the "with"
> statement.
>
Ah, thanks, thats exactly what I was looking for.
Gabriel Genellina wrote:
> Yes: the try/finally construct, which is *not* the same
At Tuesday 12/9/2006 15:37, Andreas Huesgen wrote:
In c++, it is possible to write a locking system similar to the one below:
void myFunction()
{
# create a resource lock. Locks some resource
ResourceLock myLock;
# the following line may throw an exception
doSt
Andreas Huesgen wrote:
> In c++, it is possible to write a locking system similar to the one
> below:
>
>
> void myFunction()
> {
> # create a resource lock. Locks some resource
> ResourceLock myLock;
>
> # the following line may throw an exception
> doStuff();
> }
RII
Hello,
I have a question refering python's reference counting/garbage
collection in combination with thrown exceptions.
I'm very new to this mailinglist, so I hope, that this question has not
been asked and answered before.
In c++, it is possible to write a locking system similar to the one be