Sync itertools-in-python3 with the updated tutorial - #853
Open
realpython-bot wants to merge 1 commit into
Open
realpython-bot wants to merge 1 commit into
realpython-bot wants to merge 1 commit into
Conversation
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.
Companion sync for the maintenance update of Python itertools By Example.
What changed
itertools-in-python3/README.md: the "Note" about which interpreter to invoke pointed atpython3.6/python36. The tutorial'sdependenciesfield moved frompython==3.6(end of life since 2021-12-23) topython==3.14in this maintenance pass, so the README now namespython3.14/python314.sp500.pyandswimmers.pyneeded no changes: they already match the article's updated full listings (thep <= zdp/p > zdpfilterfalse()predicates that the article's inline snippets were fixed to use, double-quoted strings, andcsv.DictReaderrows treated as plain dictionaries). There is norequirements.txtin this folder — both scripts are standard library only — so there were no pins to move.How it was verified
uv run --python 3.14 --no-project python sp500.py→Max gain: 11.58% on 2008-10-13/Max loss: -20.47% on 1987-10-19/Longest growth streak: 14 days (1971-03-26 to 1971-04-15), byte-for-byte the output the README and the article print.uv run --python 3.14 --no-project python swimmers.py→ the eight relay-team lines exactly as shown in the README and the article.uvx ruff@0.14.1 format --check itertools-in-python3→2 files already formatted.uvx ruff@0.14.1 check itertools-in-python3→All checks passed!.Links