PEP 495: Added a preamble to a first=None variant.

This commit is contained in:
Alexander Belopolsky 2015-08-24 17:29:10 -04:00
parent 08777faecd
commit 1c0b0ee97a
1 changed files with 6 additions and 0 deletions

View File

@ -509,6 +509,12 @@ and strict checking for invalid times.
Backward Compatibility
......................
It has been suggested that backward compatibility can be improved if
the default value of the ``first`` flag was ``None`` which would
signal that pre-PEP behavior is requested. Based on the analysis
below, we believe that the proposed changes with the ``first=True``
default are sufficiently backward compatible.
This PEP provides only three ways for a program to discover that two
otherwise identical datetime instances have different values of
``first``: (1) an explicit check of the ``first`` attribute; (2) if