├── .gitignore ├── README.md ├── resources └── readme_images │ ├── shorts-poster-sm.png │ └── shorts-poster.jpg └── shorts ├── 01-merging-dictionaries ├── v1_non_pythonic_merge.py ├── v2_pythonic_py3_merge.py └── v3_pythonic_py310_merge.py ├── 02-parse-validate-with-pydantic ├── code │ ├── data.json │ ├── receive_data.py │ └── requirements.txt └── readme.md ├── 03-counting-occurrences-in-two-lines └── votes.py ├── 04-loop-to-comprehension ├── MOCK_DATA.json └── loop-to-comprehension.py ├── 05-beyond-the-list-comprehension ├── MOCK_DATA.json └── beyond-the-list-comprehension.py ├── 06-timedeltas-and-division └── duration_app.py ├── 07-inside-python-311 ├── gh-90908-task-groups.py ├── pep-654-exception-groups-and-except-star.py ├── pep-673-self-type.py ├── pep-675-arbitrary-literal-string-type.py ├── pep-678-exceptions-can-be-enriched-with-notes.py └── speedy.py ├── 08-walrus-operator └── walrus-app.py └── 09-gc-settings ├── requirements.txt └── run_gc_configured.py /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikeckennedy/python-shorts/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikeckennedy/python-shorts/HEAD/README.md -------------------------------------------------------------------------------- /resources/readme_images/shorts-poster-sm.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikeckennedy/python-shorts/HEAD/resources/readme_images/shorts-poster-sm.png -------------------------------------------------------------------------------- /resources/readme_images/shorts-poster.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikeckennedy/python-shorts/HEAD/resources/readme_images/shorts-poster.jpg -------------------------------------------------------------------------------- /shorts/01-merging-dictionaries/v1_non_pythonic_merge.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikeckennedy/python-shorts/HEAD/shorts/01-merging-dictionaries/v1_non_pythonic_merge.py -------------------------------------------------------------------------------- /shorts/01-merging-dictionaries/v2_pythonic_py3_merge.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikeckennedy/python-shorts/HEAD/shorts/01-merging-dictionaries/v2_pythonic_py3_merge.py -------------------------------------------------------------------------------- /shorts/01-merging-dictionaries/v3_pythonic_py310_merge.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikeckennedy/python-shorts/HEAD/shorts/01-merging-dictionaries/v3_pythonic_py310_merge.py -------------------------------------------------------------------------------- /shorts/02-parse-validate-with-pydantic/code/data.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikeckennedy/python-shorts/HEAD/shorts/02-parse-validate-with-pydantic/code/data.json -------------------------------------------------------------------------------- /shorts/02-parse-validate-with-pydantic/code/receive_data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikeckennedy/python-shorts/HEAD/shorts/02-parse-validate-with-pydantic/code/receive_data.py -------------------------------------------------------------------------------- /shorts/02-parse-validate-with-pydantic/code/requirements.txt: -------------------------------------------------------------------------------- 1 | pydantic 2 | -------------------------------------------------------------------------------- /shorts/02-parse-validate-with-pydantic/readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikeckennedy/python-shorts/HEAD/shorts/02-parse-validate-with-pydantic/readme.md -------------------------------------------------------------------------------- /shorts/03-counting-occurrences-in-two-lines/votes.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikeckennedy/python-shorts/HEAD/shorts/03-counting-occurrences-in-two-lines/votes.py -------------------------------------------------------------------------------- /shorts/04-loop-to-comprehension/MOCK_DATA.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikeckennedy/python-shorts/HEAD/shorts/04-loop-to-comprehension/MOCK_DATA.json -------------------------------------------------------------------------------- /shorts/04-loop-to-comprehension/loop-to-comprehension.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikeckennedy/python-shorts/HEAD/shorts/04-loop-to-comprehension/loop-to-comprehension.py -------------------------------------------------------------------------------- /shorts/05-beyond-the-list-comprehension/MOCK_DATA.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikeckennedy/python-shorts/HEAD/shorts/05-beyond-the-list-comprehension/MOCK_DATA.json -------------------------------------------------------------------------------- /shorts/05-beyond-the-list-comprehension/beyond-the-list-comprehension.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikeckennedy/python-shorts/HEAD/shorts/05-beyond-the-list-comprehension/beyond-the-list-comprehension.py -------------------------------------------------------------------------------- /shorts/06-timedeltas-and-division/duration_app.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikeckennedy/python-shorts/HEAD/shorts/06-timedeltas-and-division/duration_app.py -------------------------------------------------------------------------------- /shorts/07-inside-python-311/gh-90908-task-groups.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikeckennedy/python-shorts/HEAD/shorts/07-inside-python-311/gh-90908-task-groups.py -------------------------------------------------------------------------------- /shorts/07-inside-python-311/pep-654-exception-groups-and-except-star.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikeckennedy/python-shorts/HEAD/shorts/07-inside-python-311/pep-654-exception-groups-and-except-star.py -------------------------------------------------------------------------------- /shorts/07-inside-python-311/pep-673-self-type.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikeckennedy/python-shorts/HEAD/shorts/07-inside-python-311/pep-673-self-type.py -------------------------------------------------------------------------------- /shorts/07-inside-python-311/pep-675-arbitrary-literal-string-type.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikeckennedy/python-shorts/HEAD/shorts/07-inside-python-311/pep-675-arbitrary-literal-string-type.py -------------------------------------------------------------------------------- /shorts/07-inside-python-311/pep-678-exceptions-can-be-enriched-with-notes.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikeckennedy/python-shorts/HEAD/shorts/07-inside-python-311/pep-678-exceptions-can-be-enriched-with-notes.py -------------------------------------------------------------------------------- /shorts/07-inside-python-311/speedy.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikeckennedy/python-shorts/HEAD/shorts/07-inside-python-311/speedy.py -------------------------------------------------------------------------------- /shorts/08-walrus-operator/walrus-app.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikeckennedy/python-shorts/HEAD/shorts/08-walrus-operator/walrus-app.py -------------------------------------------------------------------------------- /shorts/09-gc-settings/requirements.txt: -------------------------------------------------------------------------------- 1 | psutil 2 | colorama 3 | -------------------------------------------------------------------------------- /shorts/09-gc-settings/run_gc_configured.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikeckennedy/python-shorts/HEAD/shorts/09-gc-settings/run_gc_configured.py --------------------------------------------------------------------------------