[Python-Dev] A small patch.
diff -r bec6df56c053 Lib/datetime.py --- a/Lib/datetime.pyTue Nov 05 22:01:46 2013 +0200 +++ b/Lib/datetime.pyThu Nov 07 00:46:34 2013 +0530 @@ -43,7 +43,7 @@ def _days_in_month(year, month): "year, month -> number of days in that month in that year." -assert 1 <= month <= 12, month +assert 1 <= month <= 12, 'month must be in 1..12' if month == 2 and _is_leap(year): return 29 return _DAYS_IN_MONTH[month] Best Regards, Srinivas Reddy Thatiparthy ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
Re: [Python-Dev] Sort error in Misc/ACKS
Am i the one who feels we do not add any value by doing this? Best Regards, Srinivas Reddy Thatiparthy 9703888668. "Anyone who has never made a mistake has never tried anything new !!! " --Albert Einstein On Mon, Dec 9, 2013 at 11:43 PM, Skip Montanaro wrote: > > We could always run random.shuffle() on the current list > > so new additions don't look out of place ;) > > Wouldn't that bloat the repository with diffs and make merges more > difficult? > > > > Skip > ___ > Python-Dev mailing list > Python-Dev@python.org > https://mail.python.org/mailman/listinfo/python-dev > Unsubscribe: > https://mail.python.org/mailman/options/python-dev/thatiparthysreenivas%40gmail.com > ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
Re: [Python-Dev] Writable __doc__
this is happening on python 2.6 too. Python 2.6.5 (r265:79063, Apr 16 2010, 13:57:41) [GCC 4.4.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> class Test(type): ... __doc__= File "", line 2 __doc__= ^ SyntaxError: invalid syntax >>> class Test(type): ... __doc__='asasdas' ... >>> >>> Test.__doc__='sadfsdff' Traceback (most recent call last): File "", line 1, in AttributeError: attribute '__doc__' of 'type' objects is not writable >>> type(Test) >>> ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com