[Python-checkins] Fix documentation to include possible Exception (#94818)
pganssle
webhook-mailer at python.org
Mon Jul 18 15:31:24 EDT 2022
https://github.com/python/cpython/commit/fc0dc9203d6ed03a5f3f3d0bed16ecda16e04269
commit: fc0dc9203d6ed03a5f3f3d0bed16ecda16e04269
branch: main
author: Guy Yagev <yourlefthandman8 at gmail.com>
committer: pganssle <1377457+pganssle at users.noreply.github.com>
date: 2022年07月18日T15:31:17-04:00
summary:
Fix documentation to include possible Exception (#94818)
files:
M Doc/library/datetime.rst
diff --git a/Doc/library/datetime.rst b/Doc/library/datetime.rst
index ef1535c84bd5a..710f83c72e285 100644
--- a/Doc/library/datetime.rst
+++ b/Doc/library/datetime.rst
@@ -1370,8 +1370,8 @@ Instance methods:
time and this method relies on the platform C :c:func:`mktime`
function to perform the conversion. Since :class:`.datetime`
supports wider range of values than :c:func:`mktime` on many
- platforms, this method may raise :exc:`OverflowError` for times far
- in the past or far in the future.
+ platforms, this method may raise :exc:`OverflowError` or :exc:`OSError`
+ for times far in the past or far in the future.
For aware :class:`.datetime` instances, the return value is computed
as::
More information about the Python-checkins
mailing list