Best way to create a class dynamically on the fly?
whisper at oz.net
Sat Sep 28 21:34:09 EDT 2002
I understood the question as 'what do you stuff into a variable to make it
behave like a class at runtime', not 'when is a class declaration is used to
create a class instance.'
Seattle, WA USA
> -----Original Message-----
> From: python-list-admin at python.org
> [mailto:python-list-admin at python.org]On Behalf Of Evan
> Sent: Saturday, September 28, 2002 18:02
> To: python-list at python.org
> Subject: Re: Best way to create a class dynamically on the fly?
> Robert Oschler wrote:
> > What is the best way to create a Python class dynamically at runtime?
> ALL Python classes are created dynamically at runtime. The following is
> not a declaration in the sense that you're accustomed to from C/C++, it
> is normal code executed when the containing file is run (or imported):
> Evan @ 4-am
More information about the Python-list