Message184194
David Beazley in his tutorial pointed out that you could use a metaclass to create function signatures for the common use case of:
class foo:
def __init__(self, name, value, high, low):
self.name = name
self.value = value
[...]
The signature can be used so that the classes created using an automation metaclass will show a signature of "(*args)". inspect.signature will use this signature, but "help()" will not use the signature.
This is a stub created during the tutorial, I will flesh it out further during the sprints. |
|
Date |
User |
Action |
Args |
2013-03-14 21:26:30 | jafo | set | recipients:
+ jafo |
2013-03-14 21:26:30 | jafo | set | messageid: <1363296390.29.0.253596803628.issue17424@psf.upfronthosting.co.za> |
2013-03-14 21:26:30 | jafo | link | issue17424 messages |
2013-03-14 21:26:30 | jafo | create | |
|