Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion Doc/faq/windows.rst
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ program. So, how do you arrange for the interpreter to handle your Python?
First, you need to make sure that your command window recognises the word
"python" as an instruction to start the interpreter. If you have opened a
command window, you should try entering the command ``python`` and hitting
return.::
return::

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be . :: (needed a space between . and ::).

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:: gets displayed as :, so it's wrong to add a point before it.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:: after a space is not displayed, but just starts a code block. I believe this was the initial intention of the author of this text. See other occurrences of . :: in the documentation.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The following block is clearly the example of the explained sentence. Sentence is "entering the command python and hitting return", bloc is "C:\Users\YourName> python", so ":" make more sense than "." here, am I wrong?


C:\Users\YourName> python

Expand Down
2 changes: 1 addition & 1 deletion Doc/library/argparse.rst
Original file line number Diff line number Diff line change
Expand Up @@ -981,7 +981,7 @@ is used when no command-line argument was present::


Providing ``default=argparse.SUPPRESS`` causes no attribute to be added if the
command-line argument was not present.::
command-line argument was not present::

>>> parser = argparse.ArgumentParser()
>>> parser.add_argument('--foo', default=argparse.SUPPRESS)
Expand Down
2 changes: 1 addition & 1 deletion Doc/library/mmap.rst
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ To map anonymous memory, -1 should be passed as the fileno along with the length


:class:`~mmap.mmap` can also be used as a context manager in a :keyword:`with`
statement.::
statement::

import mmap

Expand Down