]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] gh-85453: Improve instance attributes mark up on datetime.rst (GH-123655)...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 5 Sep 2024 18:05:50 +0000 (20:05 +0200)
committerGitHub <noreply@github.com>
Thu, 5 Sep 2024 18:05:50 +0000 (18:05 +0000)
Co-authored-by: edson duarte <eduarte.uatach@gmail.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Doc/library/datetime.rst

index 7970a2815e74cc562c89966151efb703d14cc439..e3ddd8ca82edb676f0898255dcdda2c560f1f3f6 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: