[Patches] [ python-Patches-1020185 ] Py_CLEAR to implicitly cast
its argument to PyObject *
SourceForge.net
noreply at sourceforge.net
Wed Sep 1 07:33:01 CEST 2004
Patches item #1020185, was opened at 2004-09-01 05:33
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1020185&group_id=5470
Category: Core (C code)
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Dima Dorfman (ddorfman)
Assigned to: Nobody/Anonymous (nobody)
Summary: Py_CLEAR to implicitly cast its argument to PyObject *
Initial Comment:
Py_CLEAR assigns its argument to a PyObject pointer without
a cast. This causes a warning if the argument is PyObject-
compatible but not actually a PyObject. The other reference
counting macros accept non-PyObjects without a cast by the
user, so Py_CLEAR should too.
The patch is hard to read since it realigns the backslashes
on the macro. diff -b (ignore whitespace) is good in these
cases.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1020185&group_id=5470
More information about the Patches
mailing list