Skip to content

Commit 97f33c3

Browse files
authored
bpo-40549: posixmodule.c uses defining_class (GH-20075)
Pass PEP 573 defining_class to os.DirEntry methods. The module state is now retrieve from defining_class rather than Py_TYPE(self), to support subclasses (even if DirEntry doesn't support subclasses yet). * Pass the module rather than defining_class to DirEntry_fetch_stat(). * Only get the module state once in _posix_clear(), _posix_traverse() and _posixmodule_exec().
1 parent e77d428 commit 97f33c3

File tree

2 files changed

+132
-137
lines changed

2 files changed

+132
-137
lines changed

Modules/clinic/posixmodule.c.h

+35-56
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)