Skip to content

Commit 4ceaa3e

Browse files
[3.15] gh-157847: Remove obsolete "Changes since Python 2.6/3.0" sections from turtle docs (GH-157846) (#157849)
(cherry picked from commit 5962fc2)
1 parent 074a2cd commit 4ceaa3e

2 files changed

Lines changed: 4 additions & 43 deletions

File tree

‎Doc/library/turtle.rst‎

Lines changed: 0 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -2902,49 +2902,6 @@ The demo scripts are:
29022902
Have fun!
29032903

29042904

2905-
Changes since Python 2.6
2906-
========================
2907-
2908-
- The methods :func:`Turtle.tracer <tracer>`, :func:`Turtle.window_width <window_width>` and
2909-
:func:`Turtle.window_height <window_height>` have been eliminated.
2910-
Methods with these names and functionality are now available only
2911-
as methods of :class:`Screen`. The functions derived from these remain
2912-
available. (In fact already in Python 2.6 these methods were merely
2913-
duplications of the corresponding
2914-
:class:`TurtleScreen`/:class:`Screen` methods.)
2915-
2916-
- The method :func:`!Turtle.fill` has been eliminated.
2917-
The behaviour of :func:`begin_fill` and :func:`end_fill`
2918-
have changed slightly: now every filling process must be completed with an
2919-
``end_fill()`` call.
2920-
2921-
- A method :func:`Turtle.filling <filling>` has been added. It returns a boolean
2922-
value: ``True`` if a filling process is under way, ``False`` otherwise.
2923-
This behaviour corresponds to a ``fill()`` call without arguments in
2924-
Python 2.6.
2925-
2926-
Changes since Python 3.0
2927-
========================
2928-
2929-
- The :class:`Turtle` methods :func:`shearfactor`, :func:`shapetransform` and
2930-
:func:`get_shapepoly` have been added. Thus the full range of
2931-
regular linear transforms is now available for transforming turtle shapes.
2932-
:func:`tiltangle` has been enhanced in functionality: it now can
2933-
be used to get or set the tilt angle.
2934-
2935-
- The :class:`Screen` method :func:`onkeypress` has been added as a complement to
2936-
:func:`onkey`. As the latter binds actions to the key release event,
2937-
an alias: :func:`onkeyrelease` was also added for it.
2938-
2939-
- The method :func:`Screen.mainloop <mainloop>` has been added,
2940-
so there is no longer a need to use the standalone :func:`mainloop` function
2941-
when working with :class:`Screen` and :class:`Turtle` objects.
2942-
2943-
- Two input methods have been added: :func:`Screen.textinput <textinput>` and
2944-
:func:`Screen.numinput <numinput>`. These pop up input dialogs and return
2945-
strings and numbers respectively.
2946-
2947-
29482905
.. doctest::
29492906
:skipif: _tkinter is None
29502907
:hide:

‎Doc/tools/removed-ids.txt‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,7 @@ reference/expressions.html: grammar-token-python-grammar-set_display
2727
# Moved to a different page
2828
c-api/typeobj.html: c.Py_tp_base
2929
c-api/typeobj.html: c.Py_tp_bases
30+
31+
# Obsolete sections in 'turtle' docs
32+
library/turtle.html: changes-since-python-2-6
33+
library/turtle.html: changes-since-python-3-0

0 commit comments

Comments
 (0)