What is the name of the name space I am in?
Gregory Ewing
greg.ewing at canterbury.ac.nz
Mon Jul 5 19:59:54 EDT 2010
>> 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 class to have. It's not meant
to be the namespace in which the code creating the
class is executing.
--
Greg
More information about the Python-list
mailing list