Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bpo-40549: Convert posixmodule.c to multiphase init #19982

Merged
merged 2 commits into from
May 10, 2020
Merged

bpo-40549: Convert posixmodule.c to multiphase init #19982

merged 2 commits into from
May 10, 2020

Commits on May 7, 2020

  1. bpo-40549: Convert posixmodule.c to multiphase init

    Convert posixmodule.c ("posix" or "nt" module) to the multiphase
    initialization (PEP 489).
    
    * Create the module using PyModuleDef_Init().
    * Create ScandirIteratorType and DirEntryType with the new
      PyType_FromModuleAndSpec() (PEP 573)
    * Get the module state from ScandirIteratorType and DirEntryType with
      the new PyType_GetModule() (PEP 573)
    * Pass module to functions which access the module state.
    * convert_sched_param() gets a new module parameter. It is now called
      directly since Argument Clinic doesn't support passing the module
      to an argument converter callback.
    * Remove _posixstate_global macro.
    vstinner committed May 7, 2020
    Configuration menu
    Copy the full SHA
    7636bfd View commit details
    Browse the repository at this point in the history
  2. Fix Windows implementation

    vstinner committed May 7, 2020
    Configuration menu
    Copy the full SHA
    a2d444b View commit details
    Browse the repository at this point in the history