Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #97094
| From | "Joseph L. Casale" <jcasale@activenetwerx.com> |
|---|---|
| Subject | Re: Modifying signature of ctor in class |
| Date | 2015-09-24 21:41 +0000 |
| References | <CANN3ufmqcPd2OE_EaushruEW-ZVfvnMczQ2+jo9Ew5fZdWdOdw@mail.gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.146.1443130914.28679.python-list@python.org> (permalink) |
> 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
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Modifying signature of ctor in class "Joseph L. Casale" <jcasale@activenetwerx.com> - 2015-09-24 21:41 +0000
csiph-web