diff options
author | Gregory P. Smith <greg@krypto.org> | 2024-11-07 08:06:14 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-07 08:06:14 (GMT) |
commit | d46d3f2ec783004f0927c9f5e6211a570360cf3b (patch) | |
tree | 51a6b7c237eb1d6888f7385b15c1e21095c5b293 /Modules | |
parent | dbb6e22cb1f533bba00a61a5b63ec68af9d48836 (diff) | |
download | cpython-d46d3f2ec783004f0927c9f5e6211a570360cf3b.zip cpython-d46d3f2ec783004f0927c9f5e6211a570360cf3b.tar.gz cpython-d46d3f2ec783004f0927c9f5e6211a570360cf3b.tar.bz2 |
Cleanup multiprocessing comment and unusual import error message (#126532)
Define constants as constants rather than calling `list(range(2))`.
Explain which values must remain in sync via comments.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_multiprocessing/semaphore.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/_multiprocessing/semaphore.c b/Modules/_multiprocessing/semaphore.c index 4de4ee6..9eef7c2 100644 --- a/Modules/_multiprocessing/semaphore.c +++ b/Modules/_multiprocessing/semaphore.c @@ -15,6 +15,7 @@ #ifdef HAVE_MP_SEMAPHORE +// These match the values in Lib/multiprocessing/synchronize.py enum { RECURSIVE_MUTEX, SEMAPHORE }; typedef struct { |