From 6dec4eae536b3e55bf18b5804eb01f8110d4bafb Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Sun, 22 Jun 2014 01:21:51 -0700 Subject: [PATCH] Issue #21812: Trigger immediate transformation in turtle.shapetransform(). --- Lib/turtle.py | 2 +- Misc/ACKS | 1 + Misc/NEWS | 3 +++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Lib/turtle.py b/Lib/turtle.py index 599f645fd0c..3d1d3b060d3 100644 --- a/Lib/turtle.py +++ b/Lib/turtle.py @@ -2945,7 +2945,7 @@ class RawTurtle(TPen, TNavigator): self._stretchfactor = a11, a22 self._shearfactor = a12/a22 self._tilt = alfa - self._update() + self.pen(resizemode="user") def _polytrafo(self, poly): diff --git a/Misc/ACKS b/Misc/ACKS index c42b02b9ef6..9787d8e74b8 100644 --- a/Misc/ACKS +++ b/Misc/ACKS @@ -235,6 +235,7 @@ Ingrid Cheung Albert Chin-A-Young Adal Chiriliuc Matt Chisholm +Lita Cho Anders Chrigström Tom Christiansen Vadim Chugunov diff --git a/Misc/NEWS b/Misc/NEWS index a94d0735155..848eb863393 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -29,6 +29,9 @@ Library - Issue #21491: socketserver: Fix a race condition in child processes reaping. +- Issue #21812: turtle.shapetransform did not tranform the turtle on the + first call. (Issue identified and fixed by Lita Cho.) + - Issue #21635: The difflib SequenceMatcher.get_matching_blocks() method cache didn't match the actual result. The former was a list of tuples and the latter was a list of named tuples.