Add Python interview questions 151-155 - #17
Merged
Merged
Conversation
(CPython internals deep dive)" -m "Extend fixreadme.md with five advanced questions and matching ToC entries: - 151: Free-threaded Python (PEP 703) and subinterpreters (PEP 684/734) - 152: Bytecode execution, dis, ceval loop, frames, PEP 659 specializing interpreter - 153: pymalloc arenas/pools/blocks, tracemalloc, diagnosing leaks and fragmentation - 154: Generators as coroutines (send/throw/close, yield from) and async/await - 155: __init_subclass__, __set_name__, and the descriptor protocol vs metaclasses
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Extends the "150+ Python Interview Questions" reference (
readme.md) with fivenew advanced questions (151–155) that "go deeper" into CPython internals and
modern concurrency — continuing the threads already running through the document.
What changed
New questions
dis, ceval loop, frames, PEP 659 specializing interpreterpymallocarenas/pools/blocks,tracemalloc, leaks & fragmentationsend/throw/close,yield from) →async/await__init_subclass__,__set_name__, descriptorsStyle & consistency
one illustrative code block per answer, and a closing takeaway.
# 150+ Python Interview Questionstitle already covers the higher count — no change needed.Notes
long-running-worker memory diagnosis) to keep it grounded in the codebase.
How to verify
readme.md, confirm ToC entries 151–155 link to their sections.readme.mdgrows from 5777 → 5939 lines; no other files changed.