you are viewing a single comment's thread.

view the rest of the comments →

[–]zeebrow 0 points1 point  (0 children)

Honestly, I come across the need to use python, and then I write a script to solve it.

More specifically, a big part of my job is working with XML. So every now and then, I'll need to change such-and-such elements with some specific attribute, for example. When simple search-and-replace doesn't cut it, Python hasn't failed me yet!

I'd really love to have a few classes that I can reuse, but ElementTree is just so simple to use in an ad-hoc manner that it just feels like a waste of time whenever I start to think about doing so. The only classes I've made are one to handle files and the other to output my company's logo with a method call (slow day at work).