[docs] [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>:


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>

More information about the docs mailing list