This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jafo
Recipients jafo
Date 2013-03-14.21:26:30
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1363296390.29.0.253596803628.issue17424@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2013-03-14 21:26:30jafosetrecipients: + jafo
2013-03-14 21:26:30jafosetmessageid: <1363296390.29.0.253596803628.issue17424@psf.upfronthosting.co.za>
2013-03-14 21:26:30jafolinkissue17424 messages
2013-03-14 21:26:30jafocreate