Skip to content

gh-156360: Only strip turtle./screen. from example code in turtle docstrings - #163160

Open
StanFromIreland wants to merge 1 commit into
python:mainfrom
StanFromIreland:turle-strip
Open

StanFromIreland wants to merge 1 commit into
python:mainfrom
StanFromIreland:turle-strip

Conversation

@StanFromIreland

@StanFromIreland StanFromIreland commented Dec 4, 2026 •

Copy link
Copy Markdown
Member

We currently broadly strip turtle. and screen., this mangles text when such patterns appear in prose. For example:

>>> import turtle
>>> print(turtle.resetscreen.__doc__)
Reset all turtles on the screen to their initial state.

Aliases: reset | resetscreen

As a function, this method is only available under the name
reset The function reset is derived from the Turtle method
reset().

Notice that "resetscreen." has been truncated to "reset".

@bedevere-app bedevere-app Bot added the type-feature A feature request or enhancement label Dec 4, 2026
@StanFromIreland StanFromIreland added type-bug An unexpected behavior, bug, or error and removed type-feature A feature request or enhancement labels Dec 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting core review type-bug An unexpected behavior, bug, or error

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant