]> granicus.if.org Git - python/commitdiff
Closes #13867: remove untrue comment about PyWeakref_Check().
authorGeorg Brandl <georg@python.org>
Tue, 8 Oct 2013 17:50:26 +0000 (19:50 +0200)
committerGeorg Brandl <georg@python.org>
Tue, 8 Oct 2013 17:50:26 +0000 (19:50 +0200)
Include/weakrefobject.h

index e46aecf38587f6361d1d890d326591cb27e6a577..e7c0eae5398dfaa60d1e0b8ac5a9e0b12759d2bb 100644 (file)
@@ -49,9 +49,6 @@ PyAPI_DATA(PyTypeObject) _PyWeakref_CallableProxyType;
         ((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))