PEP 495: Added a preamble to a first=None variant.
This commit is contained in:
parent
08777faecd
commit
1c0b0ee97a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue