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

Walter Dörwald walter at livinglogic.de
Mon Apr 3 17:25:18 CEST 2006


Nick Coghlan wrote:

Walter Dörwald wrote:

[...] Range checks should no longer be neccessary, as any value works now. But now all clients of the Calendar class are forced to deal with the fact that "firstweekday" may not be greater than seven. If you want to accept any input value, why not use a property to force it to be modulo 7, rather than doing an actual range check?

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

Bye. Walter Dörwald



More information about the Python-Dev mailing list