There are a lot of methods in the TPen class that are defined but not used because all the child classes overwrite almost all the functions and TPen itself isn't used directly a whole lot. This patch removes the unused code so it's less confusing to read turtle.py.
Ah, I think I was mistaken about some things when I made the first patch but it looks like TPen have a few methods that don't work as you'd expect. Since _colorstr isn't implemented on TPen fillcolor and pencolor pen don't work as intended when you call them directly from TPen. Jesstess suggested raising a NotImplementedError on these functions. Would that be a good change to make?
Hi ingrid, Thanks for your work on this issue. I'm triaging the open "turtle" issues, and I'm going to go ahead and close this one. If you would like to open a new, more specific issue, I would welcome that. Thanks.
History
Date
User
Action
Args
2022-04-11 14:58:05
admin
set
github: 66140
2018-06-16 15:03:14
willingc
set
status: open -> closednosy: + willingcmessages: + resolution: remindstage: resolved