Scope of instantiated class
Jeff Layton
jeffrey.b.layton at lmco.com
Sun Jul 21 11:08:09 EDT 2002
Jeff Layton wrote:
> Hello,
>
> If I instantiate a class in a function,
> leave the function via a return and then
> go back to the same function, will the
> instantiation of the class still be there
> or is it local to the function so it is
> "destroyed"? (Does this make any sense?)
>
> TIA,
>
> Jeff
>
Oops, as a follow-up the function the instantiates
the class and the routine it returns to are in
different modules.
Sorry about the confusion,
Jeff
More information about the Python-list
mailing list