Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

gh-85453: Fix missing/wrong backquotes and role texts in datetime documentation #21447

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 15 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Changed all True/False/None to simple code markups, according to the …
…DevGuide
  • Loading branch information
yyyyyyyan committed Jul 12, 2020
commit 06275f2dfaa10448970ac5dc21c81974c81d10ef
8 changes: 4 additions & 4 deletions 8 Doc/library/datetime.rst
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,7 @@ Notes:
chance at implementing mixed-type comparison. If not, when a :class:`date`
object is compared to an object of a different type, :exc:`TypeError` is raised
unless the comparison is ``==`` or ``!=``. The latter cases return
:const:`False` or :const:`True`, respectively.
``False`` or ``True``, respectively.

In Boolean contexts, all :class:`date` objects are considered to be true.

Expand Down Expand Up @@ -1189,7 +1189,7 @@ Supported operations:
chance at implementing mixed-type comparison. If not, when a :class:`.datetime`
object is compared to an object of a different type, :exc:`TypeError` is raised
unless the comparison is ``==`` or ``!=``. The latter cases return
:const:`False` or :const:`True`, respectively.
``False`` or ``True``, respectively.

Instance methods:

Expand Down Expand Up @@ -1660,7 +1660,7 @@ day, and subject to adjustment via a :class:`tzinfo` object.
* ``fold in [0, 1]``.

If an argument outside those ranges is given, :exc:`ValueError` is raised. All
default to ``0`` except *tzinfo*, which defaults to :const:`None`.
default to ``0`` except *tzinfo*, which defaults to ``None``.

Class attributes:

Expand Down Expand Up @@ -1734,7 +1734,7 @@ subtracting their UTC offsets (obtained from ``self.utcoffset()``). In order
to stop mixed-type comparisons from falling back to the default comparison by
object address, when a :class:`.time` object is compared to an object of a
different type, :exc:`TypeError` is raised unless the comparison is ``==`` or
``!=``. The latter cases return :const:`False` or :const:`True`, respectively.
``!=``. The latter cases return ``False`` or ``True``, respectively.

.. versionchanged:: 3.3
Equality comparisons between aware and naive :class:`~datetime.time` instances
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.