8000 Fixing typos in turtle.rst by Seluj78 · Pull Request #24385 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

Fixing typos in turtle.rst #24385

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

Merged
merged 5 commits into from
May 30, 2021
Merged
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
10 changes: 5 additions & 5 deletions Doc/library/turtle.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1894,7 +1894,7 @@ Input methods
Pop up a dialog window for input of a number. title is the title of the
dialog window, prompt is a text mostly describing what numerical information
to input. default: default value, minval: minimum value for input,
maxval: maximum value for input
maxval: maximum value for input.
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this is better rewritten as:

... *title* is the title of the dialog window, *prompt* is a text mostly describing what numerical information to input.  *default* is a default value to fill the input with. 

The number input must be in the range  *minval* .. *maxval* (inclusive) if these are given. If outside of this range, a hint is issued and the dialog remains open for correction.

The number input must be in the range minval .. maxval if these are
given. If not, a hint is issued and the dialog remains open for
correction.
Expand Down Expand Up @@ -1938,7 +1938,7 @@ Settings and special methods
:param cmode: one of the values 1.0 or 255

Return the colormode or set it to 1.0 or 255. Subsequently *r*, *g*, *b*
values of color triples have to be in the range 0..\ *cmode*.
values of color triples have to be in the range 0..*cmode*.

.. doctest::
:skipif: _tkinter is None
Expand Down Expand Up @@ -2002,7 +2002,7 @@ Settings and special methods

>>> screen.register_shape("triangle", ((5,-3), (0,5), (-5,-3)))

(3) *name* is an arbitrary string and shape is a (compound) :class:`Shape`
(3) *name* is an arbitrary string and *shape* is a (compound) :class:`Shape`
object: Install the corresponding compound shape.

Add a turtle shape to TurtleScreen's shapelist. Only thusly registered
Expand Down Expand Up @@ -2349,12 +2349,12 @@ Short explanation of selected entries:
auto``.
- If you set e.g. ``language = italian`` the docstringdict
:file:`turtle_docstringdict_italian.py` will be loaded at import time (if
present on the import path, e.g. in the same directory as :mod:`turtle`.
present on the import path, e.g. in the same directory as :mod:`turtle`).
- The entries *exampleturtle* and *examplescreen* define the names of these
objects as they occur in the docstrings. The transformation of
method-docstrings to function-docstrings will delete these names from the
docstrings.
- *using_IDLE*: Set this to ``True`` if you regularly work with IDLE and its -n
- *using_IDLE*: Set this to ``True`` if you regularly work with IDLE and its ``-n``
switch ("no subprocess"). This will prevent :func:`exitonclick` to enter the
mainloop.

Expand Down
0