PyMOTW: sys, Part 5: Tracing Your Program As It Runs

There are two ways to inject code to watch your 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. Read more at pymotw.com: sys

PyMOTW: sys Part 2: Runtime Environment

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. Read more at pymotw.com: sys

Duplication of effort or evolution?

Dear LazyWeb, I need help compiling a list of Python modules that exist outside of the standard library and either duplicate or serve as replacements for modules that are in the standard library. For example, simplejson became the standard library module json but is also maintained separately for backwards compatibility and to include the optional C extension that is not part of the standard library version (please correct me if I’m wrong).

Updating Python 3.x docs for GHOP

GHOP planning is under way. The first step, as before, is to come up with the list of tasks that would let junior high and high school students contribute to Python. We had good success last time with documentation-related tasks, such as writing examples, proofreading, or updating the standard library docs. This year Titus had the bright idea to run a survey to see what the community felt needed work.

PyMOTW: resource – System resource management

The functions in resource help you probe the current resources consumed by a process, and place limits on them to control how much load your program places on a system. Read more at pymotw.com: resource

Book Review: The Success of Open Source

For the past few weeks I’ve been wrapped up reading Steven Weber’s The Success of Open Source. Published in 2004, it is a look at what the open source movement is and how it works, from the perspective of a political scientist. This is no trite look at why people would choose to give away the fruits of their labor. His analysis is serious and well considered. He stresses several times that his goal is to ask questions rather than answer them, but he does offer some observations about the open source movement as a larger social movement and how it might spread to other parts of the culture.

PyMOTW: fractions – Rational Numbers

The fractions module implements a class for working with rational numbers. The Fraction class supports numerical operations for rational numbers based on the API defined by Rational in numbers. Read more at pymotw.com: fractions