3 ms·
Yes, these are some ways to get that context. But it can be difficult to do correctly for brownfield projects or libraries, especially if you need to support bo
by pphysch 3y ago
Yes, these are some ways to get that context. But it can be difficult to do correctly for brownfield projects or libraries, especially if you need to support both sync and async. Not elegant!
- evil-olive 3y ago> especially if you need to support both sync and async I don't think there's any possible way to do that elegantly. maybe gevent-style monkeypatching makes it look elegant, but there's a whole pile of inelegant stuff happening under the covers to present that illusion. and I would say that almost by definition, if you're monkeypatching the stdlib, you are banished from the realm of elegance.