...
No aparece ese métido en 2.5, por lo que veo se incorporó en 2.6.
Creo que ya es hora de ir actualizandome ;)
Gracias.
Seguro?
$ python
Python 2.5.1 (r251:54869, Apr 18 2007, 22:08:04)
[GCC 4.0.1 (Apple Computer, Inc. build 5367)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>
>>>
>>> import calendar
>>> dir(calendar)
['Calendar', 'EPOCH', 'FRIDAY', 'February', 'HTMLCalendar',
'IllegalMonthError', 'IllegalWeekdayError', 'January',
'LocaleHTMLCalendar', 'LocaleTextCalendar', 'MONDAY', 'SATURDAY',
'SUNDAY', 'THURSDAY', 'TUESDAY', 'TextCalendar', 'TimeEncoding',
'WEDNESDAY', '_EPOCH_ORD', '__all__', '__builtins__', '__doc__',
'__file__', '__name__', '_colwidth', '_localized_day',
'_localized_month', '_spacing', 'c', 'calendar', 'datetime', 'day_abbr',
'day_name', 'error', 'firstweekday', 'format', 'formatstring', 'isleap',
'leapdays', 'locale', 'main', 'mdays', 'month', 'month_abbr',
'month_name', 'monthcalendar', 'monthrange', 'prcal', 'prmonth',
'prweek', 'setfirstweekday', 'sys', 'timegm', 'week', 'weekday',
'weekheader', 'with_statement']
>>>
>>> help(calendar.monthrange)
Help on function monthrange in module calendar:
monthrange(year, month)
Return weekday (0-6 ~ Mon-Sun) and number of days (28-31) for
year, month.
>>>