-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
gh-94309: Update "What's New for Python 3.12" #94729
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gh-94309: Update "What's New for Python 3.12" #94729
Conversation
Doc/whatsnew/3.12.rst
Outdated
@@ -187,6 +187,8 @@ although there is currently no date scheduled for their removal. | |||
immediately followed by one of keywords :keyword:`and`, :keyword:`else`, | |||
:keyword:`for`, :keyword:`if`, :keyword:`in`, :keyword:`is` and :keyword:`or`. | |||
In a future release it will be changed to a syntax error. (:gh:`87999`) | |||
* :class:`typing.Hashable` and :class:`typing.Sized` aliases for :class:`collections.abc.Hashable` | |||
and :class:`collections.abc.Sized`. (:gh:`94309`) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's group it with the other typing
deprecation. Please could you move it up, something like this? Thanks!
The following APIs were deprecated in earlier Python versions and will be removed,
although there is currently no date scheduled for their removal.
* :class:`typing.Hashable` and :class:`typing.Sized` aliases for :class:`collections.abc.Hashable`
and :class:`collections.abc.Sized`. (:gh:`94309`)
* :class:`typing.Text` (:gh:`92332`)
* Currently Python accepts numeric literals immediately followed by keywords,
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
Doc/whatsnew/3.12.rst
Outdated
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm sorry. I tried removing the extra blank line but removed one line extra. Could you please add back a newline?
I'm not sure I'm on board with "will be removed". Deprecated and discouraged, sure, but I don't see much reason to ever actually remove them. |
@JelleZijlstra Would you like another heading+intro for these two |
@JelleZijlstra do you plan to remove the aliases deprecate with PEP 585 in the future? If so, I think that also these aliases should be removed in the future for consistency. |
I don't want the PEP 585 deprecations removed either. https://discuss.python.org/t/concern-about-pep-585-removals/15901/3?u=jelle |
Woops yeah I forgot that these have no planned removal date. |
So should I close the PR? ps: btw do you have any tips on possible next steps in contributing to Python? |
Please don't close the PR. Move the text to under this section: We did the same in 3.11 |
@MonadChains since you asked earlier about what to contribute to. Apart from easy issues on the issues page, you can try focus on areas that you're interested in or areas you think the most help. Reviewing PR is also good. However, it may require some expertise in the subject area first. So I recommend working on documentation and eventually learning how things in your favorite area work. |
#94309