PEP 495: Updated the backward compatibility section.
This commit is contained in:
parent
d5b563e29e
commit
908470b0aa
|
@ -318,8 +318,13 @@ original datetime instance had ``first=False``.
|
|||
Backward and Forward Compatibility
|
||||
----------------------------------
|
||||
|
||||
This proposal will have no effect on the programs that do not set the
|
||||
``first`` flag explicitly or use tzinfo implementations that do.
|
||||
This proposal will have little effect on the programs that do not read
|
||||
the ``first`` flag explicitly or use tzinfo implementations that do.
|
||||
The only visible change for such programs will be that conversions to
|
||||
and from POSIX timestamps will now round-trip correctly (up to
|
||||
floating point rounding). Programs that implemented work-arounds to
|
||||
the old incorrect behavior will need to be modified.
|
||||
|
||||
Pickles produced by older programs will remain fully forward
|
||||
compatible. Only datetime/time instances with ``first=False`` pickled
|
||||
in the new versions will become unreadable by the older Python
|
||||
|
|
Loading…
Reference in New Issue