Skip to content

Add chapters 36-41: Testing, AST, Memory, C Interop, Imports, Concurrency - #9

Merged
leandro-mana merged 1 commit into
mainfrom
feature/chapters-36-41
Feb 20, 2026
Merged

Add chapters 36-41: Testing, AST, Memory, C Interop, Imports, Concurrency#9
leandro-mana merged 1 commit into
mainfrom
feature/chapters-36-41

Conversation

@leandro-mana

Copy link
Copy Markdown
Owner

Summary

  • Chapter 36: Advanced Testing — pytest fixtures, parametrize, markers, monkeypatch, unittest.mock, test patterns
  • Chapter 37: Abstract Syntax Trees — ast module, NodeVisitor, NodeTransformer, compile, eval, exec
  • Chapter 38: Memory Management — reference counting, gc module, tracemalloc, weakref.finalize, optimization
  • Chapter 39: C Interoperability — ctypes, structures, callbacks, array module, memoryview, buffer protocol
  • Chapter 40: Import System Internals — importlib, import hooks, sys.meta_path, pkgutil, importlib.metadata
  • Chapter 41: Concurrency Patterns — threading sync primitives, concurrent.futures, Queue, producer-consumer

18 notebooks (3 per chapter), 6 test files with 100 new tests (467 total), all quality checks passing.

Note: This PR is stacked on feature/chapters-31-35 (PR #8). After PR #8 merges, this branch will be rebased onto main.

Test plan

  • All 467 tests pass (pytest)
  • Ruff lint clean (ruff check .)
  • Ruff format clean (ruff format --check .)
  • MyPy clean (mypy .)
  • CI pipeline passes

🤖 Generated with Claude Code

…ency

- Chapter 36: Advanced Testing (pytest fixtures, parametrize, markers, unittest.mock)
- Chapter 37: Abstract Syntax Trees (ast, NodeVisitor, NodeTransformer, compile, eval, exec)
- Chapter 38: Memory Management (reference counting, gc, tracemalloc, finalize)
- Chapter 39: C Interoperability (ctypes, structures, callbacks, array, memoryview)
- Chapter 40: Import System Internals (importlib, import hooks, sys.meta_path, pkgutil)
- Chapter 41: Concurrency Patterns (threading sync, concurrent.futures, Queue, producer-consumer)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@leandro-mana
leandro-mana force-pushed the feature/chapters-36-41 branch from 7e4c031 to a2508c5 Compare February 20, 2026 19:57
@leandro-mana
leandro-mana changed the base branch from feature/chapters-31-35 to main February 20, 2026 19:57
@leandro-mana
leandro-mana merged commit 07a84df into main Feb 20, 2026
3 checks passed
@leandro-mana leandro-mana added chapter New chapter content notebooks Jupyter notebook changes tests Test additions or changes labels Feb 20, 2026
@leandro-mana
leandro-mana deleted the feature/chapters-36-41 branch February 20, 2026 20:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chapter New chapter content notebooks Jupyter notebook changes tests Test additions or changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant