Message 45276 - Python tracker

Message45276

Author dfaure_kde
Recipients
Date 2006-10-18.16:36:33
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Logged In: YES 
user_id=591851

This API is seriously broken. datetime.h says 
static PyDateTime_CAPI *PyDateTimeAPI;

which means that including this file from two C (or C++) 
files leads to two independent PyDateTimeAPI symbols - 
calling PyDateTime_IMPORT in one file still leaves 
PyDateTimeAPI being 0 in the other!

I double checked, and this happens with both C and C++.

This needs to be revised so that there is indeed only one 
PyDateTimeAPI symbol, no matter how many files include that 
file. s/static/extern/ and defining "PyDateTime_CAPI 
*PyDateTimeAPI;" in one of the c files in python.
History
Date User Action Args
2007-08-23 15:31:58adminlinkissue876130 messages
2007-08-23 15:31:58admincreate