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 murrayc
Recipients murrayc
Date 2009-12-09.10:01:49
SpamBayes Score 2.0407576e-09
Marked as misclassified No
Message-id <1260352911.97.0.550126067946.issue7463@psf.upfronthosting.co.za>
In-reply-to
Content
At least in Python 2.5 and 2.6 (I haven't checked newer versions), the 
PyDateTime_IMPORT() macro passes string literals to a function that
takes non-const char* parameters:

#define PyDateTime_IMPORT \
        PyDateTimeAPI = (PyDateTime_CAPI*) PyCObject_Import("datetime", \
                                                            "datetime_CAPI")

This makes it impossible to build code with warnings as errors, when
using that macro.
History
Date User Action Args
2009-12-09 10:01:52murraycsetrecipients: + murrayc
2009-12-09 10:01:51murraycsetmessageid: <1260352911.97.0.550126067946.issue7463@psf.upfronthosting.co.za>
2009-12-09 10:01:50murrayclinkissue7463 messages
2009-12-09 10:01:49murrayccreate