See, I was thinking I'd have to write a short function to do it myself, but I hadn't realized it could be quite *that* short. Thanks! That'll do quite nicely, and is definitely something I'm going to throw in my "general utility functions" folder :)
Regards, Jeff -- http://mail.python.org/mailman/listinfo/python-list