[Patches] [ python-Patches-792338 ] timetuple() returns a struct_time

SourceForge.net noreply at sourceforge.net
Thu Sep 4 12:30:51 EDT 2003


Patches item #792338, was opened at 2003-08-21 07:47
Message generated for change (Comment added) made by loewis
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=792338&group_id=5470

Category: Documentation
Group: Python 2.3
>Status: Closed
>Resolution: Accepted
Priority: 5
Submitted By: Steven Taschuk (staschuk)
Assigned to: Martin v. Löwis (loewis)
Summary: timetuple() returns a struct_time

Initial Comment:
The docs for the datetime module describe the return value 

of the .timetuple() methods as being 9-tuples, when in fact 

they are instances of time.struct_time.



The attached patch is a simple-minded rewrite to make this 

point clear.  (A more sophisticated rewrite might explain 

why these methods are called "timetuple" even though they 

don't return tuples.)

----------------------------------------------------------------------

>Comment By: Martin v. Löwis (loewis)
Date: 2003-09-04 20:30

Message:
Logged In: YES 
user_id=21627

Thanks for the patch. Applied as libdatetime.tex 1.50 and

1.49.8.2.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=792338&group_id=5470



More information about the Patches mailing list