summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorAlexander Belopolsky <alexander.belopolsky@gmail.com>2010-07-23 19:25:47 (GMT)
committerAlexander Belopolsky <alexander.belopolsky@gmail.com>2010-07-23 19:25:47 (GMT)
commitcf86e368ebd17e10f68306ebad314eea31daaa1e (patch)
tree8b7d0a707f8ac750e4cc251ed8533a43d4367ebb /Modules
parentc2721b0cd0b61b1369a01bd53a52e898464ca37d (diff)
downloadcpython-cf86e368ebd17e10f68306ebad314eea31daaa1e.zip
cpython-cf86e368ebd17e10f68306ebad314eea31daaa1e.tar.gz
cpython-cf86e368ebd17e10f68306ebad314eea31daaa1e.tar.bz2
Issue #7989: Added pure python implementation of the datetime module.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/Setup.dist2
-rw-r--r--Modules/_datetimemodule.c (renamed from Modules/datetimemodule.c)6
2 files changed, 4 insertions, 4 deletions
diff --git a/Modules/Setup.dist b/Modules/Setup.dist
index 7676c74..bd7128b 100644
--- a/Modules/Setup.dist
+++ b/Modules/Setup.dist
@@ -170,7 +170,7 @@ _symtable symtablemodule.c
#atexit atexitmodule.c # Register functions to be run at interpreter-shutdown
#_elementtree -I$(srcdir)/Modules/expat -DHAVE_EXPAT_CONFIG_H -DUSE_PYEXPAT_CAPI _elementtree.c # elementtree accelerator
#_pickle _pickle.c # pickle accelerator
-#datetime datetimemodule.c # date/time type
+#_datetime _datetimemodule.c # datetime accelerator
#_bisect _bisectmodule.c # Bisection algorithms
#_heapq _heapqmodule.c # Heap queue algorithm
diff --git a/Modules/datetimemodule.c b/Modules/_datetimemodule.c
index bd25d1e..b2505d1 100644
--- a/Modules/datetimemodule.c
+++ b/Modules/_datetimemodule.c
@@ -25,7 +25,7 @@
* final result fits in a C int (this can be an issue on 64-bit boxes).
*/
#if SIZEOF_INT < 4
-# error "datetime.c requires that C int have at least 32 bits"
+# error "_datetime.c requires that C int have at least 32 bits"
#endif
#define MINYEAR 1
@@ -5086,7 +5086,7 @@ static PyDateTime_CAPI CAPI = {
static struct PyModuleDef datetimemodule = {
PyModuleDef_HEAD_INIT,
- "datetime",
+ "_datetime",
"Fast implementation of the datetime type.",
-1,
module_methods,
@@ -5097,7 +5097,7 @@ static struct PyModuleDef datetimemodule = {
};
PyMODINIT_FUNC
-PyInit_datetime(void)
+PyInit__datetime(void)
{
PyObject *m; /* a module object */
PyObject *d; /* its dict */