Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

bpo-45837: Properly deprecate turtle.RawTurtle.settiltangle#29618

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
ambv merged 1 commit intopython:mainfromhugovk:turtle-deprecations
Nov 18, 2021

Conversation

hugovk
Copy link
Member

@hugovkhugovk commentedNov 18, 2021
edited by bedevere-bot
Loading

turtle'ssettiltangle was deprecated in Python 3.1, according todocs:

Deprecated since version 3.1.

And thereason:

Turtle.tiltangle() has been enhanced in functionality: it now can be used to get or set the tiltangle.Turtle.settiltangle() has been deprecated.

However, indocstrings,tiltangle was accidentally commented as deprecated:

Deprecated since Python 3.1

Neithertiltangle norsettiltangle raiseDeprecationWarnings.

So let's:

  • Correcttiltangle's docstring to say it's not really deprecated
  • Updatesettiltangle's docstring to say it's deprecated
  • Add aDeprecationWarning tosettiltangle
  • Internally callself.tiltangle instead ofself.settiltangle

BPO references:

https://bugs.python.org/issue45837

@ambvambv merged commitc94664c intopython:mainNov 18, 2021
@ambv
Copy link
Contributor

@hugovk would be great if you created a 3.10 and 3.9 PR that only clarifies in its docstring thattiltangle is not in fact deprecated.

@hugovk
Copy link
MemberAuthor

hugovk commentedNov 18, 2021
edited
Loading

Sure, please see#29629 and#29630. Do they need news entries?

@ambv
Copy link
Contributor

No, they don't. Thanks, Hugo! All merged.

hugovk reacted with rocket emoji

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

4 participants
@hugovk@ambv@the-knights-who-say-ni@bedevere-bot

[8]ページ先頭

©2009-2025 Movatter.jp