Skip to content

Conversation

@vstinner
Copy link
Member

@vstinnervstinner commented Nov 18, 2020

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
MemberAuthor

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

@tiran
Copy link
Member

This PR is a duplicate of #23359

@vstinner
Copy link
MemberAuthor

This PR is a duplicate of #23359

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

@vstinnervstinner 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