Skip to content

Data races with frame objects #144446

Description

@colesbury

Bug report

We've fixed most of the data races with Python frame objects in:

But I think we missed a few places, such as:

  • repr(frame) on an frame that is executing or in the process of getting cleared
  • frame.f_lasti
  • Accessing variables through frame.f_locals

Additionally, I'd like to add more free threading tests for frames.

Linked PRs

Activity

  1. added 2 commits that reference this issue on Feb 4, 2026
  2. added a commit that references this issue on Feb 6, 2026
  3. added a commit that references this issue on Feb 6, 2026
  4. added a commit that references this issue on Feb 15, 2026
  5. LindaSummer commented on Feb 24, 2026

    @LindaSummer
    Contributor

    Hi @colesbury ,
    I want to work on the Accessing variables through frame.f_locals sub issue.
    Could I try this sub-task? 😊

  6. colesbury commented on Feb 24, 2026

    @colesbury
    ContributorAuthor

    Thanks @LindaSummer, but I've already started on it. I'll open a draft PR with the changes. Still thinking about if this is the way I want to implement it.

  7. added 2 commits that reference this issue on Feb 24, 2026
  8. added a commit that references this issue on Apr 25, 2026
  9. added 2 commits that reference this issue on Aug 19, 2026
  10. added a commit that references this issue on Sep 2, 2026
  11. added 2 commits that reference this issue on Sep 3, 2026
  12. added 5 commits that reference this issue on Sep 5, 2026
  13. added
    3.16new features, bugs and security fixes
    and removed
    3.14bugs and security fixes
    3.15bugs and security fixes
    on Sep 5, 2026
  14. added 2 commits that reference this issue on Sep 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.16new features, bugs and security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)topic-free-threadingtype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions