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 references static object
Type: Stage:
Components: Library (Lib) Versions:
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: skip.montanaro
Priority: normal Keywords:

Created on 2005-09-02 19:14 by skip.montanaro, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg26183 - (view) Author: Skip Montanaro (skip.montanaro) * (Python triager) Date: 2005-09-02 19:14
In trying to use the C API for datetime objects, we
noticed that
PyDateTime_Check references PyDateTime_DateTimeType,
which is declared static in datetimemodule.c.  This is true
for 2.3, 2.4 and CVS.  That suggests that either
PyDateTime_Check
is supposed to only be used in the datetime module (in
which case it is incorrectly named or its definition is
in the 
wrong file) or the static and statichere declarations
need to
be removed from it.

On the assumption that PyDateTime_Check is supposed to be
publically used, I'm going to opt for the latter fix.
msg26184 - (view) Author: Skip Montanaro (skip.montanaro) * (Python triager) Date: 2005-09-02 19:49
Logged In: YES 
user_id=44345

After looking things over a bit I realize that in 2.4 there
are two versions
of the check macros and that the check macros in 2.3 were
probably
intended to only be used from within the module itself since
there was
no fully defined C API.  I'm going to close this, but others
feel free to
reopen in case my original thoughts were more correct than I
now think.

Skip
History
Date User Action Args
2022-04-11 14:56:12adminsetgithub: 42333
2005-09-02 19:14:05skip.montanarocreate