> > Overall, I would want to replace the try/except/try notion with a switch > on os type and helper functions for groups of systems that have common > behavior. That's perhaps a bias on my part not to use exceptions for > things that could avoid them, and partly because this seems to be > getting to be a long list. > > The problem with replacing it with a switch statement (if / elif in Python) is that the predicates are likely to create exceptions.
In any case, I would welcome a pull request for this, particularly if it includes a unit test. -tk