0/12 уроков (0%)
– из 12
Protocols and Practices Enforcing in Python Through Bytecode and Inspection
YouTube·EuroPython
Explore advanced techniques for enforcing protocols and best practices in Python through bytecode manipulation and code inspection in this 42-minute EuroPython Conference talk. Dive into the powerful introspection features of Python, including access to bytecode, to implement robust checks on third-party and future code. Learn how to verify and enforce constraints by examining the actual bytecode to be executed, going beyond traditional runtime checks, metaclasses, and monkeypatching. Discover practical examples of using these techniques to ensure proper resource management and prevent common anti-patterns, providing a more reliable alternative to static code analysis tools for custom checks and expectations in your Python projects.