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-34523: Use _PyCoreConfig instead of globals#9005

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:masterfromvstinner:use_config
Aug 29, 2018
Merged

bpo-34523: Use _PyCoreConfig instead of globals#9005

vstinner merged 1 commit intopython:masterfromvstinner:use_config
Aug 29, 2018

Conversation

vstinner
Copy link
Member

@vstinnervstinner commentedAug 29, 2018
edited by bedevere-bot
Loading

Get configuratiom the core configuration of the interpreter, rather
than getting global configuration variables. For example, replace
Py_QuietFlag with core_config->quiet.

https://bugs.python.org/issue34523

Get configuratiom the core configuration of the interpreter, ratherthan getting global configuration variables. For example, replacePy_QuietFlag with core_config->quiet.
@bmwiedemann
Copy link
Contributor

bmwiedemann commentedSep 27, 2018
edited
Loading

Unfortunately, the description does not tell much about "Why this is good?" (edit: link went to different PR)
Does it help reduce unexpected influences from other places in code?

@vstinner
Copy link
MemberAuthor

Unfortunately, the description does not tell much about "Why this is good?" (edit: link went to different PR)
Does it help reduce unexpected influences from other places in code?

For the long term, I plan to deprecate global variables, especially global configuration variables like Py_QuietFlag. Moreover, I would like to support running two Python interpreters inside the same process but with two different configurations.

Seehttps://www.python.org/dev/peps/pep-0554/ for more information about Eric Snow's project@ericsnowcurrently.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

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

[8]ページ先頭

©2009-2025 Movatter.jp