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.

classification
Title: PyDateTime_Check macro unusable
Type: Stage:
Components: Extension Modules Versions: Python 2.3
process
Status: closed Resolution: duplicate
Dependencies: Superseder:
Assigned To: Nosy List: tim.peters, willeke
Priority: normal Keywords:

Created on 2004-05-18 14:51 by willeke, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (3)
msg20833 - (view) Author: Jon Willeke (willeke) Date: 2004-05-18 14:51
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.
msg20834 - (view) Author: Tim Peters (tim.peters) * (Python committer) Date: 2004-05-18 15:06
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.
msg20835 - (view) Author: Jon Willeke (willeke) Date: 2004-05-18 18:07
Logged In: YES 
user_id=185468

Thanks.  I searched the bugs, but not the patches.

Closing as a duplicate.
History
Date User Action Args
2022-04-11 14:56:04adminsetgithub: 40265
2004-05-18 14:51:01willekecreate