[Python-Dev] [Python-checkins] r43545 - in python/trunk: Doc/lib/libcalendar.tex Lib/calendar.py (original) (raw)
Greg Ewing greg.ewing at canterbury.ac.nz
Wed Apr 5 00:50:52 CEST 2006
- Previous message: [Python-Dev] [Python-checkins] r43545 - in python/trunk: Doc/lib/libcalendar.tex Lib/calendar.py
- Next message: [Python-Dev] [Python-checkins] r43545 - in python/trunk: Doc/lib/libcalendar.tex Lib/calendar.py
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Walter Dörwald wrote:
Greg Ewing wrote:
Wouldn't it be better for the setter to raise an exception if it's out of range? It probably indicates a bug in the caller's code. The day before Monday is -1, so it adds a little convenience.
In that case, why doesn't the global function allow the same convenience?
I think we've spent more time discussing the calendar module, than the Python community has spent using it! ;)
It makes a nice change from adaptation and generic functions. :-)
-- Greg
- Previous message: [Python-Dev] [Python-checkins] r43545 - in python/trunk: Doc/lib/libcalendar.tex Lib/calendar.py
- Next message: [Python-Dev] [Python-checkins] r43545 - in python/trunk: Doc/lib/libcalendar.tex Lib/calendar.py
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]