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: Wrong syntax for PyDateTime_IMPORT in documentation
Type: Stage:
Components: Documentation Versions: Python 2.4
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: akuchling Nosy List: akuchling, dfaure_kde
Priority: normal Keywords:

Created on 2006-10-18 15:44 by dfaure_kde, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg30291 - (view) Author: David Faure (dfaure_kde) Date: 2006-10-18 15:44
http://docs.python.org/api/datetime-objects.html says 
"macro PyDateTime_IMPORT() must be invoked."

But this doesn't compile. It's PyDateTime_IMPORT;
and not PyDateTime_IMPORT();

Also it would be useful to tell if this should be 
done once per thread or just once per process; seeing 
as it modifies a static variable I guess the latter.

Cheers,
David (still getting crashes in 
PyDateTime_FromDateAndTime though but that's another 
topic....)
msg30292 - (view) Author: A.M. Kuchling (akuchling) * (Python committer) Date: 2006-10-26 19:12
Logged In: YES 
user_id=11375

Fixed in trunk (rev 52446), 2.5-maint (rev. 52447), and
2.4-maint (rev. 52448).

Thanks for your report!
History
Date User Action Args
2022-04-11 14:56:20adminsetgithub: 44141
2006-10-18 15:44:11dfaure_kdecreate