Message363990
Example code:
```
code = """
import typing
T = typing.TypeVar("T")
"""
exec(code, {})
```
Traceback:
```
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<string>", line 3, in <module>
File "C:\Python38\lib\typing.py", line 603, in __init__
def_mod = sys._getframe(1).f_globals['__name__'] # for pickling
KeyError: '__name__'
```
If this problem with `__name__` is not something that needs to be fixed, then I also noticed that the same line in typing.py will also raise when platform doesn't have `sys._getframe()` |
|
Date |
User |
Action |
Args |
2020-03-12 00:11:51 | jack1142 | set | recipients:
+ jack1142 |
2020-03-12 00:11:51 | jack1142 | set | messageid: <1583971911.89.0.874740392795.issue39942@roundup.psfhosted.org> |
2020-03-12 00:11:51 | jack1142 | link | issue39942 messages |
2020-03-12 00:11:51 | jack1142 | create | |
|