[New-bugs-announce] [issue13867] misleading comment in weakrefobject.h

Jim Jewett report at bugs.python.org
Thu Jan 26 00:01:16 CET 2012


New submission from Jim Jewett <jimjjewett at gmail.com>:

http://hg.python.org/cpython/file/fec45282dc28/Include/weakrefobject.h#l54

The comment makes sense -- but doesn't appear to be true, so perhaps it is the macro that should change.


 
/* 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))

----------
assignee: docs at python
components: Documentation, Extension Modules
messages: 151983
nosy: Jim.Jewett, docs at python
priority: normal
severity: normal
status: open
title: misleading comment in weakrefobject.h

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13867>
_______________________________________


More information about the New-bugs-announce mailing list