Skip to content

gh-133644: Avoid deprecated Py_SetProgramName() in _testembed.c #133665

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 9, 2025

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented May 8, 2025

  • Rename _testembed_Py_InitializeFromConfig() to _testembed_initialize().
  • Replace _testembed_Py_Initialize() with _testembed_initialize().

@bedevere-app bedevere-app bot added the tests Tests in the Lib/test dir label May 8, 2025
@vstinner
Copy link
Member Author

vstinner commented May 8, 2025

@picnixz: I wrote this PR to prepare removing Python configuration "setter" functions (such as Py_SetProgramName()).

* Rename _testembed_Py_InitializeFromConfig() to
  _testembed_initialize().
* Replace _testembed_Py_Initialize() with _testembed_initialize().
@vstinner vstinner force-pushed the set_program_name branch from bf71385 to 4a9dada Compare May 9, 2025 06:04
@vstinner vstinner changed the title gh-133644: Avoid deprecated Py_SetProgramName() in _testembed gh-133644: Avoid deprecated Py_SetProgramName() in _testembed.c May 9, 2025
@vstinner vstinner merged commit 6d9ec4e into python:main May 9, 2025
38 checks passed
@vstinner vstinner deleted the set_program_name branch May 9, 2025 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip news tests Tests in the Lib/test dir
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant