https://twitter.com/doughellmann
Biography
Blog
Recent Posts | All Posts
PyMOTW: sys, Part 5: Tracing Your Program As It Runs
November 08 2009
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… read morePyMOTW: sys, Part 4: Exception Handling
November 01 2009
sys includes features for trapping and working with exceptions. read morePyMOTW: sys, Part 3: Memory Management and Limits
October 25 2009
Python's sys module includes several functions for understanding and controlling memory usage. read morePyMOTW: sys, Part 2: Runtime Environment
October 18 2009
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 morePyMOTW: sys, Part 1: Interpreter Settings
October 12 2009
sys contains attributes and functions for accessing compile-time or runtime configuration settings for the interpreter. read morePyMOTW: resource - System resource management
September 20 2009
The functions in Python's resource module 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 morePyMOTW: fractions - Rational Numbers
September 05 2009
Python's Fraction class implements numerical operations for rational numbers. read morePyMOTW: decimal - Fixed and floating point math
August 30 2009
The decimal module implements fixed and floating point arithmetic using the model familiar to most people, rather than the floating point representation implemented by most computer hardware. read morePyMOTW: dis - Python Bytecode Disassembly
August 23 2009
The dis module converts code objects to a human-readable representation of the bytecodes for analysis. read morePyMOTW: pydoc - Online help for Python modules
August 09 2009
The pydoc module imports a Python module and uses the contents to generate help text at runtime. read morePyMOTW: In-Memory Data Structures
August 02 2009
Python includes several standard programming data structures as built-in types (list, tuple, dictionary, and set). Most applications won't need any other structures, but when they do the standard library delivers. read moreJuly 27 2009
Python's standard library includes a variety of tools for working with text data. read moreJuly 19 2009
The urllib2 module provides an updated API for using internet resources identified by URLs. It is designed to be extended by individual applications to support new protocols or add variations to existing protocols (such as handling HTTP basic authentication). read morePyMOTW: abc - abstract base classes
July 05 2009
Define and use abstract base classes for API checks in your code using the abc module. read moreJune 28 2009
pyclbr can scan Python source to find classes and stand-alone functions. The information about class, method, and function names and line numbers is gathered using tokenize without importing the code. read moreRecent Posts | All Posts