[Python-Dev] Vacation and possibly a new bug (original) (raw)

Guido van Rossum guido@python.org
Tue, 22 Jul 2003 19:24:25 -0400


And why does t = (time((timet *)0) / YEAR) * YEAR; on line 608 have to divide by YEAR and then multiply by YEAR? Shouldn't those cancel out?

I guess it should have used // instead of /. (X//Y)*Y is a standard way to round X down to a whole multiple of Y, and I presume that's what the code here does.

--Guido van Rossum (home page: http://www.python.org/~guido/)