[Patches] [ python-Patches-520768 ] cellobject isn't VAR

noreply@sourceforge.net noreply@sourceforge.net
Thu, 21 Feb 2002 15:41:23 -0800


Patches item #520768, was opened at 2002-02-20 18:00
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=520768&group_id=5470

Category: Core (C code)
Group: None
Status: Open
Resolution: None
Priority: 1
Submitted By: Jason Orendorff (jorend)
>Assigned to: Jeremy Hylton (jhylton)
Summary: cellobject isn't VAR

Initial Comment:
cellobject.h has:

typedef struct {
	PyObject_VAR_HEAD
	PyObject *ob_ref;
} PyCellObject;

But it's wrong; it should just be plain
PyObject_HEAD, not VAR_HEAD.

(I tested this on Win32; it compiles and passes
the tests.  The ob_size field implied by VAR_HEAD
just isn't used anywhere.)



----------------------------------------------------------------------

>Comment By: Guido van Rossum (gvanrossum)
Date: 2002-02-21 15:41

Message:
Logged In: YES 
user_id=6380

I agree. Assigned to Jeremy.

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=520768&group_id=5470