bpo-1635741: Port _locale extension module to multiphase initialization (PEP 489) by shihai1991 · Pull Request #18358 · python/cpython · GitHub

github.com

Tin mới

shihai1991:bpo_1635741_9

GitHub CopilotWrite better code with AI

GitHub Copilot appDirect agents from issue to merge

ActionsAutomate any workflow

CodespacesInstant dev environments

IssuesPlan and track work

Code ReviewManage code changes

Code QualityEnforce quality at merge

GitHub Advanced SecurityFind and fix vulnerabilities

Code securitySecure your code as you build

Secret protectionStop leaks before they start

View all use cases

Financial services

View all industries

Software Development

GitHub SponsorsFund open source developers

Copilot for BusinessEnterprise-grade AI features

Premium SupportEnterprise-grade 24/7 support

Pull requests 2.6k

Security and quality 0

Port _locale extension module to multiphase initialization (PEP 489)

📜🤖 Added by blurb_it.

codecov Bot commented Feb 5, 2020 • edited Loading Uh oh! There was an error while loading. Please reload this page.
codecov Bot commented Feb 5, 2020 • edited Loading Uh oh! There was an error while loading. Please reload this page.

codecov Bot commented Feb 5, 2020 • edited Loading Uh oh! There was an error while loading. Please reload this page.

There was an error while loading. Please reload this page.

View reviewed changes

Learn more about hiding disruptive comments

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

https://github.com/python/cpython/blob/master/Modules/_hashopenssl.c#L55

Do we need add a global macros of get_state? I found some other extension modules use local macro do this behavior too. such as: https://github.com/python/cpython/blob/master/Modules/_hashopenssl.c#L55

add get_locale_state()

Merge branch 'bpo_1635741_9' of

https://github.com/shihai1991/cpython

View reviewed changes

View reviewed changes

locale extension module add clean slots

awaiting change review

Add back assertion in get_locale_state

View reviewed changes

Py_Finalize() doesn't clear all Python objects at exit #44470