Larry Hastings <la...@hastings.org> added the comment:

It would also cause the code generated for the annotations function to 
balloon--the calculation of every value would have to be wrapped in a 
try/except, and for what I assume is an obscure use case.  I'm already getting 
some pushback on the code generated with PEP 649 as it is.

My goal in designing PEP 649 was to take stock semantics and time-shift the 
evaluation of the annotations, adding as little opinion as possible.  I think 
catching NameErrors is too opinionated, much less catching every plausible 
error.

Still, the approach is mentioned in PEP 649.  I assume the Steering Committee 
rules is aware this option exists.  If they rule in favor of adding PEP 649, 
but stipulate that this feature is necessary, I will of course implement it.

----------

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

Reply via email to