[Python-ideas] PEP 484 (Type Hints) -- first draft round
ethan at stoneleaf.us
Fri Jan 23 02:04:07 CET 2015
On 01/22/2015 04:55 PM, Juancarlo Añez wrote:
> On Thu, Jan 22, 2015 at 3:35 PM, Guido van Rossum wrote:
>> Even there, the problem could also be solved by having a way to configure
>> the type checker to ignore annotations in certain packages (or to only check
>> code in specific directories).
> Having library authors change their code because type hinting was introduced would be unacceptable.
Annoying, yes. Unacceptable? No. As the language progresses library authors occasionally have to make adjustments
(and I am one, so I feel the pain).
> The burden must fall on whomever wants to benefit from type checking.
Indeed -- if someone does want type checking, but library xyz is using annotations for something else, then a way
(provided by the type checker) to skip certain modules would be good.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 836 bytes
Desc: OpenPGP digital signature
More information about the Python-ideas