diff options
author | Victor Stinner <vstinner@python.org> | 2020-05-14 16:05:58 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-14 16:05:58 (GMT) |
commit | 97f33c35445e6d67df24dcbafef7b78333feb778 (patch) | |
tree | 27e0536659d9176e02e0a7a549d3f397fdf91fa1 /Python/dynload_dl.c | |
parent | e77d428856fbd339faee44ff47214eda5fb51d57 (diff) | |
download | cpython-97f33c35445e6d67df24dcbafef7b78333feb778.zip cpython-97f33c35445e6d67df24dcbafef7b78333feb778.tar.gz cpython-97f33c35445e6d67df24dcbafef7b78333feb778.tar.bz2 |
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().
Diffstat (limited to 'Python/dynload_dl.c')
0 files changed, 0 insertions, 0 deletions