diff options
author | Benjamin Peterson <benjamin@python.org> | 2014-03-20 23:00:35 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2014-03-20 23:00:35 (GMT) |
commit | ee6bdc07d65d5df418ad9dc2bb7139666af9a6b2 (patch) | |
tree | adb181a1a208c65822fb533fdeae01244862f006 /Doc/library/datetime.rst | |
parent | 265ae86414f2a70643bad4b487f07da1c2bba50a (diff) | |
download | cpython-ee6bdc07d65d5df418ad9dc2bb7139666af9a6b2.zip cpython-ee6bdc07d65d5df418ad9dc2bb7139666af9a6b2.tar.gz cpython-ee6bdc07d65d5df418ad9dc2bb7139666af9a6b2.tar.bz2 |
remove the ability of datetime.time to be considered false (closes #13936)
Diffstat (limited to 'Doc/library/datetime.rst')
-rw-r--r-- | Doc/library/datetime.rst | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Doc/library/datetime.rst b/Doc/library/datetime.rst index f72b315..553046f 100644 --- a/Doc/library/datetime.rst +++ b/Doc/library/datetime.rst @@ -1378,10 +1378,13 @@ Supported operations: * efficient pickling -* in Boolean contexts, a :class:`.time` object is considered to be true if and - only if, after converting it to minutes and subtracting :meth:`utcoffset` (or - ``0`` if that's ``None``), the result is non-zero. +In boolean contexts, a :class:`.time` object is always considered to be true. +.. versionchanged:: 3.5 + Before Python 3.5, a :class:`.time` object was considered to be false if it + represented midnight in UTC. This behavior was considered obscure and + error-prone and has been removed in Python 3.5. See :issue:`13936` for full + details. Instance methods: |