summaryrefslogtreecommitdiffstats
path: root/Python/fileutils.c
diff options
context:
space:
mode:
authorEthan Furman <ethan@stoneleaf.us>2020-12-10 00:41:22 (GMT)
committerGitHub <noreply@github.com>2020-12-10 00:41:22 (GMT)
commit6bd94de168b58ac9358277ed6f200490ab26c174 (patch)
tree01dfe448e2651e084d9d8e34eb7a301b2c6cc6c7 /Python/fileutils.c
parent2a35137328154aa2513649dcf0bbef02c998e27c (diff)
downloadcpython-6bd94de168b58ac9358277ed6f200490ab26c174.zip
cpython-6bd94de168b58ac9358277ed6f200490ab26c174.tar.gz
cpython-6bd94de168b58ac9358277ed6f200490ab26c174.tar.bz2
bpo-42567: [Enum] call __init_subclass__ after members are added (GH-23714)
When creating an Enum, type.__new__ calls __init_subclass__, but at that point the members have not been added. This patch suppresses the initial call, then manually calls the ancestor __init_subclass__ before returning the new Enum class.
Diffstat (limited to 'Python/fileutils.c')
0 files changed, 0 insertions, 0 deletions