[Python-checkins] r45261 - python/trunk/Objects/bufferobject.c python/trunk/Objects/classobject.c python/trunk/Objects/enumobject.c python/trunk/Objects/fileobject.c python/trunk/Objects/floatobject.c python/trunk/Objects/intobject.c python/trunk/Objects/listobject.c python/trunk/Objects/longobject.c

"Martin v. Löwis" martin at v.loewis.de
Tue Apr 11 09:29:01 CEST 2006


anthony.baxter wrote:
> More C++-compliance. Note especially listobject.c - to get C++ to accept the
> PyTypeObject structures, I had to make prototypes for the functions, and 
> move the structure definition ahead of the functions. I'd dearly like a better
> way to do this - to change this would make for a massive set of changes to
> the codebase. 

You don't have to move the structures before all functions: just having
it before the "new" function (e.g. list_iter) would be enough. So the
order should be this:

forward-declare new function

define methods

define type structures

define new function

Regards,
Martin


More information about the Python-checkins mailing list