mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
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:
parent
dbb6e22cb1
commit
d46d3f2ec7
2 changed files with 8 additions and 8 deletions
|
@ -15,6 +15,7 @@
|
|||
|
||||
#ifdef HAVE_MP_SEMAPHORE
|
||||
|
||||
// These match the values in Lib/multiprocessing/synchronize.py
|
||||
enum { RECURSIVE_MUTEX, SEMAPHORE };
|
||||
|
||||
typedef struct {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue