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.
This commit is contained in:
Gregory P. Smith 2024-11-07 00:06:14 -08:00 committed by GitHub
parent dbb6e22cb1
commit d46d3f2ec7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 8 deletions

View file

@ -15,6 +15,7 @@
#ifdef HAVE_MP_SEMAPHORE
// These match the values in Lib/multiprocessing/synchronize.py
enum { RECURSIVE_MUTEX, SEMAPHORE };
typedef struct {