Modifying signature of ctor in class

Joseph L. Casale jcasale at activenetwerx.com
Thu Sep 24 16:28:11 EDT 2015


I have a class factory where I dynamically add a constructor to the class output.
The method is a closure and works just fine, however to accommodate the varied
input its signature is (*args, **kwargs).

While I modify the doc strings, the ctor sig is not optimal. Without building
this a string and using eval, is there anything that can be done about this?

Thanks,
jlc



More information about the Python-list mailing list