Skip to content

Use PyMutex in the buffered I/O module #154707

Description

@IvyXu420

Feature or enhancement

Proposal:

The buffered I/O module currently uses the obsolete PyThread_type_lock. I propose migrating it to the more performant PyMutex.

Has this already been discussed elsewhere?

This is a minor feature, which does not need previous discussion elsewhere

Links to previous discussion of this feature:

No response

Linked PRs

Activity

  1. added
    interpreter-core(Objects, Python, Grammar, and Parser dirs)
    type-refactorCode refactoring (with no changes in behavior)
    and removed
    type-featureA feature request or enhancement
    on Jul 26, 2026
  2. ZeroIntensity commented on Jul 27, 2026

    @ZeroIntensity
    Member
  3. added
    pendingThe issue will be closed if no feedback is provided
    on Jul 27, 2026
  4. ZeroIntensity commented on Jul 27, 2026

    @ZeroIntensity
    Member
  5. removed
    pendingThe issue will be closed if no feedback is provided
    on Jul 27, 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

    interpreter-core(Objects, Python, Grammar, and Parser dirs)topic-IOtype-refactorCode refactoring (with no changes in behavior)

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions