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/063292.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.pyNick Coghlan ncoghlan at gmail.com
Sun Apr 2 12:21:14 CEST 2006
Walter Dörwald wrote:
> firstweekday is changeable simply by assigning to the attribute:
> 
> import calendar
> cal = calendar.Calendar()
> cal.firstweekday = 6
> 
> The only thing lost is the range check in the setter.

Any particular reason for not making it a property? Then you could keep the 
range check while still manipulating it as if it was a simple attribute.

Cheers,
Nick.



-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia
---------------------------------------------------------------
             http://www.boredomandlaziness.org
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