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
Edit What's New for Python 3.11 #95913
Comments
The following functions has been added in 3.11 and must be (maybe) documented as well:
|
CC: @tiran @iritkatriel @asvetlov @ambv as you were involved in some of the changes (and the dev in residence for awareness). |
|
@jaraco should pdb.ScriptTarget pdb.ModuleTarget be documented? I think they were intended to be implementation details. |
Correct. Those are implementation details. |
…Target private (pythonGH-96053) (cherry picked from commit 1a720c6) Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
…ythonGH-95980) (cherry picked from commit c5bc67b) Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
…New (pythonGH-95915) (cherry picked from commit 8ee27e3) Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
…t's New (GH-96097) Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
…#97718) * Move Windows py.exe improvements from Typing section to New Features * Add ref target label and use literal for py.exe * Be clearer/explict about what legacy version arg components reprisent * Apply other minor clarity and textual fixes to py.exe launcher text * Refine phrasing of legacy sentence of py.exe desc Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com> Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
…e text (pythonGH-97718) * Move Windows py.exe improvements from Typing section to New Features * Add ref target label and use literal for py.exe * Be clearer/explict about what legacy version arg components reprisent * Apply other minor clarity and textual fixes to py.exe launcher text * Refine phrasing of legacy sentence of py.exe desc Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com> Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com> (cherry picked from commit 9859581) Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
…GH-97718) * Move Windows py.exe improvements from Typing section to New Features * Add ref target label and use literal for py.exe * Be clearer/explict about what legacy version arg components reprisent * Apply other minor clarity and textual fixes to py.exe launcher text * Refine phrasing of legacy sentence of py.exe desc Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com> Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com> (cherry picked from commit 9859581) Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
…97719) * Add/refine cross references to items in other lang changes section * Unify context manager exception changes into single non-repetitive item * More clearly describe the intent and consequences of the -P option * Apply minor clarifications & copyedits to rest of section * Tweak the formatting of module references Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com> Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
…ction (pythonGH-97719) * Add/refine cross references to items in other lang changes section * Unify context manager exception changes into single non-repetitive item * More clearly describe the intent and consequences of the -P option * Apply minor clarifications & copyedits to rest of section * Tweak the formatting of module references Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com> Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com> (cherry picked from commit a77d9de) Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
…H-97719) * Add/refine cross references to items in other lang changes section * Unify context manager exception changes into single non-repetitive item * More clearly describe the intent and consequences of the -P option * Apply minor clarifications & copyedits to rest of section * Tweak the formatting of module references Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com> Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com> (cherry picked from commit a77d9de) Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
…97720) * Add and refine reST/Sphinx syntax for implementation changes section * Clarify and refine wording in the Implementation Changes section * Elide unnecessary comma Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com> Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
…ction (pythonGH-97720) * Add and refine reST/Sphinx syntax for implementation changes section * Clarify and refine wording in the Implementation Changes section * Elide unnecessary comma Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com> Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com> (cherry picked from commit 4e73181) Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
…H-97720) * Add and refine reST/Sphinx syntax for implementation changes section * Clarify and refine wording in the Implementation Changes section * Elide unnecessary comma Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com> Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com> (cherry picked from commit 4e73181) Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
…e text (python#97718) * Move Windows py.exe improvements from Typing section to New Features * Add ref target label and use literal for py.exe * Be clearer/explict about what legacy version arg components reprisent * Apply other minor clarity and textual fixes to py.exe launcher text * Refine phrasing of legacy sentence of py.exe desc Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com> Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
…ction (python#97719) * Add/refine cross references to items in other lang changes section * Unify context manager exception changes into single non-repetitive item * More clearly describe the intent and consequences of the -P option * Apply minor clarifications & copyedits to rest of section * Tweak the formatting of module references Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com> Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
…ction (python#97720) * Add and refine reST/Sphinx syntax for implementation changes section * Clarify and refine wording in the Implementation Changes section * Elide unnecessary comma Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com> Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Thanks to all involved for your help thus far! Next big batch of changes are (after a lot of catchup after the sprints) all submitted, adding the remaining missing What's New items that @pablogsal detected, as well as a handful of other missing APIs found crawling the modules' relevant documention, and documenting some elsewhere that hadn't been. In addition, the relevant sections were also edited, and a blurb was added for PEP 670, the final missing undocumented PEP. Next up, I'll drop a quick PR separating remaining sections/subsections by at least two spaces and adding ref target labels, get that merged quickly, and then start working through them one by one. Once the PRs above all get merged (hopefully very shortly), I'll do the same for each of the |
CAM-Gerlach commentedAug 12, 2022
•
edited
As discussed with @pablogsal , this is a meta-issue for coordinating an editing pass on the What's New in Python 3.11 document.
The focus with this issue and its accompanying PRs will be on textual and reST/Sphinx fixes and improvements to the existing content, rather than adding any missing NEWS entries, or touching the organization of the document itself. Another issue, #95914 , will cover adding the PEPs not currently listed to the Summary - Release highlights section, as well as a few PEPs that are not documented at all in What's New, but probably should be somewhere (PEP-624, PEP-654 and PEP-670).
It seems best to split this into separate PRs, one for each top-level section. I've listed them here for reference, with PRs linked as they are submitted:
Pre-/co-requisites
!
in C domain ref target syntax #97740Edit Sections
Enum.__str__
change could be improved in What's New #98250Add new APIs
Adapted and updated from @pablogsal 's post
added: ['BrokenBarrierError']
(Already implicitly referred to by Barrier mention, but will be linked directly in editing pass)
GH-95913: Update what's new in 3.11 for asyncio #97806
module: asyncio.proactor_eventsadded: ['BaseProactorEventLoop.sock_recvfrom_into', 'BaseProactorEventLoop.sock_recvfrom', 'BaseProactorEventLoop.sock_sendto']
(Already added; will be improved in editing phase)
added: ['Runner']
GH-95913: Update what's new in 3.11 for asyncio #97806
module: asyncio.selector_eventsadded: ['BaseSelectorEventLoop.sock_recvfrom_into', 'BaseSelectorEventLoop.sock_recvfrom', 'BaseSelectorEventLoop.sock_sendto']
(Already added; will be improved in editing phase)
GH-95913: Update what's new in 3.11 for asyncio #97806
module: asyncio.sslprotoadded: ['SSLProtocolState', 'AppProtocolState', 'add_flowcontrol_defaults', 'SSLProtocol.get_buffer', 'SSLProtocol.buffer_updated']
(Considered implementation details, so @kumaraditya303 says no need to be documented (indeed, I don't see it documented anywhere else but the changelog)
added: ['Task.cancelling', 'Task.uncancel']
GH-95913: Update what's new in 3.11 for asyncio #97806
module: asyncio.windows_eventsadded: ['IocpProactor.recvfrom_into']
(Appears to be undocumented implementation detail of the added socket methods)
added: ['chdir']
bpo-25625: Document contextlib.chdir in the 3.11 what's new #95962
added: ['global_enum_repr', 'global_str', 'show_flag_values', 'global_flag_repr']
(Not documented yet, and
ReprEnum
andglobal_enum
mentioned in What's New aren't either)Document new 3.11 enum APIs (ReprEnum, global_* and/or show_flag_values) #98298
added: ['file_digest']
gh-89313: Add hashlib.file_digest to whatsnew 3.11 #95965
gh-95913: Add traceback module additions to what's new in 3.11 #95980
added: ['FrameInfo']
Already discussed, just not explicitly referenced
gh-95913: Copyedit & xref FrameInfo in Whatsnew inspect section #98304
added: ['SysLogHandler.createSocket']
(Not documented yet; seems like it should be?)
Logging: SysLogHandler.createSocket added in 3.11 but not documented #98307
gh-98307: Add docstring and documentation for SysLogHandler.createSocket (GH-98319) #98319
gh-95913: Add WhatsNew section for new logging APIs #98320
module: pdbadded: ['ScriptTarget', 'ModuleTarget']
(Made private)
gh-95913: make the new internal classes pdb.ModuleTarget/ScriptTarget private #96053
added: ['Template.is_valid', 'Template.get_identifiers']
gh-95913 Add string section to Whatsnew with new Template methods #98311
added: ['SpooledTemporaryFile.detach', 'SpooledTemporaryFile.read1', 'SpooledTemporaryFile.writable', 'SpooledTemporaryFile.readinto1', 'SpooledTemporaryFile.seekable', 'SpooledTemporaryFile.readable', 'SpooledTemporaryFile.readinto']
gh-95913: Add io support for SpooledTemporaryFile in Whatsnew #98312
added: ['TracebackException.print', 'StackSummary.format_frame_summary']
gh-95913: Add traceback module additions to what's new in 3.11 #95980
added: ['Path.suffix', 'Path.stem', 'Path.suffixes', 'ZipFile.mkdir']
gh-95913: Edit zipfile Whatsnew section & add new APIs #98314
Related
The text was updated successfully, but these errors were encountered: