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 […]
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 […]
I haven't done a weekly round-up of Python links because no one seemed to really care when I was doing those. However I thought I'd give it one more try and see if there was any interest this time around. This past week, I finished reading my first web2py cookbook. I'm told there's another book […]