[Python-ideas] PEP 484 (Type Hints) -- first draft round
Greg Ewing
greg.ewing at canterbury.ac.nz
Thu Jan 22 02:25:01 CET 2015
On 01/22/2015 01:50 PM, Guido van Rossum wrote:
> I've seen plenty of code that takes instances a certain class
> as argument and calls methods of that type but never constructs a new instance
> nor does any of the other things for which you need the class name,
If the only thing the name is needed for is static checking,
I don't see what's so bad about not finding out until you
actually run the static check. Adding those imports earlier
doesn't make the code work any better or show up any more
runtime bugs.
--
Greg
More information about the Python-ideas
mailing list