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 lemburg
Recipients Mark.Shannon, lemburg, lys.nikolaou, pablogsal
Date 2021-10-22.10:18:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1634897931.93.0.0134696839567.issue45563@roundup.psfhosted.org>
In-reply-to
Content
To add some more context:

This came up while porting eGenix PyRun to Python 3.10. While installing setuptools 58.2.0 via "pyrun setup.py install", an exception was raised in getframeinfo().

PyRun uses exec() to run Python code:

    def pyrun_exec_code_file(filename, globals_dict, locals_dict=None):
        with open(filename, 'r', encoding='utf-8') as file:
            source = file.read()
        code = compile(source, filename, 'exec', optimize=pyrun_optimized)
        exec(code, globals_dict, locals_dict)

Using pdb, I then found that the top frame does not have f_lineno set in Python 3.10.
History
Date User Action Args
2021-10-22 10:18:51lemburgsetrecipients: + lemburg, Mark.Shannon, lys.nikolaou, pablogsal
2021-10-22 10:18:51lemburgsetmessageid: <1634897931.93.0.0134696839567.issue45563@roundup.psfhosted.org>
2021-10-22 10:18:51lemburglinkissue45563 messages
2021-10-22 10:18:51lemburgcreate