[Python-checkins] cpython (3.3): Closes #13867: remove untrue comment about PyWeakref_Check().

georg.brandl python-checkins at python.org
Tue Oct 8 20:32:08 CEST 2013


http://hg.python.org/cpython/rev/1cd2fca12abf
changeset:   86150:1cd2fca12abf
branch:      3.3
parent:      86136:b4444d16e333
user:        Georg Brandl <georg at python.org>
date:        Tue Oct 08 19:50:26 2013 +0200
summary:
  Closes #13867: remove untrue comment about PyWeakref_Check().

files:
  Include/weakrefobject.h |  3 ---
  1 files changed, 0 insertions(+), 3 deletions(-)


diff --git a/Include/weakrefobject.h b/Include/weakrefobject.h
--- a/Include/weakrefobject.h
+++ b/Include/weakrefobject.h
@@ -51,9 +51,6 @@
         ((Py_TYPE(op) == &_PyWeakref_ProxyType) || \
          (Py_TYPE(op) == &_PyWeakref_CallableProxyType))
 
-/* This macro calls PyWeakref_CheckRef() last since that can involve a
-   function call; this makes it more likely that the function call
-   will be avoided. */
 #define PyWeakref_Check(op) \
         (PyWeakref_CheckRef(op) || PyWeakref_CheckProxy(op))
 

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list