#pep-810

[ follow ]
Python
fromRealpython
5 days ago

Lazy Imports Land in Python and Other Python News for December 2025 - Real Python

Python 3.15 advances with alpha releases, UTF-8 default, new profiling and C APIs; PEP 810 accepted for explicit lazy imports; Windows installer manager updated.
Python
fromTheregister
1 month ago

Python will offer lazy imports, adding code after startup

PEP 810 introduces opt-in explicit lazy imports to defer module loading until needed, improving Python startup times while preserving backward compatibility.
fromGrahamdumpleton
2 months ago

Lazy imports using wrapt - Graham Dumpleton

The actual reason wrapt was created was to be able to perform monkey patching of Python code. One key aspect of being able to monkey patch Python code is to be able to have the ability to wrap target objects in Python with a wrapper which acts as a transparent object proxy for the original object. By extending the object proxy type, one can then intercept access to the target object to perform specific actions.
Software development
[ Load more ]