Benjamin Peterson
95287fa951
Remove some from __future__ import with_statements
2008-04-30 21:25:55 +00:00
Walter Dörwald
d0e5b766f1
Fix typo in docstring for Calendar.itermonthdays().
2008-02-07 19:57:32 +00:00
Walter Dörwald
edc526c161
Fix TextCalendar.prweek(). This closes issue #1427 .
2007-11-12 10:01:33 +00:00
Christian Heimes
ced1646b9e
Fix for #1427 : Error in standard module calendar
...
the prweek() method is still broken and I can't figure out how it suppose to work.
2007-11-12 01:20:56 +00:00
Walter Dörwald
f0d1c1f3ec
Fix title endtag in HTMLCalender.formatyearpage(). Fix documentation for
...
HTMLCalender.formatyearpage() (there's no themonth parameter).
This fixes issue1046.
2007-08-28 16:38:26 +00:00
Raymond Hettinger
72ef8daa88
calendar.py gets no benefit from xrange() instead of range()
2007-05-17 01:08:04 +00:00
Guido van Rossum
da5b701aee
Get rid of __context__, per the latest changes to PEP 343 and python-dev
...
discussion.
There are two places of documentation that still mention __context__:
Doc/lib/libstdtypes.tex -- I wasn't quite sure how to rewrite that without
spending a whole lot of time thinking about it; and whatsnew, which Andrew
usually likes to change himself.
2006-05-02 19:47:52 +00:00
Walter Dörwald
bc96609555
Patch #1463288 : use a context manager to temporarily switch locales.
...
Add tests for the output of the TextCalendar and HTMLCalendar classes.
2006-04-12 10:09:16 +00:00
Anthony Baxter
7846f4d365
missing 'self' from TextCalendar.prweek.
2006-04-07 05:41:13 +00:00
Walter Dörwald
2a1b4a69b7
For backwards compatibility reasons the global function
...
setfirstweekday() still needs to do a range check.
2006-04-03 15:24:49 +00:00
Walter Dörwald
72d84af401
Always return firstweekday % 7 instead of complaining
...
on setting.
2006-04-03 15:21:59 +00:00
Walter Dörwald
aba10cf153
Turn firstweekday into a property.
2006-04-03 15:20:28 +00:00
Walter Dörwald
04ee87097c
Always use firstweekday module 7.
2006-04-02 22:11:10 +00:00
Walter Dörwald
f878b8120c
Make firstweekday a simple attribute instead
...
of hiding it behind a setter and a getter.
2006-04-01 20:40:23 +00:00
Walter Dörwald
48d5e508eb
Bug #947906 : Add classes LocaleTextCalendar and LocaleHTMLCalendar,
...
that output localized month and weekday names and can cope
with encodings.
2006-04-01 07:57:00 +00:00
Walter Dörwald
58917a6083
Bug #947906 : An object oriented interface has been added to the calendar
...
module. It's possible to generate HTML calendar now and the module can be
called as a script (e.g. via ``python -mcalendar``).
2006-03-31 15:26:22 +00:00
Raymond Hettinger
77d08bcfc2
SF bug #1193890 : calendar.weekheader not found in __all__
2005-05-10 03:20:12 +00:00
Tim Peters
bbc0d4409c
SF bug 1065388: calendar day/month name lookup too slow
...
__getitem__() methods: compute only the new spellings needed to satisfy
the given indexing object. This is purely an optimization (it should
have no effect on visible semantics).
2004-11-13 16:18:32 +00:00
Neal Norwitz
492faa5505
There is no reason to have an underscore after self
2004-06-07 03:47:06 +00:00
Walter Dörwald
70a6b49821
Replace backticks with repr() or "%r"
...
From SF patch #852334 .
2004-02-12 17:35:32 +00:00
Raymond Hettinger
61436489f9
SF 685011: calendar module overflow handling
...
Restored a Py2.2 behavior to not range check the day of the month.
A user application was this exploiting undocumented, accidental "feature".
2003-02-13 22:58:02 +00:00
Raymond Hettinger
e11b510a5b
SF 658405: calendar.py to rely on the datetime module instead of the time
...
module.
The code is shorter, more readable, faster, and dramatically increases the
range of acceptable dates.
Also, used the floor division operator in leapdays().
2002-12-25 16:37:19 +00:00
Raymond Hettinger
9ecf9ce161
Patches #626105 :
...
Replaces the _center function in the calendar
module with the center method for strings.
For situations with uneven padding, the behavior is
slightly different in that the center method puts the
extra space on the right instead of the left.
2002-10-22 05:15:17 +00:00
Raymond Hettinger
d058f08e03
Eliminate unused instance variable
2002-10-21 03:08:20 +00:00
Raymond Hettinger
9c051d7e01
SF 570727 indexer() class no longer needed since lists now support slicing
2002-06-20 03:38:12 +00:00