Skip to content

Add the generators tutorial's scripts and README - #916

Merged
martin-martin merged 2 commits into
masterfrom
maintenance/introduction-to-python-generators-20261023
Oct 23, 2026
Merged

martin-martin merged 2 commits into
masterfrom
maintenance/introduction-to-python-generators-20261023

Conversation

@martin-martin

Copy link
Copy Markdown
Contributor

The generators/ folder only shipped techcrunch.csv. This adds the tutorial's code, one script per section, plus a README:

  • csv_reader.py, infinite_sequence.py, palindromes.py, advanced_gen.py (send, throw, close), data_pipeline.py
  • All run on Python 3.14.9; data_pipeline.py prints the article's $4,380,015,000, csv_reader.py counts 1461 rows
  • ruff format --check, ruff check, and dircheck.py are clean
  • Requested by Martin Breuss in maintenance triage; the tutorial's new introduction-to-python-generators-code opt-in points at this folder

Trello: https://trello.com/c/qJnttHlQ

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@martin-martin
martin-martin merged commit 221f636 into master Oct 23, 2026
1 check passed
@martin-martin
martin-martin deleted the maintenance/introduction-to-python-generators-20261023 branch October 23, 2026 11:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant