@@ -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
@@ -678,7 +678,7 @@ Instance methods:
678
678
.. method :: date.toordinal()
679
679
680
680
Return the proleptic Gregorian ordinal of the date, where January 1 of year 1
681
- has ordinal 1. For any :class: `date ` object * d * ,
681
+ has ordinal 1. For any :class: `date ` object `` d `` ,
682
682
``date.fromordinal(d.toordinal()) == d ``.
683
683
684
684
@@ -730,7 +730,7 @@ Instance methods:
730
730
731
731
.. method :: date.__str__()
732
732
733
- For a date * d * , ``str(d) `` is equivalent to ``d.isoformat() ``.
733
+ For a date `` d `` , ``str(d) `` is equivalent to ``d.isoformat() ``.
734
734
735
735
736
736
.. method :: date.ctime()
@@ -1011,7 +1011,7 @@ Other constructors, all class methods:
1011
1011
is used. If the *date * argument is a :class: `.datetime ` object, its time components
1012
1012
and :attr: `.tzinfo ` attributes are ignored.
1013
1013
1014
- For any :class: `.datetime ` object * d * ,
1014
+ For any :class: `.datetime ` object `` d `` ,
1015
1015
``d == datetime.combine(d.date(), d.time(), d.tzinfo) ``.
1016
1016
1017
1017
.. versionchanged :: 3.6
@@ -1200,11 +1200,11 @@ Supported operations:
1200
1200
1201
1201
If both are naive, or both are aware and have the same :attr: `~.datetime.tzinfo ` attribute,
1202
1202
the :attr: `~.datetime.tzinfo ` attributes are ignored, and the result is a :class: `timedelta `
1203
- object * t * such that ``datetime2 + t == datetime1 ``. No time zone adjustments
1203
+ object `` t `` such that ``datetime2 + t == datetime1 ``. No time zone adjustments
1204
1204
are done in this case.
1205
1205
1206
1206
If both are aware and have different :attr: `~.datetime.tzinfo ` attributes, ``a-b `` acts
1207
- as if * a * and * b * were first converted to naive UTC datetimes. The
1207
+ as if `` a `` and `` b `` were first converted to naive UTC datetimes. The
1208
1208
result is ``(a.replace(tzinfo=None) - a.utcoffset()) - (b.replace(tzinfo=None)
1209
1209
- b.utcoffset()) `` except that the implementation never overflows.
1210
1210
@@ -1377,11 +1377,11 @@ Instance methods:
1377
1377
1378
1378
.. method :: datetime.utctimetuple()
1379
1379
1380
- If :class: `.datetime ` instance * d * is naive, this is the same as
1380
+ If :class: `.datetime ` instance `` d `` is naive, this is the same as
1381
1381
``d.timetuple() `` except that :attr: `~.time.struct_time.tm_isdst ` is forced to 0 regardless of what
1382
1382
``d.dst() `` returns. DST is never in effect for a UTC time.
1383
1383
1384
- If * d * is aware, * d * is normalized to UTC time, by subtracting
1384
+ If `` d `` is aware, `` d `` is normalized to UTC time, by subtracting
1385
1385
``d.utcoffset() ``, and a :class: `time.struct_time ` for the
1386
1386
normalized time is returned. :attr: `!tm_isdst ` is forced to 0. Note
1387
1387
that an :exc: `OverflowError ` may be raised if ``d.year `` was
@@ -1529,7 +1529,7 @@ Instance methods:
1529
1529
1530
1530
.. method :: datetime.__str__()
1531
1531
1532
- For a :class: `.datetime ` instance * d * , ``str(d) `` is equivalent to
1532
+ For a :class: `.datetime ` instance `` d `` , ``str(d) `` is equivalent to
1533
1533
``d.isoformat(' ') ``.
1534
1534
1535
1535
@@ -1776,7 +1776,7 @@ Instance attributes (read-only):
1776
1776
.. versionadded :: 3.6
1777
1777
1778
1778
:class: `.time ` objects support equality and order comparisons,
1779
- where * a * is considered less than * b * when * a * precedes * b * in time.
1779
+ where `` a `` is considered less than `` b `` when `` a `` precedes `` b `` in time.
1780
1780
1781
1781
Naive and aware :class: `!time ` objects are never equal.
1782
1782
Order comparison between naive and aware :class: `!time ` objects raises
@@ -1904,7 +1904,7 @@ Instance methods:
1904
1904
1905
1905
.. method :: time.__str__()
1906
1906
1907
- For a time * t * , ``str(t) `` is equivalent to ``t.isoformat() ``.
1907
+ For a time `` t `` , ``str(t) `` is equivalent to ``t.isoformat() ``.
1908
1908
1909
1909
1910
1910
.. method :: time.strftime(format)
0 commit comments