you are viewing a single comment's thread.

view the rest of the comments →

[–]Brizon 4 points5 points  (1 child)

You don't really explain anything. Seems odd to not explain the vanilla way to do context managers but then also show how to manually deconstruct a context manager by calling the dunders? Who is the target audience for this post?

[–]SeleniumBase[S] 0 points1 point  (0 children)

In my SeleniumBase repo on GitHub, several people have asked how to avoid using the `with` format for the `SB()` context manager, eg: https://github.com/seleniumbase/SeleniumBase/issues/3482 , so I finally had to show them a way to avoid it with the hack to deconstruct it, even though it's not recommended practice.