@@ -180,19 +180,19 @@ Objects of the :class:`date` type are always naive.
180
180
181
181
An object of type :class: `.time ` or :class: `.datetime ` may be aware or naive.
182
182
183
- A :class: `.datetime ` object * d * is aware if both of the following hold:
183
+ A :class: `.datetime ` object `` d `` is aware if both of the following hold:
184
184
185
185
1. ``d.tzinfo `` is not ``None ``
186
186
2. ``d.tzinfo.utcoffset(d) `` does not return ``None ``
187
187
188
- Otherwise, * d * is naive.
188
+ Otherwise, `` d `` is naive.
189
189
190
- A :class: `.time ` object * t * is aware if both of the following hold:
190
+ A :class: `.time ` object `` t `` is aware if both of the following hold:
191
191
192
192
1. ``t.tzinfo `` is not ``None ``
193
193
2. ``t.tzinfo.utcoffset(None) `` does not return ``None ``.
194
194
195
- Otherwise, * t * is naive.
195
+ Otherwise, `` t `` is naive.
196
196
197
197
The distinction between aware and naive doesn't apply to :class: `timedelta `
198
198
objects.
@@ -358,8 +358,8 @@ Supported operations:
358
358
+--------------------------------+-----------------------------------------------+
359
359
| ``q, r = divmod(t1, t2) `` | Computes the quotient and the remainder: |
360
360
| | ``q = t1 // t2 `` (3) and ``r = t1 % t2 ``. |
361
- | | q is an integer and r is a :class: ` timedelta ` |
362
- | | object. |
361
+ | | `` q `` is an integer and `` r `` is a |
362
+ | | :class: ` timedelta ` object. |
363
363
+--------------------------------+-----------------------------------------------+
364
364
| ``+t1 `` | Returns a :class: `timedelta ` object with the |
365
365
| | same value. (2) |
@@ -526,7 +526,7 @@ Other constructors, all class methods:
526
526
January 1 of year 1 has ordinal 1.
527
527
528
528
:exc: `ValueError ` is raised unless ``1 <= ordinal <=
529
- date.max.toordinal() ``. For any date * d * ,
529
+ date.max.toordinal() ``. For any date `` d `` ,
530
530
``date.fromordinal(d.toordinal()) == d ``.
531
531
532
532
@@ -697,7 +697,7 @@ Instance methods:
697
697
.. method :: date.toordinal()
698
698
699
699
Return the proleptic Gregorian ordinal of the date, where January 1 of year 1
700
- has ordinal 1. For any :class: `date ` object * d * ,
700
+ has ordinal 1. For any :class: `date ` object `` d `` ,
701
701
``date.fromordinal(d.toordinal()) == d ``.
702
702
703
703
@@ -749,7 +749,7 @@ Instance methods:
749
749
750
750
.. method :: date.__str__()
751
751
752
- For a date * d * , ``str(d) `` is equivalent to ``d.isoformat() ``.
752
+ For a date `` d `` , ``str(d) `` is equivalent to ``d.isoformat() ``.
753
753
754
754
755
755
.. method :: date.ctime()
@@ -1030,7 +1030,7 @@ Other constructors, all class methods:
1030
1030
is used. If the *date * argument is a :class: `.datetime ` object, its time components
1031
1031
and :attr: `.tzinfo ` attributes are ignored.
1032
1032
1033
- For any :class: `.datetime ` object * d * ,
1033
+ For any :class: `.datetime ` object `` d `` ,
1034
1034
``d == datetime.combine(d.date(), d.time(), d.tzinfo) ``.
1035
1035
1036
1036
.. versionchanged :: 3.6
@@ -1237,11 +1237,11 @@ Supported operations:
1237
1237
1238
1238
If both are naive, or both are aware and have the same :attr: `~.datetime.tzinfo ` attribute,
1239
1239
the :attr: `~.datetime.tzinfo ` attributes are ignored, and the result is a :class: `timedelta `
1240
- object * t * such that ``datetime2 + t == datetime1 ``. No time zone adjustments
1240
+ object `` t `` such that ``datetime2 + t == datetime1 ``. No time zone adjustments
1241
1241
are done in this case.
1242
1242
1243
1243
If both are aware and have different :attr: `~.datetime.tzinfo ` attributes, ``a-b `` acts
1244
- as if * a * and * b * were first converted to naive UTC datetimes. The
1244
+ as if `` a `` and `` b `` were first converted to naive UTC datetimes. The
1245
1245
result is ``(a.replace(tzinfo=None) - a.utcoffset()) - (b.replace(tzinfo=None)
1246
1246
- b.utcoffset()) `` except that the implementation never overflows.
1247
1247
@@ -1421,11 +1421,11 @@ Instance methods:
1421
1421
1422
1422
.. method :: datetime.utctimetuple()
1423
1423
1424
- If :class: `.datetime ` instance * d * is naive, this is the same as
1424
+ If :class: `.datetime ` instance `` d `` is naive, this is the same as
1425
1425
``d.timetuple() `` except that :attr: `~.time.struct_time.tm_isdst ` is forced to 0 regardless of what
1426
1426
``d.dst() `` returns. DST is never in effect for a UTC time.
1427
1427
1428
- If * d * is aware, * d * is normalized to UTC time, by subtracting
1428
+ If `` d `` is aware, `` d `` is normalized to UTC time, by subtracting
1429
1429
``d.utcoffset() ``, and a :class: `time.struct_time ` for the
1430
1430
normalized time is returned. :attr: `!tm_isdst ` is forced to 0. Note
1431
1431
that an :exc: `OverflowError ` may be raised if ``d.year `` was
@@ -1573,7 +1573,7 @@ Instance methods:
1573
1573
1574
1574
.. method :: datetime.__str__()
1575
1575
1576
- For a :class: `.datetime ` instance * d * , ``str(d) `` is equivalent to
1576
+ For a :class: `.datetime ` instance `` d `` , ``str(d) `` is equivalent to
1577
1577
``d.isoformat(' ') ``.
1578
1578
1579
1579
@@ -1820,7 +1820,7 @@ Instance attributes (read-only):
1820
1820
.. versionadded :: 3.6
1821
1821
1822
1822
:class: `.time ` objects support equality and order comparisons,
1823
- where * a * is considered less than * b * when * a * precedes * b * in time.
1823
+ where `` a `` is considered less than `` b `` when `` a `` precedes `` b `` in time.
1824
1824
1825
1825
Naive and aware :class: `!time ` objects are never equal.
1826
1826
Order comparison between naive and aware :class: `!time ` objects raises
@@ -1951,7 +1951,7 @@ Instance methods:
1951
1951
1952
1952
.. method :: time.__str__()
1953
1953
1954
- For a time * t * , ``str(t) `` is equivalent to ``t.isoformat() ``.
1954
+ For a time `` t `` , ``str(t) `` is equivalent to ``t.isoformat() ``.
1955
1955
1956
1956
1957
1957
.. method :: time.strftime(format)
0 commit comments