Dynamic class construction?
Adrian Eyre
a.eyre at optichrome.com
Mon Jan 31 13:10:51 EST 2000
>> There's already a module which does this...
> I sorta thought there might be a module that does this, but I
> couldn't find it.
You didn't look very hard :)
http://www.python.org/doc/current/lib/module-new.html
> Um, I still can't find it. It appears to be a builtin module -
> new.__doc__ says
> ' Functions to create new objects used by the interpreter.
>
> You need to know a great deal about the interpreter to use this!',
> which is helpful,
I thought so :)
> It's not in the "module index", I don't find any interesting
> files contaning the text "classobj", etc.)
What? This one?
http://www.python.org/doc/current/modindex.html
Ah. Be aware this module was only introduced in 1.5.2 IIRC.
--------------------------------------------
Adrian Eyre <a.eyre at optichrome.com>
http://www.optichrome.com
More information about the Python-list
mailing list