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 | [EMAIL PROTECTED] | Brisbane, Australia
---------------------------------------------------------------
http://www.boredomandlaziness.org
_______________________________________________
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com