Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

bpo-44113: Deprecate old functions to config Python init#26060

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
vstinner merged 1 commit intopython:mainfromvstinner:deprecate_py_set
May 12, 2021
Merged

bpo-44113: Deprecate old functions to config Python init#26060

vstinner merged 1 commit intopython:mainfromvstinner:deprecate_py_set
May 12, 2021

Conversation

vstinner
Copy link
Member

@vstinnervstinner commentedMay 12, 2021
edited
Loading

Deprecate the following functions to configure the Python
initialization:

  • PySys_AddWarnOption()
  • PySys_AddWarnOptionUnicode()
  • PySys_AddXOption()
  • PySys_HasWarnOptions()
  • Py_SetPath()
  • Py_SetProgramName()
  • Py_SetPythonHome()
  • Py_SetStandardStreamEncoding()
  • _Py_SetProgramFullPath()

Use the new PyConfig API of the Python Initialization Configuration
instead (PEP 587).

https://bugs.python.org/issue44113

@bedevere-botbedevere-bot added the docsDocumentation in the Doc dir labelMay 12, 2021
@corona10corona10 self-requested a reviewMay 12, 2021 15:11
@corona10
Copy link
Member

@vstinner

Don't we have to change the signature of API like this?

from Include/sysmodule.h

Py_DEPRECATED(3.11)PyAPI_FUNC(void)PySys_AddWarnOption(constwchar_t*);

@vstinner
Copy link
MemberAuthor

@corona10: Oh right, I added Py_DEPRECATED().

I rebased my PR and also deprecated PySys_HasWarnOptions().

Deprecate the following functions to configure the Pythoninitialization:* PySys_AddWarnOption()* PySys_AddWarnOptionUnicode()* PySys_AddXOption()* PySys_HasWarnOptions()* Py_SetPath()* Py_SetProgramName()* Py_SetPythonHome()* Py_SetStandardStreamEncoding()* _Py_SetProgramFullPath()Use the new PyConfig API of the Python Initialization Configurationinstead (PEP 587).
@vstinner
Copy link
MemberAuthor

I also deprecated the undocumented _Py_SetProgramFullPath() function.

@vstinner
Copy link
MemberAuthor

@corona10: Would you mind to review the updated PR?

Copy link
Member

@corona10corona10 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

lgtm

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@corona10corona10corona10 approved these changes

Assignees
No one assigned
Labels
docsDocumentation in the Doc dir
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

4 participants
@vstinner@corona10@the-knights-who-say-ni@bedevere-bot

[8]ページ先頭

©2009-2025 Movatter.jp