[Python-Dev] [Python-checkins] r43545 - in python/trunk: Doc/lib/libcalendar.tex Lib/calendar.py

Greg Ewing greg.ewing at canterbury.ac.nz
Tue Apr 4 03:49:03 CEST 2006


Walter Dörwald wrote:

> OK, the property setter does a "% 7" now. (But the global
> setfirstweekday() still does a range check).

Wouldn't it be better for the setter to raise an exception
if it's out of range? It probably indicates a bug in the
caller's code.

-- 
Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury,	   | Carpe post meridiam!          	  |
Christchurch, New Zealand	   | (I'm not a morning person.)          |
greg.ewing at canterbury.ac.nz	   +--------------------------------------+


More information about the Python-Dev mailing list