En Sat, 06 Jun 2009 03:03:34 -0300, escribió:
On Jun 5, 8:56 pm, Robert Dailey wrote:
Is it possible to create an object in Python that will clean itself up
at function exit? I realize destruction of objects may not occur
immediately and can be garbage collected, but this functionality would
On Jun 5, 8:56 pm, Robert Dailey wrote:
> Is it possible to create an object in Python that will clean itself up
> at function exit? I realize destruction of objects may not occur
> immediately and can be garbage collected, but this functionality would
> still be great to have. Consider the follow
On Jun 5, 9:07 pm, Chris Rebert wrote:
> On Fri, Jun 5, 2009 at 6:56 PM, Robert Dailey wrote:
> > Is it possible to create an object in Python that will clean itself up
> > at function exit? I realize destruction of objects may not occur
> > immediately and can be garbage collected, but this funct
On Fri, Jun 5, 2009 at 6:56 PM, Robert Dailey wrote:
> Is it possible to create an object in Python that will clean itself up
> at function exit? I realize destruction of objects may not occur
> immediately and can be garbage collected, but this functionality would
> still be great to have. Conside
On Fri, Jun 5, 2009 at 6:56 PM, Robert Dailey wrote:
> Is it possible to create an object in Python that will clean itself up
> at function exit? I realize destruction of objects may not occur
> immediately and can be garbage collected, but this functionality would
> still be great to have. Consi
Is it possible to create an object in Python that will clean itself up
at function exit? I realize destruction of objects may not occur
immediately and can be garbage collected, but this functionality would
still be great to have. Consider the following function:
def do_stuff():
foo = scope_ob