On 30/04/20 3:29 pm, Raymond Hettinger wrote:
Do you think it is safe to hold a non-reentrant lock across an arbitrary user function?
I think what's wanted here is to block if it's locked by a different thread, but raise an exception if it's locked by the same thread. -- Greg _______________________________________________ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/python-dev@python.org/message/3T5Z7CDDY7D5Y4OKQ2GOPCNLQ7TQ6TCA/ Code of Conduct: http://python.org/psf/codeofconduct/