[ python-Bugs-955985 ] PyDateTime_Check macro unusable

SourceForge.net noreply at sourceforge.net
Tue May 18 10:51:05 EDT 2004


Bugs item #955985, was opened at 2004-05-18 14:51
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=955985&group_id=5470

Category: Extension Modules
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Jon Willeke (willeke)
Assigned to: Nobody/Anonymous (nobody)
Summary: PyDateTime_Check macro unusable

Initial Comment:
I'm using Python 2.3.3 on SuSE Linux 8.2.

I'm trying to use the PyDateTime_Check() macro defined
in datetime.h, but it refers to the undeclared
PyDateTime_DateTimeType.  I added the following
declaration:

  PyAPI_DATA(PyTypeObject) PyDateTime_DateTimeType;

Looking at the source, I can why this doesn't help: it
is defined static.

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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=955985&group_id=5470



More information about the Python-bugs-list mailing list