mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
Docs: remove redundant "adverb-adjective" hyphens from compound modifiers (GH-94551)
Discussion: https://discuss.python.org/t/slight-grammar-fix-throughout-adverbs-dont-need-hyphen/17021
This commit is contained in:
parent
2b8ed4d3d4
commit
3440d197a5
71 changed files with 118 additions and 118 deletions
|
|
@ -294,7 +294,7 @@ It's good practice if you import modules in the following order:
|
|||
1. standard library modules -- e.g. ``sys``, ``os``, ``getopt``, ``re``
|
||||
2. third-party library modules (anything installed in Python's site-packages
|
||||
directory) -- e.g. mx.DateTime, ZODB, PIL.Image, etc.
|
||||
3. locally-developed modules
|
||||
3. locally developed modules
|
||||
|
||||
It is sometimes necessary to move imports to a function or class to avoid
|
||||
problems with circular imports. Gordon McMillan says:
|
||||
|
|
@ -771,7 +771,7 @@ What does the slash(/) in the parameter list of a function mean?
|
|||
|
||||
A slash in the argument list of a function denotes that the parameters prior to
|
||||
it are positional-only. Positional-only parameters are the ones without an
|
||||
externally-usable name. Upon calling a function that accepts positional-only
|
||||
externally usable name. Upon calling a function that accepts positional-only
|
||||
parameters, arguments are mapped to parameters based solely on their position.
|
||||
For example, :func:`divmod` is a function that accepts positional-only
|
||||
parameters. Its documentation looks like this::
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue