Gregory Ewing wrote:
On 07/05/2010 11:07 AM, Anthra Norell wrote:
I try to use new.new.classobj (name, baseclass, dict) and have no
clue
what the dict of the current name space is.
Are you sure that's what you really want to know? The
'dict' argument to classobj() defines the attributes
I try to use new.new.classobj (name, baseclass, dict) and have no clue
what the dict of the current name space is. I can name dicts of
imported modules, because their name exists in the current name space.
If, for instance, I import a module service then that module's name
space would be
On 07/05/2010 11:07 AM, Anthra Norell wrote:
I try to use new.new.classobj (name, baseclass, dict) and have no clue
what the dict of the current name space is. I can name dicts of
imported modules, because their name exists in the current name space.
If, for instance, I import a module
On Mon, Jul 5, 2010 at 2:07 AM, Anthra Norell anthra.nor...@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
Thomas Jollans wrote:
On 07/05/2010 11:07 AM, Anthra Norell wrote:
I try to use new.new.classobj (name, baseclass, dict) and have no clue
what the dict of the current name space is. I can name dicts of
imported modules, because their name exists in the current name space.
If, for instance,
Chris Rebert wrote:
On Mon, Jul 5, 2010 at 2:07 AM, Anthra Norell anthra.nor...@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
On 07/05/2010 11:07 AM, Anthra Norell wrote:
I try to use new.new.classobj (name, baseclass, dict) and have no clue
what the dict of the current name space is.
Are you sure that's what you really want to know? The
'dict' argument to classobj() defines the attributes
that you want the new