Python Power Tools: Hands-On from Decorators to Context Managers
Speaker
Neeraj Pandey
Neeraj is the co-founder of Vivid Climate, a climate management and DMRV platform. Neeraj is a polyglot. Over the years, he has worked on a variety of full-stack software and data-science applications, as well as computational arts, and likes the challenge of creating new tools and applications, and is an active international speaker with talks and tutorials presented at multiple conferences.
Abstract
Let’s make your functions smarter with decorators, simplify operations using lambdas, save memory with generators, and handle resources like a pro with context managers. We’ll mix clear explanations with hands-on practice - so you can write code that’s cleaner, faster, and feels Pythonic.
Description
This hands-on tutorial is for Python developers who want to learn the language’s advanced features in a clear and engaging way. In this session, we’ll explore decorators, lambda functions, generators, and context managers, and learn how these tools can help you write cleaner, more efficient, and Pythonic code.
With both theoretical explanations and hands-on collaborative activities, attendees will understand how they can apply these concepts to solve problems and optimise their own Python code. We’ll start by understanding decorators to enhance your functions, then move on to lambda functions for concise and flexible operations, explore generators for efficient memory usage and lazy evaluation, and finally dive into context managers for robust resource management.