February 19, 2014 by
Mike My readers have been asking me to write a book for a few years now and I've finally decided to bite the bullet and give it a go. For my first book, I decided to write something that's for beginners and intermediate programmers. There will be four parts to the book with the first part […]
February 11, 2014 by
Mike Python's logging module has lots of options. In this article, we will looks at the logging module's ability to create Rotating Logs. Python supports two types of rotating logs: Rotate logs based on size (RotatingFileHandler) Rotate the logs based on some time interval (TimedRotatingFileHandler) Let's spend some time learning how each of these two types […]
This topic is actually more complicated then it first appears. In this article, we'll spend a little time looking at this problem and some of the solutions.
Configuration files are used by both users and programmers. They are usually used for storing your applications settings or even your operating system's settings. Python's core library includes a module called ConfigParser that you can use for creating and interacting with configuration files. We'll spend a few minutes learning how it works in this article.
I wrote an article on this topic several years ago, but I think it is time for me to revisit it. Why? Well, lately I've been doing a lot of work on a program for sending emails and I've been looking at my old article and thinking I missed a few things when I first […]
If you have followed this blog for a while, you may remember that we've covered several XML parsing libraries that are included with Python. In this article, we'll be continuing that series by taking a quick look at the ElementTree library. You will learn how to create an XML file, edit XML and parse the […]