mirror of https://github.com/python/cpython
Fix documentation to include possible Exception (#94818)
This commit is contained in:
parent
a25a803c4c
commit
fc0dc9203d
|
@ -1370,8 +1370,8 @@ Instance methods:
|
||||||
time and this method relies on the platform C :c:func:`mktime`
|
time and this method relies on the platform C :c:func:`mktime`
|
||||||
function to perform the conversion. Since :class:`.datetime`
|
function to perform the conversion. Since :class:`.datetime`
|
||||||
supports wider range of values than :c:func:`mktime` on many
|
supports wider range of values than :c:func:`mktime` on many
|
||||||
platforms, this method may raise :exc:`OverflowError` for times far
|
platforms, this method may raise :exc:`OverflowError` or :exc:`OSError`
|
||||||
in the past or far in the future.
|
for times far in the past or far in the future.
|
||||||
|
|
||||||
For aware :class:`.datetime` instances, the return value is computed
|
For aware :class:`.datetime` instances, the return value is computed
|
||||||
as::
|
as::
|
||||||
|
|
Loading…
Reference in New Issue