What is the name of the name space I am in?

Chris Rebert clp2 at rebertia.com
Mon Jul 5 06:03:13 EDT 2010


On Mon, Jul 5, 2010 at 2:07 AM, Anthra Norell <anthra.norell at bluewin.ch> wrote:
> I try to use "new.new.classobj (name, baseclass, dict)" and have no clue

Slight tangent:
Note that both the `new` module and old-style classes (which are what
`classobj` produces) are deprecated.
To produce new-style classes dynamically, use `type`.

Cheers,
Chris
--
http://blog.rebertia.com



More information about the Python-list mailing list