Skip to content

C API: Restore removed PyEval_InitThreads() function #117929

Closed
@vstinner

Description

@vstinner

Since Python 3.7, PyEval_InitThreads() does nothing, since the GIL is now always created: https://vstinner.github.io/python37-gil-change.html This function is deprecated since Python 3.9 and I removed it in Python 3.13 alpha1.

Problem: my Fedora team identified that 16 projects are affected by this function removal.

  • collectd
  • freeradius
  • gnumeric
  • libesedb
  • libsigrokdecode
  • OpenIPMI
  • openscap
  • profanity
  • pyliblo
  • pyotherside
  • python-confluent-kafka
  • python-cradox
  • python-gphoto2
  • python-simpleaudio
  • python-subvertpy
  • rb_libtorrent

I propose to restore the function in Python 3.13 beta1, and remove it again in Python 3.14 alpha1.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions