[ python-Bugs-955985 ] PyDateTime_Check macro unusable
SourceForge.net
noreply at sourceforge.net
Tue May 18 11:06:39 EDT 2004
Bugs item #955985, was opened at 2004-05-18 10:51
Message generated for change (Comment added) made by tim_one
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.
----------------------------------------------------------------------
>Comment By: Tim Peters (tim_one)
Date: 2004-05-18 11:06
Message:
Logged In: YES
user_id=31435
That's so. We ran out of time before giving datetime a
usable C API. There's a patch currently open, seeking to "fix
that" for Python 2.4.
----------------------------------------------------------------------
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