Skip to content

bpo-1635741: Port _random to the multi-phase init - #23381

Closed
vstinner wants to merge 1 commit into
python:masterfrom
vstinner:random_multiphase
Closed

bpo-1635741: Port _random to the multi-phase init#23381
vstinner wants to merge 1 commit into
python:masterfrom
vstinner:random_multiphase

Conversation

@vstinner

@vstinnervstinner commented Nov 18, 2020

Copy link
Copy Markdown
Member

Port the _random extension module to the multi-phase initialization
API (PEP 489).

  • Create Random_Type using PyType_FromModuleAndSpec().
  • Add get_random_state_from_type() function. It replaces the removed
    _randomstate_global macro.

https://bugs.python.org/issue1635741

Port the _random extension module to the multi-phase initialization
API (PEP 489).
* Create Random_Type using PyType_FromModuleAndSpec().
* Add get_random_state_from_type() function. It replaces the removed
_randomstate_global macro.
@vstinner

Copy link
Copy Markdown
MemberAuthor

@corona10@shihai1991: Would you mind to review my PR? Especially the new get_random_state_from_type() function.

@tiran

Copy link
Copy Markdown
Member

This PR is a duplicate of #23359

@vstinner

Copy link
Copy Markdown
MemberAuthor

This PR is a duplicate of #23359

Oh, I missed your PR. I abandon mine and approved yours.

@vstinner
vstinner deleted the random_multiphase branch November 19, 2020 07:44
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@vstinner@tiran@the-knights-who-say-ni@bedevere-bot