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

2010-07-06 Thread Anthra Norell
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

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

2010-07-05 Thread Anthra Norell
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

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

2010-07-05 Thread Thomas Jollans
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

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

2010-07-05 Thread Chris Rebert
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

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

2010-07-05 Thread Anthra Norell
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,

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

2010-07-05 Thread Anthra Norell
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

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

2010-07-05 Thread Gregory Ewing
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