summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2003-02-01 01:52:50 (GMT)
committerTim Peters <tim.peters@gmail.com>2003-02-01 01:52:50 (GMT)
commit371935fc065e69c59c5382cbbf2cb098cf410f0e (patch)
tree4008df9e43ddb8954883570bd41ebdd4d2db446d /Modules
parent8a60c2238bf65daa8f6558ef6cf04191dbfdb5fe (diff)
downloadcpython-371935fc065e69c59c5382cbbf2cb098cf410f0e.zip
cpython-371935fc065e69c59c5382cbbf2cb098cf410f0e.tar.gz
cpython-371935fc065e69c59c5382cbbf2cb098cf410f0e.tar.bz2
All over: changed comments to reflect pickling is straightforward now,
not the maze it was.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/datetimemodule.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/Modules/datetimemodule.c b/Modules/datetimemodule.c
index 029bed3..c149d1c 100644
--- a/Modules/datetimemodule.c
+++ b/Modules/datetimemodule.c
@@ -1947,8 +1947,8 @@ delta_str(PyDateTime_Delta *self)
return NULL;
}
-/* Pickle support. This is a plain application of __reduce__.
- */
+/* Pickle support, a simple use of __reduce__. */
+
static PyObject *
delta_getstate(PyDateTime_Delta *self)
{
@@ -2523,7 +2523,7 @@ date_weekday(PyDateTime_Date *self)
return PyInt_FromLong(dow);
}
-/* Pickle support. Quite a maze! */
+/* Pickle support, a simple use of __reduce__. */
static PyObject *
date_getstate(PyDateTime_Date *self)
@@ -3335,9 +3335,7 @@ time_nonzero(PyDateTime_Time *self)
return (TIME_GET_MINUTE(self) - offset + TIME_GET_HOUR(self)*60) != 0;
}
-/*
- * Pickle support. Quite a maze!
- */
+/* Pickle support, a simple use of __reduce__. */
/* Let basestate be the non-tzinfo data string.
* If tzinfo is None, this returns (basestate,), else (basestate, tzinfo).
@@ -4337,7 +4335,7 @@ datetime_utctimetuple(PyDateTime_DateTime *self)
return build_struct_time(y, m, d, hh, mm, ss, 0);
}
-/* Pickle support. Quite a maze! */
+/* Pickle support, a simple use of __reduce__. */
/* Let basestate be the non-tzinfo data string.
* If tzinfo is None, this returns (basestate,), else (basestate, tzinfo).