Downloading files from the internet is something that almost every programmer will have to do at some point. Python provides several ways to do just that in its standard library. Probably the most popular way to download a file is over HTTP using the urllib or urllib2 module. Python also comes with ftplib for FTP […]
A couple years ago I started a series of articles on XML parsing. I covered lxml's etree and Python's included minidom XML parsing library. For whatever reason I didn't notice lxml's objectify sub-package, but I saw it recently and decided I should check it out. To my mind, the objectify module seems to be even […]
I was recently contacted about whether or not there were any wxPython applications out here that could present a SQLite database. As I understood it, they wanted to be able to introspect the database and view the tables, probably using the wx.grid.Grid widget. I find the Grid widget to be very powerful and also rather […]
It may have been a better idea to have called this this article "How to Convert Floats to Words", but since I'm talking about currency, I thought using Decimal was more accurate. Anyway, a couple years ago, I wrote about how to convert numbers to Python. The main reason I'm revisiting this topic is because […]
It's the first Friday of June and I've read a bunch of new articles this week. From the Vern's rant about getting Python jobs to a review of the web2py cookbook, there's lots of fun things going on in Python land. Here are just a few other articles I thought were interesting: Batchelder talks about […]
Last week, I was reading Brett Cannon's blog where he talks about function signatures and decorating the main function. I didn't follow everything he talked about, but I thought the concept was really interesting. The following code is an example based on a recipe that Mr. Cannon mentioned. I think it illustrates what he's talking […]