[issue9005] Year range in timetuple

Alexander Belopolsky report at bugs.python.org
Mon Jul 5 19:23:51 CEST 2010


Alexander Belopolsky <belopolsky at users.sourceforge.net> added the comment:

Similarly, it appears that


    if (*m < 1 || *m > 12) {
	--*m;
        normalize_pair(y, m, 12);
        ++*m;
        /* |y| can't be bigger than about                                                                                                                                                
         * |original y| + |original m|/12 now.                                                                                                                                           
         */
    }

in normalize_y_m_d(int *y, int *m, int *d) is a dead branch.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9005>
_______________________________________


More information about the Python-bugs-list mailing list