[New-bugs-announce] [issue41528] Use math module in turtle

Marek Madejski report at bugs.python.org
Wed Aug 12 03:36:26 EDT 2020


New submission from Marek Madejski <marekmadejski at gmail.com>:

"Turtle" module is closely related to geometry, which is also covered by "math" (and "cmath") module. Nevertheless, in many places in "turtle" the wheel is being reinvented. Currently, only π and basing trig functions are used.
Performance may be improved by such refactor (for example, by using "math.hypot" instead of manual calculation of vector norm).

----------
components: Library (Lib)
messages: 375215
nosy: TrangOul
priority: normal
pull_requests: 20965
severity: normal
status: open
title: Use math module in turtle
type: performance
versions: Python 3.10, Python 3.6, Python 3.7, Python 3.8, Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41528>
_______________________________________


More information about the New-bugs-announce mailing list