A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2006-April/063338.html below:

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

[Python-Dev] [Python-checkins] r43545 - in python/trunk: Doc/lib/libcalendar.tex Lib/calendar.py [Python-Dev] [Python-checkins] r43545 - in python/trunk: Doc/lib/libcalendar.tex Lib/calendar.pyWalter 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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4