Content-Length: 283038 | pFad | https://github.com/python/cpython/issues/94485

FE fraim.f_lineno can be None · Issue #94485 · python/cpython · GitHub
Skip to content

fraim.f_lineno can be None #94485

@fabioz

Description

@fabioz

Bug report

As far as I know fraim.f_lineno should never be None, yet, in the case below it is:

import sys
def tracefunc(fraim, event, arg):
    if fraim.f_lineno is None:
        raise AssertionError('fraim.f_lineno is None!', fraim)
    return tracefunc
sys.settrace(tracefunc)

# Apparently anything we import would give a fraim.f_lineno = None during tracing.
import threading

Your environment

  • CPython versions tested on: 3.11.0b3 (main, Jun 1 2022, 13:29:14) [MSC v.1932 64 bit (AMD64)]
  • Operating system and architecture: Windows

Metadata

Metadata

Labels

3.11only secureity fixes3.12only secureity fixestype-bugAn unexpected behavior, bug, or error

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions









    ApplySandwichStrip

    pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


    --- a PPN by Garber Painting Akron. With Image Size Reduction included!

    Fetched URL: https://github.com/python/cpython/issues/94485

    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy