sobolevn
901d94992e
Fix `print` usage in `turtle` doctests ( #122940 )
2024-08-13 19:39:12 +03:00
DongWoo Son
2302fa17cf
no-issue: Capitalise 'PhotoImage' (gh-108958)
2023-09-25 21:37:40 +09:00
Nikita Sobolev
044b8b3b6a
gh-107805: Fix signatures of module-level generated functions in `turtle` ( #107807 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-09-01 01:18:15 -07:00
Victor Stinner
94d5f9827d
gh-105407: Remove unused imports in the stdlib ( #105411 )
2023-06-06 21:13:24 +00:00
Hugo van Kemenade
10c45838e1
gh-104876: Remove deprecated turtle.RawTurtle.settiltangle ( #104877 )
...
Co-authored-by: Victor Stinner <vstinner@python.org>
2023-05-26 07:25:52 +03:00
Terry Jan Reedy
e407661e7a
gh-65772: Clean-up turtle module ( #104218 )
...
* Remove the unused, private, and undocumented name `_ver` and
the commented-out `print` call.
* Don't add math functions to `__all__`. Beginners should learn
to `import math` to access them.
* Gregor Lindel, who wrote this version of turtle, dropped plans
to implement turtle on another toolkit at least a decade ago.
Drop `_dot` code preparing for this, but add a hint comment.
* `_Screen` is meant to be a singleton class. To enforce that,
it needs either a `__new__` that returns the singleton or
`else...raise` in `__iter__`. Merely removing the `if` clauses
as suggested might break something if a user were to call `_Screen`
directly. Leave the code alone until a problem is evident.
* Turtledemo injects into _Screen both _root and _canvas,
configured as it needs them to be. Making _canvas an `__init__`
option would require skipping some but not all of the lines under
'if _Screen._canvas is None:`. Leave working code alone.
2023-05-06 11:04:41 -04:00
Liam Gersten
74a2b79c62
gh-88773: Added teleport method to Turtle library ( #103974 )
...
Add a `teleport` method to `turtle` module turtle instances that acts a lot like `goto`, _but_ ensures the pen is up while warping to the new position to and can control shape filling behavior as part of the jump.
Based on an educator user feature request.
---------
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
2023-04-30 13:17:36 -07:00
Hugo van Kemenade
78e4e6c3d7
gh-101100: Fix Sphinx warnings in `turtle` module ( #102340 )
...
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
2023-03-13 11:24:52 +02:00
Shin-myoung-serp
4652093e1b
gh-91212: Fixed flickering when the tracer is turned off ( #95129 )
...
Fixed flickering when the tracer is turned off.
2022-09-28 23:40:51 -07:00
Hugo van Kemenade
341689cb85
Fix typo in turtle deprecation warning and use warnings._deprecated ( #91862 )
2022-05-02 10:57:00 -06:00
Hugo van Kemenade
c94664c262
bpo-45837: Properly deprecate turtle.RawTurtle.settiltangle (GH-29618)
2021-11-18 16:02:48 +01:00
Noah Kantrowitz
be42c06bb0
Update URLs in comments and metadata to use HTTPS (GH-27458)
2021-07-30 15:54:46 +02:00
Binbin
17b16e13bb
Fix typos in multiple files (GH-26689)
...
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2021-06-12 22:47:44 -04:00
Tarjei Bærland
0048c60f01
bpo-43935: Fix typo in Turtle.back() docstring (GH-25581)
...
'e ,' to 'e, '.
2021-04-30 18:05:45 -04:00
Serhiy Storchaka
8af929fc76
bpo-43534: Fix the turtle module working with multiple root windows (GH-25591)
2021-04-25 17:49:32 +03:00
Serhiy Storchaka
b5adc8a7e5
bpo-43534: Make dialogs in turtle.textinput() and turtle.numinput() transitient again (GH-24923)
2021-04-25 13:16:49 +03:00
Serhiy Storchaka
fd4cafd470
bpo-41720: Add "return NotImplemented" in turtle.Vec2D.__rmul__(). (GH-22092)
2020-09-07 18:55:22 +03:00
Marek Madejski
6844b56176
bpo-41528: Use math module in turtle (GH-21837)
...
Use angle-related functions from math module instead of reinventing the wheel.
2020-09-01 12:42:41 -04:00
Xtreak
0d70227e41
Fix typos in docs and docstrings (GH-13745)
2019-06-03 01:12:33 +02:00
penguindustin
9646630895
bpo-36766: Typos in docs and code comments (GH-13116)
2019-05-06 14:57:17 -04:00
Srinivas Thatiparthy (శ్రీనివాస్ తాటిపర్తి)
4edeaeac4c
bpo-35250: Correct argument name "num" -> "btn" in turtle docs. (GH-10565)
2018-11-16 15:28:51 +02:00
Serhiy Storchaka
3f2e6f15d6
Revert unneccessary changes made in bpo-30296 and apply other improvements. (GH-2624)
2018-02-26 16:50:11 +02:00
luzpaz
a5293b4ff2
Fix miscellaneous typos ( #4275 )
2017-11-05 15:37:50 +02:00
Jon Dufresne
3972628de3
bpo-30296 Remove unnecessary tuples, lists, sets, and dicts ( #1489 )
...
* Replaced list(<generator expression>) with list comprehension
* Replaced dict(<generator expression>) with dict comprehension
* Replaced set(<list literal>) with set literal
* Replaced builtin func(<list comprehension>) with func(<generator
expression>) when supported (e.g. any(), all(), tuple(), min(), &
max())
2017-05-18 07:35:54 -07:00
Martin Panter
99e843b48e
Correct spelling in documentation and code comment
2016-09-10 10:38:28 +00:00
Serhiy Storchaka
cefa9172a2
Issue #27238 : Got rid of bare excepts in the turtle module. Original patch
...
by Jelle Zijlstra.
2016-06-14 22:52:04 +03:00
Serhiy Storchaka
80a1803193
Issue #6639 : Module-level turtle functions no longer raise TclError after
...
closing the window.
2015-02-22 17:25:33 +02:00
Ned Deily
152dfd1dac
Issue #22168 : Prevent turtle AttributeError with non-default Canvas on OS X.
2014-09-13 23:39:16 -07:00
Raymond Hettinger
854e76effa
Issue #21868 : Prevent turtle crash due to invalid undo buffer size.
2014-07-20 21:30:32 -07:00
Terry Jan Reedy
f5ac57dc05
Issue #21882 : In turtle demos, remove module scope gui and sys calls by
...
either deleting or moving to the module's main function.
2014-06-30 16:09:24 -04:00
Raymond Hettinger
6dec4eae53
Issue #21812 : Trigger immediate transformation in turtle.shapetransform().
2014-06-22 01:21:51 -07:00
Ned Deily
09ae544ea3
Issue #11571 : Ensure that the turtle window becomes the topmost window
...
when launched on OS X. (Original patch by Ronald Oussoren)
2014-04-19 19:11:14 -07:00
Ezio Melotti
9a3777e525
#18705 : merge with 3.3.
2013-08-17 15:53:55 +03:00
Ezio Melotti
30b9d5d3af
#18705 : fix a number of typos. Patch by Févry Thibault.
2013-08-17 15:50:46 +03:00
Terry Jan Reedy
16b5c13668
Merge 3.3, issue #17047 : remove doubled words found in 2.7 to
...
3.4 Lib/*, as reported by Serhiy Storchaka and Matthew Barnett.
2013-03-11 17:59:07 -04:00
Terry Jan Reedy
98472b8396
Merge 3.2, issue #17047 : remove doubled words found in 2.7 to
...
3.4 Lib/*, as reported by Serhiy Storchaka and Matthew Barnett.
2013-03-11 17:58:27 -04:00
Terry Jan Reedy
c30b7b16ea
Issue #17047 : remove doubled words found in 2.7 to 3.4 Lib/*,
...
as reported by Serhiy Storchaka and Matthew Barnett.
2013-03-11 17:57:08 -04:00
Giampaolo Rodola'
2f50aaf2ff
modernize some modules' code by using with statement around open()
2013-02-12 02:04:27 +01:00
Petri Lehtinen
5645850013
Issue #13439 : Merge branch 3.2
2011-12-02 21:25:39 +02:00
Petri Lehtinen
9aa20affb6
Issue #13439 : Fix many errors in turtle docstrings.
2011-12-02 21:24:14 +02:00
Ezio Melotti
e130a52d8a
Remove duplication.
2011-10-19 10:58:56 +03:00
Ezio Melotti
f10644983e
Merge with 3.2.
2011-10-19 11:06:26 +03:00
Sandro Tosi
c42a568cd4
#12677 : merge with 3.2
2011-08-07 17:13:13 +02:00
Sandro Tosi
2a389e4601
#12677 : correct turtle orientation in doc
2011-08-07 17:12:19 +02:00
Benjamin Peterson
274271d1ae
remove unused imports ( closes #12432 )
...
A patch from Vincent Legoll.
2011-06-28 10:25:04 -05:00
Ezio Melotti
3b3499ba69
#11565 : Merge with 3.1.
2011-03-16 11:35:38 +02:00
Ezio Melotti
13925008dc
#11565 : Fix several typos. Patch by Piotr Kasprzyk.
2011-03-16 11:05:33 +02:00
Ezio Melotti
4969f709cc
#11515 : Merge with 3.1.
2011-03-15 05:59:46 +02:00
Ezio Melotti
42da663e6f
#11515 : fix several typos. Patch by Piotr Kasprzyk.
2011-03-15 05:18:48 +02:00
Alexander Belopolsky
5468f4ff10
Merged revisions 86697 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r86697 | alexander.belopolsky | 2010-11-22 14:40:51 -0500 (Mon, 22 Nov 2010) | 1 line
Issue #6878 : Fixed return type of tkinter methods documented to return lists.
........
2010-11-22 19:45:06 +00:00