Python 3.15: features that didn't make the headlines(blog.changs.co.uk) |
Python 3.15: features that didn't make the headlines(blog.changs.co.uk) |
lazy from typing import Iterator
def stream_events(...) -> Iterator[str]:
while True:
yield blocking_get_event(...)
events = stream_events(...)
for event in events:
consume(event)
Do we finally have "lazy imports" in Python? I think I missed this change. Is this also something from Python 3.15 or earlier?All of our services we were our are significantly faster and more reliable. We used Rust, it wasn’t hard to do
Try and write a signal processing thing with filters, windowing, overlap, etc. - there's no easy way to do it at all with the libraries that exist.