Start Testing Your Python with doctest & Pagination in Django | Real Python Podcast #109
Did you know you can add testing to your Python code while simultaneously documenting it? Using doc-strings, you can create examples of how your functions should interact in a Python REPL and test them with the built-in doctest module. This week on the show, Christopher Trudeau is here, bringing another batch of PyCoder's Weekly articles and projects.
👉 Links from the show: https://realpython.com/podcasts/rpp/109/
Christopher shares an article by previous guest Mike Driscoll about testing with doctest. This is a great way to get started with testing your own code, and it offers the added benefit of documenting functionality.
We talk about a recent Real Python article titled "Pagination for a User-Friendly Django App". Spreading your content across multiple pages can significantly improve the user experience of your web application. This article takes you through configuring Django's built-in pagination tool and how to combine it with other web tools.
We discuss a recent article about Python type hints and the author's disappointment. We also include reactions from a couple of online communities.
We cover several other articles and projects from the Python community, including why it's important to close files in Python, how dunder methods are awesome, a bidirectional Python dictionary, prettier git diffs, and a command-line game to learn git.
Topics:
- 00:00:00 -- Introduction
- 00:02:15 -- PyCon US 2022 Follow-up
- 00:07:57 -- Why Is It Important to Close Files in Python?
- 00:15:17 -- Dunder Methods in Python: The Ugliest Awesome Sauce
- 00:24:26 -- Sponsor: Mailtrap
- 00:25:08 -- Python Testing With doctest
- 00:28:20 -- Python Bidirectional Dictionary
- 00:30:27 -- Pagination for a User-Friendly Django App
- 00:36:07 -- Video Course Spotlight
- 00:37:27 -- Python’s “Type Hints” are a bit of a disappointment to me
- 00:52:25 -- dunk: Prettier Git Diffs
- 00:53:43 -- git-gud: Command-Line Game to Learn git
- 00:55:40 -- Thanks and goodbye
👉 Links from the show: https://realpython.com/podcasts/rpp/109/
Видео Start Testing Your Python with doctest & Pagination in Django | Real Python Podcast #109 канала Real Python
👉 Links from the show: https://realpython.com/podcasts/rpp/109/
Christopher shares an article by previous guest Mike Driscoll about testing with doctest. This is a great way to get started with testing your own code, and it offers the added benefit of documenting functionality.
We talk about a recent Real Python article titled "Pagination for a User-Friendly Django App". Spreading your content across multiple pages can significantly improve the user experience of your web application. This article takes you through configuring Django's built-in pagination tool and how to combine it with other web tools.
We discuss a recent article about Python type hints and the author's disappointment. We also include reactions from a couple of online communities.
We cover several other articles and projects from the Python community, including why it's important to close files in Python, how dunder methods are awesome, a bidirectional Python dictionary, prettier git diffs, and a command-line game to learn git.
Topics:
- 00:00:00 -- Introduction
- 00:02:15 -- PyCon US 2022 Follow-up
- 00:07:57 -- Why Is It Important to Close Files in Python?
- 00:15:17 -- Dunder Methods in Python: The Ugliest Awesome Sauce
- 00:24:26 -- Sponsor: Mailtrap
- 00:25:08 -- Python Testing With doctest
- 00:28:20 -- Python Bidirectional Dictionary
- 00:30:27 -- Pagination for a User-Friendly Django App
- 00:36:07 -- Video Course Spotlight
- 00:37:27 -- Python’s “Type Hints” are a bit of a disappointment to me
- 00:52:25 -- dunk: Prettier Git Diffs
- 00:53:43 -- git-gud: Command-Line Game to Learn git
- 00:55:40 -- Thanks and goodbye
👉 Links from the show: https://realpython.com/podcasts/rpp/109/
Видео Start Testing Your Python with doctest & Pagination in Django | Real Python Podcast #109 канала Real Python
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
Discussing Mojo & Improving Python Object-Oriented Programming | Real Python Podcast #157Real Python Community Members: Bob FrederickOrchestrating Large and Small Projects With Apache Airflow | Real Python Podcast #142Speeding Up Your DataFrames With Polars | Real Python Podcast #140Introduction to Integers and Floating Point Numbers: Python BasicsBuilding Python CI With Docker & Applying for a Hacker Initiative Grant | Real Python Podcast #158Creating Python Function docstrings and Running doctestsExploring Python With bpython & Formalizing f-String Grammar | Real Python Podcast #141Evaluating Python Packages & Celebrating 20 Years of PyCon US | Real Python Podcast #151Identifying a Substring Within a Python StringReal Python Community Members: Paul ParadisReal Python Community Members: Alex ElderAutomate Processes and Distribute Python Tools With RPA and RCC | Real Python Podcast #152Ready to Publish Your Python Packages? | Real Python Podcast #83Starting With REST APIs and Django NinjaSupporting Python Open Source Projects and Maintainers | Real Python Podcast #73Data Version Control in Python and Real Python Video Transcripts | Real Python Podcast #25Starting With YAML and PyYAML in PythonImprove Matplotlib With Style Sheets & Python Async for the Web | Real Python Podcast #125Real Python Community Members: Edward Wright