mirror of
https://github.com/python/cpython.git
synced 2025-10-01 12:52:18 +00:00
Fix typos '.::' should typically just be '::'. (GH-6165) (GH-6300)
(cherry picked from commit 78553138be
)
Co-authored-by: Julien Palard <julien@palard.fr>
This commit is contained in:
parent
a48614bee5
commit
a470b7462d
3 changed files with 3 additions and 3 deletions
|
@ -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
|
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
|
"python" as an instruction to start the interpreter. If you have opened a
|
||||||
command window, you should try entering the command ``python`` and hitting
|
command window, you should try entering the command ``python`` and hitting
|
||||||
return.::
|
return::
|
||||||
|
|
||||||
C:\Users\YourName> python
|
C:\Users\YourName> python
|
||||||
|
|
||||||
|
|
|
@ -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
|
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 = argparse.ArgumentParser()
|
||||||
>>> parser.add_argument('--foo', default=argparse.SUPPRESS)
|
>>> parser.add_argument('--foo', default=argparse.SUPPRESS)
|
||||||
|
|
|
@ -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`
|
:class:`~mmap.mmap` can also be used as a context manager in a :keyword:`with`
|
||||||
statement.::
|
statement::
|
||||||
|
|
||||||
import mmap
|
import mmap
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue