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

@vstinner vstinner 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
Member Author

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

@tiran

tiran commented Nov 18, 2020

Copy link
Copy Markdown
Member

This PR is a duplicate of #23359

@vstinner

Copy link
Copy Markdown
Member Author

This PR is a duplicate of #23359

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

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

4 participants