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 _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com