Message82117
Problem seems to be in Modules/_multiprocessing/semaphore.c
line 549 where "__enter__" is defined as an alias for
semlock_acquire, as is "acquire" a few lines above. However,
while "acquire" specifies METH_VARARGS | METH_KEYWORDS,
"__enter__" has only METH_VARARGS.
semlock_acquire at line 60 has the signature:
SemLockObject *self, PyObject *args, PyObject *kwds
When it is called via __enter__ kwds aren't passed in
and it gets a NULL pointer.
Suggested patch attached, defining __enter__ in the same
way as acquire. Test included. |
|
Date |
User |
Action |
Args |
2009-02-14 20:52:35 | tim.golden | set | recipients:
+ tim.golden, jnoller, stepheng.lynch |
2009-02-14 20:52:33 | tim.golden | link | issue5261 messages |
2009-02-14 20:52:33 | tim.golden | create | |
|