Message391451
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. |
|
Date |
User |
Action |
Args |
2021-04-20 16:23:11 | gousaiyang | set | recipients:
+ gousaiyang, gvanrossum, levkivskyi, jarryshaw, kj |
2021-04-20 16:23:10 | gousaiyang | set | messageid: <1618935790.97.0.184017704673.issue43893@roundup.psfhosted.org> |
2021-04-20 16:23:10 | gousaiyang | link | issue43893 messages |
2021-04-20 16:23:10 | gousaiyang | create | |
|