Movatterモバイル変換


[0]ホーム

URL:


homepage

Issue27219

This issue trackerhas been migrated toGitHub, and is currentlyread-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title:turtle.fillcolor doesn't accept a tuple of floats
Type:enhancementStage:patch review
Components:Library (Lib)Versions:Python 3.6
process
Status:openResolution:
Dependencies:21916Superseder:
Assigned To:Nosy List: JelleZijlstra, serhiy.storchaka
Priority:normalKeywords:patch

Created on2016-06-04 16:29 byJelleZijlstra, last changed2022-04-11 14:58 byadmin.

Files
File nameUploadedDescriptionEdit
issue27219.patchJelleZijlstra,2016-06-05 00:21patch adding support for float color tuplesreview
issue27219-cr.patchJelleZijlstra,2016-06-05 16:18review
Messages (3)
msg267263 -(view)Author: Jelle Zijlstra (JelleZijlstra)*(Python committer)Date: 2016-06-04 16:29
But `turtle.pencolor()` returns a tuple of floats, so calling `turtle.fillcolor(turtle.pencolor())`. This issue shows up in the doctest at library/turtle.rst line 936. I can submit a patch with tests once the tests inissue21916 are in.
msg267394 -(view)Author: Serhiy Storchaka (serhiy.storchaka)*(Python committer)Date: 2016-06-05 07:08
_color_triple_to_hexstring() is implementation detail. It would be better to test it indirectly using public method (like fillcolor()). Added other comments on Rietveld.
msg267423 -(view)Author: Jelle Zijlstra (JelleZijlstra)*(Python committer)Date: 2016-06-05 16:18
New patch
History
DateUserActionArgs
2022-04-11 14:58:32adminsetgithub: 71406
2022-01-23 05:20:43JelleZijlstrasetassignee:JelleZijlstra ->
2016-06-05 16:18:41JelleZijlstrasetfiles: +issue27219-cr.patch

messages: +msg267423
2016-06-05 07:08:56serhiy.storchakasetnosy: +serhiy.storchaka

messages: +msg267394
stage: patch review
2016-06-05 00:21:52JelleZijlstrasetfiles: +issue27219.patch
keywords: +patch
2016-06-04 17:37:06serhiy.storchakasetdependencies: +Create unit tests for turtle textonly
type: enhancement
2016-06-04 16:29:00JelleZijlstracreate
Supported byThe Python Software Foundation,
Powered byRoundup
Copyright © 1990-2022,Python Software Foundation
Legal Statements

[8]ページ先頭

©2009-2026 Movatter.jp