[Python-3000] Questions on optional type annotations

Edward Loper edloper at gradient.cis.upenn.edu
Thu May 11 18:06:40 CEST 2006


Marcin 'Qrczak' Kowalczyk wrote:
> "Neal Norwitz" <nnorwitz at gmail.com> writes:
> 
>> Another benefit of this is the ability to get more info through
>> introspection. Right now, you can't even find the number of
>> arguments of a function implemented in C. You only know if it takes
>> 0, 1, or variable # of arguments and if it accepts keywords.
> 
> This would be incompatible with generic proxies.

No it wouldn't -- the generic proxy classes can just copy the 
__signature__ of the object they proxy for.

-Edward


More information about the Python-3000 mailing list