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.

Author pitrou
Recipients Robin.Schreiber, asvetlov, belopolsky, pitrou
Date 2012-08-14.19:09:58
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
+    Py_CLEAR(_datetimemodulestate(m)->PyDateTime_DateTimeType);
+    Py_CLEAR(_datetimemodulestate(m)->PyDateTime_DeltaType);
+    Py_CLEAR(_datetimemodulestate(m)->PyDateTime_TimeType);
+    Py_CLEAR(_datetimemodulestate(m)->PyDateTime_TimeZoneType);
+    Py_CLEAR(_datetimemodulestate(m)->PyDateTime_DateType);
+    Py_CLEAR(_datetimemodulestate(m)->PyDateTime_TZInfoType);

Style nit: I would really store the module state pointer in a variable here, instead of repeating _datetimemodulestate(m) every line.
(same in other places, such as the module init function)

+PyObject* _Get_State(struct PyModuleDef*);

I'm not sure why a module should define such generic a function, and especially not without a "Py" prefix.

Besides, review comments from issue15653 apply here.
Date User Action Args
2012-08-14 19:09:58pitrousetrecipients: + pitrou, belopolsky, asvetlov, Robin.Schreiber
2012-08-14 19:09:58pitrousetmessageid: <>
2012-08-14 19:09:58pitroulinkissue15390 messages
2012-08-14 19:09:58pitroucreate