This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author christian.heimes
Recipients christian.heimes, ronaldoussoren
Date 2013-07-17.13:16:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1374067005.64.0.991929060846.issue18480@psf.upfronthosting.co.za>
In-reply-to
Content
Good catch!

ElementIter_Type has no prototype, too.

$ grep Type Modules/_elementtree.c  | grep static
static PyTypeObject Element_Type;
static PyTypeObject Element_Type = {
static PyTypeObject ElementIter_Type = {
static PyTypeObject TreeBuilder_Type;
static PyTypeObject TreeBuilder_Type = {
static PyTypeObject XMLParser_Type;
static PyTypeObject XMLParser_Type = {

How about you move the prototypes for all four types to the head of the file? For example the ssl.c module declares all types up front. It makes it more clear which types are defined by the module.
History
Date User Action Args
2013-07-17 13:16:45christian.heimessetrecipients: + christian.heimes, ronaldoussoren
2013-07-17 13:16:45christian.heimessetmessageid: <1374067005.64.0.991929060846.issue18480@psf.upfronthosting.co.za>
2013-07-17 13:16:45christian.heimeslinkissue18480 messages
2013-07-17 13:16:45christian.heimescreate