This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author larry
Recipients JelleZijlstra, barry, eric.smith, gvanrossum, kj, larry, lukasz.langa, methane, xtreak
Date 2021-04-29.13:28:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1619702925.27.0.967484515431.issue43817@roundup.psfhosted.org>
In-reply-to
Content
Ie debated about this with myself (and with a friend!) over the last few days, and I've concluded that evaluating strings by default is too opinionated for the standard library.  I've changed both inspect.signature() and inspect.get_annotations() so eval_str is False by default (and removed the ONLY_IF_STRINGIZED logic entirely).  Both functions will still raise an exception if eval_str=True, but this will only happen if the user explicitly requests evaluating the strings.

I've already updated the PR.
History
Date User Action Args
2021-04-29 13:28:45larrysetrecipients: + larry, gvanrossum, barry, eric.smith, methane, lukasz.langa, JelleZijlstra, xtreak, kj
2021-04-29 13:28:45larrysetmessageid: <1619702925.27.0.967484515431.issue43817@roundup.psfhosted.org>
2021-04-29 13:28:45larrylinkissue43817 messages
2021-04-29 13:28:45larrycreate