Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #97094 > unrolled thread

Re: Modifying signature of ctor in class

Started by"Joseph L. Casale" <jcasale@activenetwerx.com>
First post2015-09-24 21:41 +0000
Last post2015-09-24 21:41 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Modifying signature of ctor in class "Joseph L. Casale" <jcasale@activenetwerx.com> - 2015-09-24 21:41 +0000

#97094 — Re: Modifying signature of ctor in class

From"Joseph L. Casale" <jcasale@activenetwerx.com>
Date2015-09-24 21:41 +0000
SubjectRe: Modifying signature of ctor in class
Message-ID<mailman.146.1443130914.28679.python-list@python.org>
> 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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web