[lug] Python: Unable to catch subprocess error

Jed S. Baer blug at jbaer.cotse.net
Sat Mar 10 22:15:27 MST 2018


On Sat, 10 Mar 2018 21:05:37 -0700
Lee Woodworth wrote:

>  > I appreciate the followup, and I hope it was at least as enjoyable as
>  > watching Brazil. As much as I like that movie, it doesn't represent
>  > the experience I'm looking for when trying to write code.
> 
> If the OP is interested in other approaches to exception/error
> handling, go could be worth a look.

My interest in Python comes mostly from another set of scripts I decided
to write a while back, for which BeautifulSoup seemed the best way to
attack the problem. That, and it seems to be quite highly regarded. With
lots of libraries out there, and what looks like a pretty easy (as such
things go) GTK interface, I figured it'd be great for quick/dirty little
utility stuff like I write these days.

I'm a bit hamstrung when it comes to looking at modern languages, because
I went from being a Fortan guy to an Oracle guy, without a stop along the
way to pick up OOP.

And it isn't so much that I dislike Python's exception handling, it's
that the docs don't explain it properly. Or maybe they explain what the
writer thinks is happening, and my observed failure is a bug. But I find
a lot of what I read in re. Python to be rather opaque, and sometimes
inconsistent, and certainly that's in part due to not being an experienced
OOP guy.


More information about the LUG mailing list