AI-powered
podcast player
Listen to all your favourite podcasts with AI-powered features
Duct typing in Python allows objects to respond to a set of calls, enabling flexibility and simplicity in code development. Classes like duck, swan, and albatross with similar methods demonstrate its practical use.
Monkey patching in Python involves making runtime changes to code, enabling bug fixes in third-party libraries and creating mocks for testing. It offers a powerful but potentially complex tool for dynamic coding.
IPython Jupyter magic commands allow navigating the file system, loading data, and enhancing code history. Custom magic commands can be created for advanced functionality, like automating workflows within notebooks.
Becoming a senior developer involves dispelling myths like having all answers, working with the latest tech, and avoiding routine tasks. The senior role may also entail more managerial duties, meetings, and documentation responsibilities.
Explore the data puzzle game 'Damaged Goods' for honing data wrangling skills and exploring tools like Pandas and Jupyter Notebooks. Consider data puzzle games as an engaging way to practice beyond tutorials.
Rexy is a text-based UI for regular expression testing developed with Python's textual library. It enables locally testing regex patterns on specific content, offering a split interface for inputting regex, interacting with content, and visualizing grouping results.
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.
Course Spotlight: Pointers and Objects in Python
In this video course, you’ll learn about Python’s object model and see why pointers don’t really exist in Python. You’ll also cover ways to simulate pointers in Python without managing memory.
Topics:
News:
Show Links:
Discussion:
Projects:
Additional Links:
Level up your Python skills with our expert-led courses:
Listen to all your favourite podcasts with AI-powered features
Listen to the best highlights from the podcasts you love and dive into the full episode
Hear something you like? Tap your headphones to save it with AI-generated key takeaways
Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more
Listen to all your favourite podcasts with AI-powered features
Listen to the best highlights from the podcasts you love and dive into the full episode