https://github.com/python/cpython/commit/6caab08d58c65d5c2a243c02d9132dea4ba3e1b6
commit: 6caab08d58c65d5c2a243c02d9132dea4ba3e1b6
branch: 3.12
author: Miss Islington (bot) <[email protected]>
committer: hugovk <[email protected]>
date: 2024-09-05T18:05:50Z
summary:

[3.12] gh-85453: Improve instance attributes mark up on datetime.rst 
(GH-123655) (#123741)

Co-authored-by: edson duarte <[email protected]>
Co-authored-by: Hugo van Kemenade <[email protected]>

files:
M Doc/library/datetime.rst

diff --git a/Doc/library/datetime.rst b/Doc/library/datetime.rst
index 7970a2815e74cc..e3ddd8ca82edb6 100644
--- a/Doc/library/datetime.rst
+++ b/Doc/library/datetime.rst
@@ -283,17 +283,23 @@ Class attributes:
 Note that, because of normalization, ``timedelta.max`` is greater than 
``-timedelta.min``.
 ``-timedelta.max`` is not representable as a :class:`timedelta` object.
 
+
 Instance attributes (read-only):
 
-+------------------+--------------------------------------------+
-| Attribute        | Value                                      |
-+==================+============================================+
-| ``days``         | Between -999999999 and 999999999 inclusive |
-+------------------+--------------------------------------------+
-| ``seconds``      | Between 0 and 86399 inclusive              |
-+------------------+--------------------------------------------+
-| ``microseconds`` | Between 0 and 999999 inclusive             |
-+------------------+--------------------------------------------+
+.. attribute:: timedelta.days
+
+   Between -999,999,999 and 999,999,999 inclusive.
+
+
+.. attribute:: timedelta.seconds
+
+   Between 0 and 86,399 inclusive.
+
+
+.. attribute:: timedelta.microseconds
+
+   Between 0 and 999,999 inclusive.
+
 
 Supported operations:
 

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]

Reply via email to