[Python-checkins] python/dist/src/Modules datetimemodule.c, 1.75, 1.75.2.1

rhettinger at users.sourceforge.net rhettinger at users.sourceforge.net
Sun Dec 19 21:17:08 CET 2004


Update of /cvsroot/python/python/dist/src/Modules
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8651

Modified Files:
      Tag: release24-maint
	datetimemodule.c 
Log Message:
Bug #1087216:  datetime module documentation missing critical detail



Index: datetimemodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/datetimemodule.c,v
retrieving revision 1.75
retrieving revision 1.75.2.1
diff -u -d -r1.75 -r1.75.2.1
--- datetimemodule.c	16 Sep 2004 01:30:50 -0000	1.75
+++ datetimemodule.c	19 Dec 2004 20:16:57 -0000	1.75.2.1
@@ -2659,7 +2659,7 @@
 };
 
 static char date_doc[] =
-PyDoc_STR("Basic date type.");
+PyDoc_STR("date(year, month, day) --> date object");
 
 static PyNumberMethods date_as_number = {
 	date_add,					/* nb_add */
@@ -3431,7 +3431,10 @@
 };
 
 static char time_doc[] =
-PyDoc_STR("Time type.");
+PyDoc_STR("time([hour[, minute[, second[, microsecond[, tzinfo]]]]]) --> a time object\n\
+\n\
+All arguments are optional. tzinfo may be None, or an instance of\n\
+a tzinfo subclass. The remaining arguments may be ints or longs.\n");
 
 static PyNumberMethods time_as_number = {
 	0,					/* nb_add */
@@ -4468,7 +4471,10 @@
 };
 
 static char datetime_doc[] =
-PyDoc_STR("date/time type.");
+PyDoc_STR("datetime(year, month, day[, hour[, minute[, second[, microsecond[,tzinfo]]]]])\n\
+\n\
+The year, month and day arguments are required. tzinfo may be None, or an\n\
+instance of a tzinfo subclass. The remaining arguments may be ints or longs.\n");
 
 static PyNumberMethods datetime_as_number = {
 	datetime_add,				/* nb_add */



More information about the Python-checkins mailing list