toad.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
Mastodon server operated by David Troy, a tech pioneer and investigative journalist addressing threats to democracy. Thoughtful participation and discussion welcome.

Administered by:

Server stats:

272
active users

#mount

0 posts0 participants0 posts today

Python context managers are a really nice way to ensure you're cleaning up after yourself.

Here I'm using docs.python.org/3/library/cont to make sure that every mounted directory gets unmounted at the end of the `with` block, even if there are exceptions somewhere along the way.

(Usually a context manager would yield some kind of resource. For these, it doesn't make sense, so they just have empty `yield` statements.)