calendar.py doesn't use lists???

Neal Norwitz neal at metaslash.com
Mon Apr 22 19:07:30 EDT 2002


Aaron Watters wrote:
> 
> Hi guys.  I got an irksome problem.  It's possible that
> it's fixed in python 2.2.1, but even if it is, it irks me.

It is fixed.

Python 2.2.1 (#6, Apr 20 2002, 18:17:02) 
[GCC 2.96 20000731 (Red Hat Linux 7.1 2.96-98)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import calendar
>>> print list(calendar.month_abbr)
['', 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
>>> print list(calendar.month_name)
['', 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November',
'December']



More information about the Python-list mailing list