PEP 495: Updated the backward compatibility section.

This commit is contained in:
Alexander Belopolsky 2015-08-09 20:58:00 -04:00
parent d5b563e29e
commit 908470b0aa
1 changed files with 7 additions and 2 deletions

View File

@ -318,8 +318,13 @@ original datetime instance had ``first=False``.
Backward and Forward Compatibility Backward and Forward Compatibility
---------------------------------- ----------------------------------
This proposal will have no effect on the programs that do not set the This proposal will have little effect on the programs that do not read
``first`` flag explicitly or use tzinfo implementations that do. 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 Pickles produced by older programs will remain fully forward
compatible. Only datetime/time instances with ``first=False`` pickled compatible. Only datetime/time instances with ``first=False`` pickled
in the new versions will become unreadable by the older Python in the new versions will become unreadable by the older Python