summaryrefslogtreecommitdiffstats
path: root/Lib/turtle.py
Commit message (Collapse)AuthorAgeFilesLines
* gh-95371: Add support for other image formats(e.g. PNG) to the turtle… ↵Shin-myoung-serp2025-01-021-16/+14
| | | | | | | | (#95378) Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
* gh-123614: Add save function to turtle.py (#123617)Yngve Mardal Moe2024-09-131-1/+35
|
* Fix `print` usage in `turtle` doctests (#122940)sobolevn2024-08-131-3/+3
|
* no-issue: Capitalise 'PhotoImage' (gh-108958)DongWoo Son2023-09-251-1/+1
|
* gh-107805: Fix signatures of module-level generated functions in `turtle` ↵Nikita Sobolev2023-09-011-19/+24
| | | | | (#107807) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-105407: Remove unused imports in the stdlib (#105411)Victor Stinner2023-06-061-1/+0
|
* gh-104876: Remove deprecated turtle.RawTurtle.settiltangle (#104877)Hugo van Kemenade2023-05-261-31/+1
| | | Co-authored-by: Victor Stinner <vstinner@python.org>
* gh-65772: Clean-up turtle module (#104218)Terry Jan Reedy2023-05-061-40/+21
| | | | | | | | | | | | | | | | | | | | | | | * 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.
* gh-88773: Added teleport method to Turtle library (#103974)Liam Gersten2023-04-301-1/+65
| | | | | | | | | | | 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>
* gh-101100: Fix Sphinx warnings in `turtle` module (#102340)Hugo van Kemenade2023-03-131-1/+1
| | | | Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
* gh-91212: Fixed flickering when the tracer is turned off (#95129)Shin-myoung-serp2022-09-291-1/+1
| | | Fixed flickering when the tracer is turned off.
* Fix typo in turtle deprecation warning and use warnings._deprecated (#91862)Hugo van Kemenade2022-05-021-4/+4
|
* bpo-45837: Properly deprecate turtle.RawTurtle.settiltangle (GH-29618)Hugo van Kemenade2021-11-181-10/+27
|
* Update URLs in comments and metadata to use HTTPS (GH-27458)Noah Kantrowitz2021-07-301-1/+1
|
* Fix typos in multiple files (GH-26689)Binbin2021-06-131-1/+1
| | | Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-43935: Fix typo in Turtle.back() docstring (GH-25581)Tarjei Bærland2021-04-301-1/+1
| | | 'e ,' to 'e, '.
* bpo-43534: Fix the turtle module working with multiple root windows (GH-25591)Serhiy Storchaka2021-04-251-8/+7
|
* bpo-43534: Make dialogs in turtle.textinput() and turtle.numinput() ↵Serhiy Storchaka2021-04-251-2/+3
| | | | transitient again (GH-24923)
* bpo-41720: Add "return NotImplemented" in turtle.Vec2D.__rmul__(). (GH-22092)Serhiy Storchaka2020-09-071-0/+1
|
* bpo-41528: Use math module in turtle (GH-21837)Marek Madejski2020-09-011-9/+9
| | | | Use angle-related functions from math module instead of reinventing the wheel.
* Fix typos in docs and docstrings (GH-13745)Xtreak2019-06-021-1/+1
|
* bpo-36766: Typos in docs and code comments (GH-13116)penguindustin2019-05-061-1/+1
|
* bpo-35250: Correct argument name "num" -> "btn" in turtle docs. (GH-10565)Srinivas Thatiparthy (శ్రీనివాస్ తాటిపర్తి)2018-11-161-4/+4
|
* Revert unneccessary changes made in bpo-30296 and apply other improvements. ↵Serhiy Storchaka2018-02-261-1/+1
| | | | (GH-2624)
* Fix miscellaneous typos (#4275)luzpaz2017-11-051-1/+1
|
* bpo-30296 Remove unnecessary tuples, lists, sets, and dicts (#1489)Jon Dufresne2017-05-181-4/+4
| | | | | | | | * 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())
* Correct spelling in documentation and code commentMartin Panter2016-09-101-1/+1
|
* Issue #27238: Got rid of bare excepts in the turtle module. Original patchSerhiy Storchaka2016-06-141-9/+9
| | | | by Jelle Zijlstra.
* Issue #6639: Module-level turtle functions no longer raise TclError afterSerhiy Storchaka2015-02-221-34/+33
| | | | closing the window.
* Issue #22168: Prevent turtle AttributeError with non-default Canvas on OS X.Ned Deily2014-09-141-2/+3
|
* Issue #21868: Prevent turtle crash due to invalid undo buffer size.Raymond Hettinger2014-07-211-1/+1
|
* Issue #21882: In turtle demos, remove module scope gui and sys calls byTerry Jan Reedy2014-06-301-1/+1
| | | | either deleting or moving to the module's main function.
* Issue #21812: Trigger immediate transformation in turtle.shapetransform().Raymond Hettinger2014-06-221-1/+1
|
* Issue #11571: Ensure that the turtle window becomes the topmost windowNed Deily2014-04-201-0/+7
| | | | when launched on OS X. (Original patch by Ronald Oussoren)
* #18705: merge with 3.3.Ezio Melotti2013-08-171-4/+4
|\
| * #18705: fix a number of typos. Patch by Févry Thibault.Ezio Melotti2013-08-171-4/+4
| |
* | Merge 3.3, issue #17047: remove doubled words found in 2.7 toTerry Jan Reedy2013-03-111-2/+2
|\ \ | |/ | | | | 3.4 Lib/*, as reported by Serhiy Storchaka and Matthew Barnett.
| * Merge 3.2, issue #17047: remove doubled words found in 2.7 toTerry Jan Reedy2013-03-111-2/+2
| |\ | | | | | | | | | 3.4 Lib/*, as reported by Serhiy Storchaka and Matthew Barnett.
| | * Issue #17047: remove doubled words found in 2.7 to 3.4 Lib/*,Terry Jan Reedy2013-03-111-2/+2
| | | | | | | | | | | | as reported by Serhiy Storchaka and Matthew Barnett.
* | | modernize some modules' code by using with statement around open()Giampaolo Rodola'2013-02-121-11/+11
|/ /
* | Issue #13439: Merge branch 3.2Petri Lehtinen2011-12-021-69/+63
|\ \ | |/
| * Issue #13439: Fix many errors in turtle docstrings.Petri Lehtinen2011-12-021-69/+63
| |
* | Merge with 3.2.Ezio Melotti2011-10-191-1/+1
|\ \ | |/
| * Remove duplication.Ezio Melotti2011-10-191-1/+1
| |
* | #12677: merge with 3.2Sandro Tosi2011-08-071-2/+2
|\ \ | |/
| * #12677: correct turtle orientation in docSandro Tosi2011-08-071-2/+2
| |
* | remove unused imports (closes #12432)Benjamin Peterson2011-06-281-1/+0
|/ | | | A patch from Vincent Legoll.
* #11565: Merge with 3.1.Ezio Melotti2011-03-161-6/+6
|\
| * #11565: Fix several typos. Patch by Piotr Kasprzyk.Ezio Melotti2011-03-161-6/+6
| |
* | #11515: Merge with 3.1.Ezio Melotti2011-03-151-2/+2
|\ \ | |/