Kushal Das

FOSS and life. Kushal Das talks here.


Python development on 3rd October

Issue #12947: Better workaround for the problem with doctest directives being stripped from code examples that are intended to illustrate those directives Concrete examples can be seen in the section http://docs.python.org/library/doctest.html#option-flags-and-directives For instance at http://docs.python.org/library/doctest.html#doctest.IGNORE_EXCEPTION_DETAIL The doctest flags present in the sources in http://docs.python.org/_sources/library/doctest.txt are all stripped.

Issue #15897: zipimport.c doesn't check return value of fseek() The code im zipimport.c doesn't check the return value of fseek() in at least four places. The missing checks may hide issues with the file or file system. It now properly prints "can't read Zip file: filename". This patch was applied to 3.3, 3.2 and 2.7 branch. Files changed:

  • Modules/zipimport.c

Issue #9650: List commonly used format codes in time.strftime and time.strptime docsttings time.strptime and time.strftime documentation now contains the following commonly used format codecs

Commonly used format codes:

%Y  Year with century as a decimal number.
%m  Month as a decimal number [01,12].
%d  Day of the month as a decimal number [01,31].
%H  Hour (24-hour clock) as a decimal number [00,23].
%M  Minute as a decimal number [00,59].
%S  Second as a decimal number [00,61].
%z  Time zone offset from UTC.
%a  Locale's abbreviated weekday name.
%A  Locale's full weekday name.
%b  Locale's abbreviated month name.
%B  Locale's full month name.
%c  Locale's appropriate date and time representation.
%I  Hour (12-hour clock) as a decimal number [01,12].
%p  Locale's equivalent of either AM or PM.

Doc/whatsnew/3.3.rst file also got more updates. On places like email.parser.BytesHeaderParser, logging.basicConfig, mmap.mmap.read, smtpd.