Skip to content

Add deprecated-attribute message #8855

@jacobtylerwalls

Description

@jacobtylerwalls

Current problem

Similar to deprecated-method, we could have deprecated-attribute to warn for uses like this:

>>> sqlite3.version_info
<stdin>:1: DeprecationWarning: version_info is deprecated and will be removed in Python 3.14

Desired solution

deprecated-attribute message and then add attributes that were missed from python what's new documents, such as in 3.12:

  • sqlite3.version
  • sqlite3.version_info
  • generator.throw
  • agen.throw
  • sys.last_type
  • sys.last_value
  • sys.last_traceback
  • calendar.January
  • calendar.February

Additional context

The generator changes might be difficult to make, but the sys ones would be easy and high value because they were deprecated only in docs, not with code warnings.

Metadata

Metadata

Assignees

Labels

Enhancement ✨Improvement to a componentGood first issueFriendly and approachable by new contributorsNeeds PRThis issue is accepted, sufficiently specified and now needs an implementation

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions