Re: instantiate a 'classobj'

2007-07-26 Thread Steve Holden
westymatt wrote: > I have a class where a parameter to its constructor is a type(param) = > 'classobj'. How would I go about instantiating that given it has no > constructor. > Just call the parameter: if it's of type classobj then it's callable, and calling it will create an instance of the cla

Re: instantiate a 'classobj'

2007-07-26 Thread [EMAIL PROTECTED]
On Jul 26, 7:03 pm, westymatt <[EMAIL PROTECTED]> wrote: > I have a class where a parameter to its constructor is a type(param) = > 'classobj'. How would I go about instantiating that given it has no > constructor. A old style class may not have a __new__ attribute, but it's still callable, rig

instantiate a 'classobj'

2007-07-26 Thread westymatt
I have a class where a parameter to its constructor is a type(param) = 'classobj'. How would I go about instantiating that given it has no constructor. -- http://mail.python.org/mailman/listinfo/python-list