Skip to content

Doc: Correct FAQ explanations - #161663

Open
methane wants to merge 1 commit into
python:mainfrom
methane:fix-doc-faq2
Open

methane wants to merge 1 commit into
python:mainfrom
methane:fix-doc-faq2

Conversation

@methane

@methane methane commented Nov 9, 2026

Copy link
Copy Markdown
Member
  • Clarify that atexit runs cleanup functions when Python exits, rather than when objects are deallocated.
  • Replace the obsolete extension-loading breakpoint with GDB pending breakpoints, allowing users to stop directly in the function they want to debug.
  • Describe reversed() as returning a reverse iterator, rather than copying the sequence.
  • Explain that super() returns a proxy that searches the MRO, rather than the next class itself.
  • Correct self.count to be an instance attribute, rather than a new instance.
  • Remove the mutable Weather caching example: changing the hash of an object already used in a cache key violates hashability requirements and can return stale results.

Validation: built the HTML documentation, ran git diff --check, and verified that a pending GDB breakpoint on math_sin stops when the dynamically loaded function is called.

@methane methane added docs Documentation in the Doc dir skip issue skip news labels Nov 9, 2026
@github-project-automation github-project-automation Bot moved this to Todo in Docs PRs Nov 9, 2026
@methane methane changed the title Doc: Correct FAQ explanations and extension debugging instructions Doc: Correct FAQ explanations Nov 9, 2026
@read-the-docs-community

Copy link
Copy Markdown

Documentation build overview

📚 cpython-previews | 🛠️ Build #35749169 | 📁 Comparing 55747ce against main (4f64990)

  🔍 Preview build  

3 files changed
± faq/design.html
± faq/extending.html
± faq/programming.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

1 participant