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
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
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