I'm writing thread routines for the Plan 9 port of Python. Is it correct that: PyThread_acquire_lock returns 1 on success, 0 on failure. PyThread_down_sema returns 0 on success, -1 on failure. It appears that way, but the inconsistency bothers me. Thanks. Russ