Filter
Exclude
Time range
-
Near
17 Oct 2024
Want to know what Bangladeshis are doing in startups and tech? Follow @exitstack and stay informed—from deals happening locally in Bangladesh to the diaspora building amazing products around the world.
1
4
488
14 Oct 2024
At @exitstack, we've published our internal investment memory from @AnchorlessBD for the $1.8m pre-seed round in @agroshift we co-led with @ShorooqPartners. It's time for greater transparency and global standards in the Bangladeshi startup landscape. exitstack.co/posts/inside-an…
1
3
595
4 Jul 2024
Want to know what Bangladeshi founders are doing? Follow @exitstack and stay informed—from deals happening locally in Bangladesh to the diaspora making things happen around the world.
1
8
523
Replying to @inerati
after a certain point of context managers, i try to keep it linear and use exitstack instead. much nicer to deal with and looks more pleasant.
2
34
Replying to @moyix @saleemrash1d
Now that you learned about context managers, you can give ExitStack a try !
3
176
Me: "Rolling my own Python ExitStack should be easy, should just be like 2 lines, loop over a list calling __aenter__/__aexit__, but lets see what std does... wait... wat"
1
4
447
おー!typescriptでusingが使えるようになるのか!ファイルオープンの後のcloseをfinally書いてその中でcloseしなくてもいいんだな! pythonのExitStackとcleanup_resourcesにそっくりだな。やっぱ他の言語で便利っぽいものは、多言語でもどんどん出てくるわな。 totaltypescript.com/typescri…

8
2,464
23 Apr 2023
hello 5,000 followers why not sign up for the EXITstack for free, & learn how he did it exitgroup.substack.com/p/46-…
2
8
6,321
1 Mar 2023
Replying to @RCS
User-defined conversions, implicit & explicit. It is wrong to model explicit type conversion as construction. RAII, lexical scoped resource management coupled with object lifetime. No object can establish contexts more than once. Not as programmable as Python's ExitStack.
1
4
490
14 Nov 2022
`ExitStack()` is a context manager not a function docs.python.org/3/library/co…

1
3
14 Nov 2022
That said, we don't have full context (pun intended) -- it is entirely possible that ExitStack is not the original or has somehow been modified to, for instance, skip exiting contexts for non-SSL server connections and do Something with them... but I think that's overly paranoid.
2
14 Nov 2022
ExitStack() is most likely from contextlib, and it's basically a way to progressively and programmatically "add to the `with` statement as you go." e.g. add open files (or sockets/connections) to close -- this is what `stack.enter_context` is doing
1
2
TIL about ExitStack
2
Replying to @codewithanthony
Nice video on "this is how but don't do this" 😂 For the second case, I have several times forgotten about ExitStack and used nullcontext... thanks for the reminder.
2
The contextlib docs list async context managers without use cases, ExitStack, and TIL about contextlib.redirect_stdout, which I've otherwise written n-times and now want pytest in the dev env at least docs.python.org/3/library/co…

1
2
Replying to @willmcgugan
I need to do a tutorial on ExitStack which is a part of contextlib. It's handy for some edge cases
2
Just learned about Python's ExitStack 🐍 As I'm a big fan of context manager, I wanted this for a long time, but didn't know it was there ! 😆 Now I can protected my __enter__ impls And make auto cleanups on __exit__ 👌
1
1
Today's newsletter with three articles from my site buttondown.email/kracekumar/…. 1. HTTPie and HTTP Syntax - Use `--offline` to understand HTTP protocol internals 2. Three tools to Profile Django App 3. #Python Contextlib ExitStack

2
3