Exploring Duck Typing in Python & Dynamics of Monkey Patching | Real Python Podcast #196

preview_player
Показать описание
What are the advantages of determining the type of an object by how it behaves? What coding circumstances are not a good fit for duck typing? Christopher Trudeau is back on the show this week, bringing another batch of PyCoder's Weekly articles and projects.

Christopher covers a recent Real Python tutorial by Leodanis Pozo Ramos titled Duck Typing in Python: Writing Flexible and Decoupled Code. The tutorial explains the concepts of duck typing within object-oriented programming and its use within Python's built-in tools.

We discuss a recent article on monkey patching in Python. This practice of dynamically modifying a class or module's behavior at runtime allows for testing, debugging, and experimentation.

We also share several other articles and projects from the Python community, including a news roundup, why names are not the same as objects in Python, using IPython Jupyter magic commands, a discussion about becoming a senior developer, a data exploration challenge, a Python evaluation game, and a terminal UI for regex testing.

This week's episode is brought to you by Sentry.

Topics:

- 00:00:00 -- Introduction
- 00:02:38 -- Listener feedback
- 00:04:02 -- DjangoCon US Call for Proposals
- 00:04:38 -- White House Recommends Use of Python
- 00:05:41 -- JupyterLab 4.1 and Notebook 7.1 Released
- 00:06:05 -- What's in a Name?
- 00:11:52 -- Duck Typing in Python: Writing Flexible and Decoupled Code
- 00:15:07 -- Sponsor: Sentry
- 00:16:11 -- Using IPython Jupyter Magic Commands
- 00:22:31 -- A Guide to Monkey Patching
- 00:25:27 -- Falsehoods Junior Developers Believe About Becoming Senior
- 00:33:01 -- Video Course Spotlight
- 00:34:11 -- Falsehoods continued
- 00:43:43 -- Where in the data?
- 00:46:55 -- the eval game
- 00:48:03 -- rexi: Terminal UI for Regex Testing
- 00:49:43 -- Thanks and goodbye

Рекомендации по теме
Комментарии
Автор

Why would anyone watch this when there’s no code shown?

coding
join shbcf.ru