Guido van Rossum <gu...@python.org> added the comment:

There's a similar thing with docstrings though. Some code depend on docstrings 
(e.g. David Beazley's parser generator). help() of course also depends on it. 
And yet we have a way to disable it. (Same with asserts, plenty of code depends 
on them even though we recommend against it.)

So as long as we have a separate mechanism to disable this I'm not worried -- 
it's up to the person that runs the program to ensure that they don't use 
functionality that breaks when annotations are suppressed.

(Note that functools.singledispatch has an alternate registration syntax that 
doesn't require annotations.)

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue36466>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to