From: Jeremy Hylton Date: Wed, 14 Aug 2002 17:43:59 +0000 (+0000) Subject: Explain a minor mystery. X-Git-Tag: v2.3c1~4467 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=af7fde7f34c6da89f4f040ffe05dcde2568cc930;p=thirdparty%2FPython%2Fcpython.git Explain a minor mystery. --- diff --git a/Lib/threading.py b/Lib/threading.py index 0af193b8fa67..e2ce9fe6576f 100644 --- a/Lib/threading.py +++ b/Lib/threading.py @@ -172,6 +172,7 @@ class _Condition(_Verbose): self.__lock.acquire() # Ignore saved state def _is_owned(self): + # This method is called only if __lock doesn't have _is_owned(). if self.__lock.acquire(0): self.__lock.release() return False