[Python-Dev] PEP 362 Third Revision (original) (raw)

Paul Moore p.f.moore at gmail.com
Fri Jun 15 14:14:41 CEST 2012


On 15 June 2012 12:32, Nick Coghlan <ncoghlan at gmail.com> wrote:

Now, what a function could do is set signature to a Signature subclass that provided an additional "validate()" method, or provided arbitrary additional information about supported features. That's a perfectly reasonable option.

It might be worth mentioning this option in the PEP - it hadn't occurred to me that using subclasses of Signature would be something people could do...

Having said that, I also find it hard to imagine a case where I'd check is_implemented (Larry's explanation notwithstanding). Paul



More information about the Python-Dev mailing list