]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-85453: Improve instance attributes mark up on datetime.rst (#123655)
authoredson duarte <eduarte.uatach@gmail.com>
Thu, 5 Sep 2024 17:56:52 +0000 (14:56 -0300)
committerGitHub <noreply@github.com>
Thu, 5 Sep 2024 17:56:52 +0000 (20:56 +0300)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Doc/library/datetime.rst

index b8b442508becbb13e4bb1056ff8e6f4356504809..0e7dc4f262bab4b5d0cc66bf31f90c54c3fba7d2 100644 (file)
@@ -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: