Recently by Doug Hellmann

In addition to its parsing capabilities, ElementTree also supports creating well-formed XML documents from Element objects constructed in your application.
Python's xml.etree.ElementTree library makes it easy to use XML data in your application or library.
Consistent use of indentation is important in a langauge like Python, where white-space is significant. The tabnanny module provides a scanner to report on "ambiguous" use of indentation. The simplest way to use tabnanny is to run it from the command line, passing the names of files to check. If you pass directory names, the directories are scanned recursively to find .py files to check.
cgitb was originally designed for showing errors and debugging information in web applications. It was later updated to include plain-text output as well, but unfortunately wasn't renamed. This has lead to obscurity and the module is not used as often as it should be. Nonetheless, cgitb is a valuable debugging tool in the standard library.
The list of invited speakers for PyCon 2010 has been announced, and I'm looking forward to seeing all of them.
sys includes low-level functions for controlling and debugging thread behavior.
There are two ways to inject code to watch your Python program run: tracing and profiling. They are similar, but intended for different purposes and so have different constraints. The easiest, but least efficient, way to monitor your program is through a trace hook, which can be used for writing a debugger, code coverage monitoring, or many other purposes.
sys includes features for trapping and working with exceptions.
Python's sys module includes several functions for understanding and controlling memory usage.
sys provides low-level APIs for interacting with the system outside of your application, by accepting command line arguments, accessing user input, and passing messages and status values to the user.

News Topics

Recommended for You

Got a Question?