[issue46133] Unclear whether one can (or how to) provide source to exec-generated code

2022-01-14 Thread Irit Katriel
Irit Katriel added the comment: The source code is read from a file. If there is no file you get OSError, as the docstring states. -- nosy: +iritkatriel resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue46133] Unclear whether one can (or how to) provide source to exec-generated code

2021-12-19 Thread Matt B
Change by Matt B : -- components: +Library (Lib) type: -> behavior versions: +Python 3.10, Python 3.11, Python 3.6, Python 3.7, Python 3.8, Python 3.9 ___ Python tracker ___

[issue46133] Unclear whether one can (or how to) provide source to exec-generated code

2021-12-19 Thread Matt B
New submission from Matt B : Unless I missed it, looking at https://github.com/python/cpython/blob/main/Lib/pdb.py, https://github.com/python/cpython/blob/main/Lib/inspect.py, and https://docs.python.org/3/library/pdb.html doesn't give much of a clue how to provide sources to exec-generated