GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add missing 3.10/11 attributes to traceback module docs by Jackenmen · Pull Request #105043 · python/cpython

Conversation

@Jackenmen

@Jackenmen Jackenmen commented May 28, 2023 •
edited by github-actions Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

It seems that exceptions, end_lineno, and end_offset have been missed when the SyntaxError exception was modified in 3.10 and when the exception groups were added in 3.11.

There are also two new parameters to TracebackException(...) - max_group_depth and max_group_width. I have only added the documentation for the parameters, not the attributes as modifying the latter wouldn't propagate the value to chained/grouped TracebackExceptions but I can add them if you wish.


📚 Documentation preview 📚: https://cpython-previews--105043.org.readthedocs.build/

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
miss-islington and others added 30 commits March 23, 2023 11:27
@miss-islington @AlexWaygood
pythongh-102936: typing: document performance pitfalls of protocols d…
e2924c0
…ecorated with `@runtime_checkable` (pythonGH-102937)

(cherry picked from commit 58d2b30)

Co-authored-by: Alex Waygood <[email protected]>
@miss-islington @sobolevn
pythongh-98239: Document that inspect.getsource() can raise `TypeEr…
202e16e
…ror` (pythonGH-101689)

(cherry picked from commit b613208)

Co-authored-by: Nikita Sobolev <[email protected]>
@miss-islington
[3.11] Minor readability improvement to the factor() recipe (pythonGH…
60b2b58
…-102971) (pythonGH-102972)
@miss-islington @corona10
pythongh-102558: [Enum] fix AttributeError during member repr() (pyth…
8132aef
…onGH-102601)

(cherry picked from commit bd06375)

Co-authored-by: Dong-hee Na <[email protected]>
@miss-islington @rhettinger
pythonGH-100989: Revert Improve the accuracy of collections.deque doc…
a4a039c
…strings (pythonGH-102979)

(cherry picked from commit 7f01a11)

Co-authored-by: Raymond Hettinger <[email protected]>
@miss-islington @rhettinger
pythonGH-100989: remove annotation from docstring (pythonGH-102991)
fd43fb6
(cherry picked from commit d494091)

Co-authored-by: Raymond Hettinger <[email protected]>
@miss-islington @benfogle
[3.11] pythongh-96931: Fix incorrect results in ssl.SSLSocket.shared_…
e075631
…ciphers (pythonGH-96932) (python#102918)

pythongh-96931: Fix incorrect results in ssl.SSLSocket.shared_ciphers (pythonGH-96932)
(cherry picked from commit af9c34f)

Co-authored-by: Benjamin Fogle <[email protected]>
@miss-islington @maxbachmann @arhadthedev
[3.11] pythongh-102027: Fix macro name (pythonGH-102124) (python#102916)
6716139
pythongh-102027: Fix macro name (pythonGH-102124)

This fixes the ssse3 / sse2 detection when sse4 is available.

(cherry picked from commit ea93bde)

Co-authored-by: Max Bachmann <[email protected]>
Co-authored-by: Oleg Iarygin <[email protected]>
@miss-islington @aminalaee @AlexWaygood
pythongh-102873: logging.LogRecord docs: improve description of msg…
c834a4c
… parameter (pythonGH-102875)

(cherry picked from commit f2e5a6e)

Co-authored-by: Amin Alaee <[email protected]>
Co-authored-by: Alex Waygood <[email protected]>
@miss-islington @gaogaotiantian
pythongh-102980: Add tests for pdf's display, alias and where commands (
a08b65f
pythonGH-102981)

(cherry picked from commit ded9a7f)

Co-authored-by: gaogaotiantian <[email protected]>
@hugovk
[3.11] pythongh-101100: Document PyObject_ClearWeakRefs, gzip's name,…
85c686a
… and asyncio.iscoroutine (python#103001)
@miss-islington @peterjpxie
[3.11] pythongh-103025: fix a ctypes doc typo (pythonGH-103026) (pyth…
aae91fa
…on#103029)

* pythongh-103025: fix two ctypes doc issues  (pythonGH-103026)
(cherry picked from commit 0708437)

Co-authored-by: Peter Jiping Xie <[email protected]>
@miss-islington @gaogaotiantian
Update pdb docs for arguments (pythonGH-102965)
e1094c6
(cherry picked from commit 027223d)

Co-authored-by: gaogaotiantian <[email protected]>
@maxbachmann
[3.11] pythongh-102281: Fix potential nullptr dereference + use of un…
b28f919
…initia… (python#103040)

[3.11] pythongh-102281: Fix potential nullptr dereference + use of uninitialized memory (pythongh-102282)
(cherry picked from commit afa6092)
@miss-islington @davidben
[3.11] pythonGH-95494: Fix transport EOF handling in OpenSSL 3.0 (pyt…
13df5d3
…honGH-95495) (python#103006)

pythonGH-25309 enabled SSL_OP_IGNORE_UNEXPECTED_EOF by default, with a comment
that it restores OpenSSL 1.1.1 behavior, but this wasn't quite right.
That option causes OpenSSL to treat transport EOF as the same as
close_notify (i.e. SSL_ERROR_ZERO_RETURN), whereas Python actually has
distinct SSLEOFError and SSLZeroReturnError exceptions. (The latter is
usually mapped to a zero return from read.) In OpenSSL 1.1.1, the ssl
module would raise them for transport EOF and close_notify,
respectively. In OpenSSL 3.0, both act like close_notify.

Fix this by, instead, just detecting SSL_R_UNEXPECTED_EOF_WHILE_READING
and mapping that to the other exception type.

There doesn't seem to have been any unit test of this error, so fill in
the missing one. This had to be done with the BIO path because it's
actually slightly tricky to simulate a transport EOF with Python's fd
based APIs. (If you instruct the server to close the socket, it gets
confused, probably because the server's SSL object is still referencing
the now dead fd?)
(cherry picked from commit 420bbb7)

Co-authored-by: David Benjamin <[email protected]>
@miss-islington @ethanfurman
pythongh-102558: [Enum] better handling of non-Enum EnumType classes (p…
5ba5ce4
…ythonGH-103060)

(cherry picked from commit f4ed2c6)

Co-authored-by: Ethan Furman <[email protected]>
@miss-islington Chenxi Mao
[3.11] pythonGH-102711: Fix warnings found by clang (pythonGH-102712) (…
abd6e97
…python#103075)

There are some warnings if build python via clang:

Parser/pegen.c:812:31: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
_PyPegen_clear_memo_statistics()
                              ^
                               void

Parser/pegen.c:820:29: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
_PyPegen_get_memo_statistics()
                            ^
                             void

Fix it to make clang happy.

(cherry picked from commit 7703def)

Signed-off-by: Chenxi Mao <[email protected]>
Co-authored-by: Chenxi Mao <[email protected]>
@miss-islington @sobolevn
@AlexWaygood @Eclips4
pythongh-103054: typing: Improve Callable type substitution tests (p…
766038d
…ythonGH-103055)

(cherry picked from commit 60bdc16)

Co-authored-by: Nikita Sobolev <[email protected]>
Co-authored-by: Alex Waygood <[email protected]>
Co-authored-by: Eclips4 <[email protected]>
@miss-islington @mcepl
[3.11] pythongh-102582: Fix invalid JSON in Doc/howto/logging-cookboo…
d189e2d
…k.rst (pythonGH-102635) (pythonGH-103106)

(cherry picked from commit d835b3f)

Co-authored-by: Matěj Cepl <[email protected]>
@zooba
pythongh-103097: Add workaround for Windows ARM64 compiler bug (pytho…
cbe14c8
…nGH-103098)

See https://developercommunity.visualstudio.com/t/Regression-in-MSVC-1433-1434-ARM64-co/10224361 for details of the issue. It only applies to version 14.34.
@miss-islington @bwagner
@blurb-it @terryjreedy @merwok
[3.11] pythongh-103112: Add http.client.HTTPResponse.read docstring a…
ae42c1d
…nd fix pydoc output (pythonGH-103113) (python#103119)

(cherry picked from commit d052a38)

Co-authored-by: Bernhard Wagner <[email protected]>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Terry Jan Reedy <[email protected]>
Co-authored-by: Éric <[email protected]>
@miss-islington @hauntsaninja
pythongh-103099: Link mypy docs from typing.rst (pythonGH-103100)
1b40618
(cherry picked from commit fda95aa)

Co-authored-by: Shantanu <[email protected]>
@miss-islington @gaogaotiantian
Minor docs improvements fix for codeop (pythonGH-103123)
41e3ea1
(cherry picked from commit c1e71ce)

Co-authored-by: gaogaotiantian <[email protected]>
@miss-islington @encukou
Quote literal tokens in standard format specifier grammar (pythonGH-1…
4664a7c
…02902)

Reported by Damian Dureck: https://mail.python.org/archives/list/[email protected]/thread/UZTWBJIXC3MBKTHXVTIBPGDPKBNWZ5LN/
(cherry picked from commit f6405a4)

Co-authored-by: Petr Viktorin <[email protected]>
@miss-islington @CharlieZhao95 @CAM-Gerlach
pythongh-103109: Document ignore_warnings() test support helper (pyth…
0854bdf
…onGH-103110)

(cherry picked from commit 32937d6)

Co-authored-by: Charlie Zhao <[email protected]>
Co-authored-by: C.A.M. Gerlach <[email protected]>
@miss-islington @nouranali
pythongh-102994: Profile docs has typo in example (pythonGH-103074)
8236222
(cherry picked from commit 55decb7)

Co-authored-by: Nouran Ali <[email protected]>
@miss-islington @ethanfurman
pythongh-98298, pythongh-74730: [Enum] update docs (pythonGH-103163)
cf72cc2
fix FlagBoundary statements
add warning about reloading modules and enum identity
(cherry picked from commit 5ffc1e5)

Co-authored-by: Ethan Furman <[email protected]>
@miss-islington @ethanfurman
pythongh-102549: [Enum] fail enum creation when data type raises in _…
5342f5e
…_init__ (pythonGH-103149)

(cherry picked from commit 2a4d8c0)

Co-authored-by: Ethan Furman <[email protected]>
@ned-deily
[3.11] pythongh-103207: Add instructions to the macOS installer welco…
6abd048
…me display on how to workaround the macOS 13 Ventura “The installer encountered an error” failure. pythonGH-103252)
@pablogsal
Python 3.11.3
f3909b8
@Jackenmen
Jackenmen requested review from corona10 and hugovk as code owners May 28, 2023 18:55
@Jackenmen

Jackenmen commented May 28, 2023

Copy link
Copy Markdown
Contributor Author

Welp, changing the base was a mistake... I am so sorry, will recreate the PR :(

hugovk reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Jackenmen Jackenmen closed this May 28, 2023
@Jackenmen Jackenmen mentioned this pull request May 28, 2023
GH-89455: Add missing attributes (added in 3.11) to traceback module docs #105044
Merged
@hugovk
hugovk removed request for a team, 1st1, JelleZijlstra, abalkin, asvetlov, barneygale, berkerpeksag, brettcannon, cjw296, encukou, ericsnowcurrently, ericvsmith, gpshead, hugovk, iritkatriel, jaraco, methane, ncoghlan, pganssle, rhettinger, tiran, vsajip and warsaw May 28, 2023 21:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

awaiting review

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

20 participants

@Jackenmen @bedevere-bot @miss-islington @hugovk @maxbachmann @zooba @ned-deily @pablogsal @ethanfurman @ambv @sobolevn @rffontenelle @kumaraditya303 @pfmoore @iritkatriel @hauntsaninja @methane @AlexWaygood @erlend-aasland @AA-Turner
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.