mirror of
https://github.com/AdaCore/cpython.git
synced 2026-02-12 12:57:15 -08:00
Tell people the *new* behaviour, not just the old behaviour
This commit is contained in:
@@ -1121,7 +1121,7 @@ datetime
|
||||
--------
|
||||
|
||||
* Equality comparisons between naive and aware :class:`~datetime.datetime`
|
||||
instances don't raise :exc:`TypeError`.
|
||||
instances now return :const:`False` instead of raising :exc:`TypeError`.
|
||||
* New :meth:`datetime.datetime.timestamp` method: Return POSIX timestamp
|
||||
corresponding to the :class:`~datetime.datetime` instance.
|
||||
* The :meth:`datetime.datetime.strftime` method supports formatting years
|
||||
|
||||
Reference in New Issue
Block a user