Mark Dickinson added the comment:
Perhaps you're misreading the '//'? It's a division operator, not the
start of a comment.
The example works fine for me:
dicki...@alberti:~> python2.6
Python 2.6.2 (r262:71600, Aug 26 2009, 09:40:44)
[GCC 4.2.1 (SUSE Linux)] on linux2
Type "help", "copyright"
New submission from John Gardner :
The output example for timedelta in datetime package has the wrong
output for the supplied commands.
For example:
>>> ten_years, ten_years.days // 365
(datetime.timedelta(3650), 10)
should be:
>>> ten_years, ten_years.days
(datetime.timedelta(3650), 3650)
(or