gh-90953: Emit deprecation warnings for `ast` features deprecated in Python 3.8 by AlexWaygood · Pull Request #104199 · python/cpython · GitHub

github.com

Tin mới

AlexWaygood:ast-deprecation-warnings

GitHub CopilotWrite better code with AI

GitHub Copilot appDirect agents from issue to merge

ActionsAutomate any workflow

CodespacesInstant dev environments

IssuesPlan and track work

Code ReviewManage code changes

Code QualityEnforce quality at merge

GitHub Advanced SecurityFind and fix vulnerabilities

Code securitySecure your code as you build

Secret protectionStop leaks before they start

View all use cases

Financial services

View all industries

Software Development

GitHub SponsorsFund open source developers

Copilot for BusinessEnterprise-grade AI features

Premium SupportEnterprise-grade 24/7 support

Pull requests 2.6k

Security and quality 0

ast.Constant.n deprecated without warning #90953

bpo-46797: Emit deprecation warnings for deprecated ast features

Merge branch 'main' into ast-deprecation-warnings

Merge branch 'main' into ast-deprecation-warnings

Merge branch 'main' into ast-deprecation-warnings

Merge branch 'main' into ast-deprecation-warnings

Merge branch 'main' into ast-deprecation-warnings

fix patchcheck Co-authored-by: Hugo van Kemenade <[email protected]>

Remove DeprecationWarnings for Index and ExtSlice

Also emit DeprecationWarning during isinstance() checks

awaiting core review

Merge branch 'main' into ast-deprecation-warnings

View reviewed changes

Apply suggestions from code review

Use `warnings._deprecated

Merge branch 'ast-deprecation-warnings' of

https://github.com/AlexWay…

Move whatsnew entry to correct location

gh-90953: Emit deprecation warnings for deprecated ast features #31432

Merge branch 'main' into ast-deprecation-warnings

Revert spurious whitespace change

Revert warning for dims attribute (only deprecated in 3.9)

Also remove deprecation for ast.slice, deprecated in 3.9

Better unittest style

View reviewed changes

Lib/test/test_ast.py

Learn more about hiding disruptive comments

The reason will be displayed to describe this comment to others. Learn more.

https://github.com/isidentical/teyit

By the way, https://github.com/isidentical/teyit / https://pypi.org/project/teyit/ is a nice tool that can upgrade some of these automatically.

View reviewed changes

Add comment explaining subtle code