Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

gh-126399 minor changes in RawTurtle.clone() method #126401

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

Open
wants to merge 41 commits into
base: main
Choose a base branch
Loading
from
Open
Show file tree
Hide file tree
Changes from 4 commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
8a905b4
Update turtle.py
Chaebin-Kim24 Nov 1, 2024
5999b31
Merge branch 'python:main' into main
Chaebin-Kim24 Nov 4, 2024
50179d2
Merge branch 'main' into main
Chaebin-Kim24 Nov 4, 2024
46a5d87
📜🤖 Added by blurb_it.
blurb-it[bot] Nov 4, 2024
cb60c53
Update Misc/NEWS.d/next/Library/2024-11-04-15-08-02.gh-issue-126399.-…
Chaebin-Kim24 Nov 5, 2024
442921f
Merge branch 'main' into main
Chaebin-Kim24 Nov 5, 2024
f714bfe
Merge branch 'main' into main
Chaebin-Kim24 Nov 5, 2024
98ce097
Merge branch 'main' into main
Chaebin-Kim24 Nov 6, 2024
061563a
Merge branch 'python:main' into main
Chaebin-Kim24 Nov 6, 2024
5e089e3
Update turtle.py
Chaebin-Kim24 Nov 6, 2024
a081edf
Update Lib/turtle.py
terryjreedy Nov 7, 2024
f26a80c
Update Lib/turtle.py
terryjreedy Nov 7, 2024
36c7407
Merge branch 'main' into main
Chaebin-Kim24 Nov 13, 2024
c84e6a0
Update turtle.rst
Chaebin-Kim24 Nov 13, 2024
6bfbbe4
Update turtle.rst
Chaebin-Kim24 Nov 13, 2024
bb0b1ff
Update test_turtle.py
Chaebin-Kim24 Nov 13, 2024
6fa89d7
Merge branch 'python:main' into main
Chaebin-Kim24 Nov 18, 2024
1c62794
Update test_turtle.py
Chaebin-Kim24 Nov 18, 2024
f71a9ba
Update test_turtle.py
Chaebin-Kim24 Nov 19, 2024
c1d33bb
Merge branch 'python:main' into main
Chaebin-Kim24 Nov 19, 2024
bca9fdf
Update test_turtle.py
Chaebin-Kim24 Nov 19, 2024
532a8c6
Update test_turtle.py
Chaebin-Kim24 Nov 19, 2024
647a1cc
Merge branch 'python:main' into main
Chaebin-Kim24 Nov 19, 2024
ef71dd6
Update test_turtle.py
Chaebin-Kim24 Nov 19, 2024
fddab96
Update test_turtle.py
Chaebin-Kim24 Nov 19, 2024
a3fe5b8
Merge branch 'main' into main
Chaebin-Kim24 Nov 19, 2024
954e0c4
Update test_turtle.py
Chaebin-Kim24 Nov 19, 2024
c330f82
Update test_turtle.py
Chaebin-Kim24 Nov 19, 2024
9d1e032
Merge branch 'python:main' into main
Chaebin-Kim24 Nov 19, 2024
b987dea
Merge branch 'main' into main
Chaebin-Kim24 Nov 19, 2024
6834f94
Merge branch 'main' into main
Chaebin-Kim24 Nov 19, 2024
aeb0b16
Merge branch 'main' into main
Chaebin-Kim24 Nov 19, 2024
ee034de
Merge branch 'python:main' into main
Chaebin-Kim24 Nov 19, 2024
eb8cb81
Merge branch 'main' into main
Chaebin-Kim24 Nov 20, 2024
bad3fa2
Update test_turtle.py
Chaebin-Kim24 Nov 20, 2024
05f7059
Merge branch 'main' into main
Chaebin-Kim24 Nov 21, 2024
9925e5c
Merge branch 'main' into main
Chaebin-Kim24 Nov 21, 2024
19b73a6
Merge branch 'python:main' into main
Chaebin-Kim24 Nov 21, 2024
9a63098
Merge branch 'python:main' into main
Chaebin-Kim24 Nov 22, 2024
2b62c59
Update Lib/test/test_turtle.py
Chaebin-Kim24 Nov 23, 2024
a78ce2c
Update Misc/NEWS.d/next/Library/2024-11-04-15-08-02.gh-issue-126399.-…
Chaebin-Kim24 Nov 23, 2024
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
3 changes: 2 additions & 1 deletion 3 Lib/turtle.py
Original file line number Diff line number Diff line change
Expand Up @@ -2812,13 +2812,13 @@ def clone(self):
joe = mick.clone()
"""
screen = self.screen
self._newLine(self._drawing)

turtle = self.turtle
self.screen = None
self.turtle = None # too make self deepcopy-able

q = deepcopy(self)
terryjreedy marked this conversation as resolved.
Show resolved Hide resolved
self._newLine(self._drawing)
terryjreedy marked this conversation as resolved.
Show resolved Hide resolved

self.screen = screen
self.turtle = turtle
Expand All @@ -2836,6 +2836,7 @@ def clone(self):
q.turtle._item = [screen._createpoly() for item in
screen._shapes[self.turtle.shapeIndex]._data]
q.currentLineItem = screen._createline()
q.items.append(q.currentLineItem)
q._update()
return q

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix the turtle module
Chaebin-Kim24 marked this conversation as resolved.
Show resolved Hide resolved
Loading
Morty Proxy This is a proxified and sanitized view of the page, visit original site.