This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author iritkatriel
Recipients fviard, iritkatriel, urnenfeld, vinay.sajip, yselivanov
Date 2021-12-05.22:46:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1638744415.97.0.836496154292.issue25668@roundup.psfhosted.org>
In-reply-to
Content
> Please tell me what is unusual for you with this testcase?

Grabbing a lock in __str__/__repr__ strikes me as unusual and a recipe for problems.

You don't really know when those functions are called - from the debugger, from exception handlers, etc..   Even if the logging module protected you from the deadlock you found, you won't be safe from similar situations with other libraries that use locks.
History
Date User Action Args
2021-12-05 22:46:56iritkatrielsetrecipients: + iritkatriel, vinay.sajip, fviard, yselivanov, urnenfeld
2021-12-05 22:46:55iritkatrielsetmessageid: <1638744415.97.0.836496154292.issue25668@roundup.psfhosted.org>
2021-12-05 22:46:55iritkatriellinkissue25668 messages
2021-12-05 22:46:55iritkatrielcreate