3 Comments
May 23, 2023·edited May 23, 2023

> Now that this baby is a swiss-army callable

Lol

I have always wondered how to do dependency injection when interfacing with external APIs so that I can use fake data for testing and then use the real endpoints by default when running live. Using default callables but then calling with fakes in testing seems like a great way to do that so thank you.

I have been programming in Python for 5+ years and async is still really confusing to me, not to mention greenlets/Gevent, trio, an Twisted. I know that under the hood it is somehow just syntactic sugar over a generator. Could you do a post on this?

Expand full comment