Modifying signature of ctor in class

Joseph L. Casale jcasale at activenetwerx.com
Thu Sep 24 23:41:44 CEST 2015


> You can use the FunctionType class found in the types module (and its friends) to create functions on the run.
> And you can use the 'inspect' module to inspect existing functions, if you need to base the new function on an existing one.

Hi Gal,
Seems the types module docs do not even have a single line of docs
for FunctionType and there isn't any that I found online. From the few
examples on StackOverflow it appears like it might do the job however
I do not see how to specify a signature, I only see how to specify defaults.

Do you have any ideas?

Thanks for the info,
jlc


More information about the Python-list mailing list