

#389 More OOP for Python?
11 snips Jun 24, 2024
Topics in this episode include a new Solara UI Framework for building web apps with Python, Coverage.py optimization by Ned Batchelder, and the use of 'virtual' methods in Python classes. The hosts also share a joke and invite listeners to connect with them on social media.
AI Snips
Chapters
Transcript
Episode notes
Solara for Interactive Web Apps
- Explore Solara, a pure Python UI framework with a React-style approach for building interactive web apps.
- Consider it an alternative to Streamlit or Dash, especially for data science projects.
Coverage.py Internals and Performance
- Coverage.py uses trace functions for line and branch coverage, impacting performance.
- Ned Batchelder explores ways to improve speed, including sys.monitoring for line coverage and alternative branch coverage methods.
Use @override Decorator
- Use PEP 698's
@override
decorator in Python 3.12 for static type checking. - It helps validate method overrides during development, catching potential errors early.