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 gousaiyang
Recipients gousaiyang, gvanrossum, jarryshaw, kj, levkivskyi
Date 2021-04-20.16:23:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1618935790.97.0.184017704673.issue43893@roundup.psfhosted.org>
In-reply-to
Content
I think it might be a good idea to just strip leading spaces and tabs for `compile(x, ..., 'eval')` if we want consistent behavior. `compile` might be used in more locations in the whole Python source tree apart from `typing.get_type_hints`. Technically the only behavior difference between `eval(x)` and `compile(x, ..., 'eval')` (when `x` is a string) should be that the latter one does not execute the generated byte code.
History
Date User Action Args
2021-04-20 16:23:11gousaiyangsetrecipients: + gousaiyang, gvanrossum, levkivskyi, jarryshaw, kj
2021-04-20 16:23:10gousaiyangsetmessageid: <1618935790.97.0.184017704673.issue43893@roundup.psfhosted.org>
2021-04-20 16:23:10gousaiyanglinkissue43893 messages
2021-04-20 16:23:10gousaiyangcreate