py3to2 - testdevelopintegrate python 3.0 code natively under robust, software-rich python 2.5 environment- (Found July 8, 2008 )http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/574436 py3to2 - testdevelopintegrate python 3.0 code natively under robust, software-rich python 2.5 environment- (Found July 8, 2008 )http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/574437 Line Oriented State Machine- (Found July 8, 2008 ) State machine for processing text files on a line-by-line basis using regular expressions to determine transition to next state. Developed from sample code from "Text Processing in Python" by David Mertz,pp. 274-280.http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/574430 Iterating Over Dates- (Found July 8, 2008 ) Iterate over a range of dates, begin, end), day by day. By using datetime objects, rather than date object, it is possible to iterate over smaller time-granularities if desired.http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/574441 Recreate MS Access table in SQLite- (Found July 8, 2008 ) A function to create and load a table in SQLite from a Microsoft Jet table, using DAO. Also recreates indexes. Fetches and loads records in blocks with a default size of 1000 rows.http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/572165 Size of Python objects.- (Found July 8, 2008 ) This recipe may be useful to determine the size in bytes of a Python object or a collection of Python objects. Function asizeof returns the combined size of all objects passed as positional arguments using 4 options given as keyword arguments.http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/544288 Container- (Found July 8, 2008 ) Container can be used to contain sets of differents numbers and strings, and applying maths' operations such as intersection, union and other functions.http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/574428 Selective cleanup (deletion) of files (based on category and extension) for use by a SABnzbd+ external post-processing script- (Found July 8, 2008 ) This script can be used to cleanup (delete) files with specific extensions, e.g. .sfv, .nzb, but only for downloads belonging to a particular category. Remarks: -The cleanup is performed only in the provided directory; subdirectories inside it, if any, are not affected. -If the category name of a particular job is not set (i.e. if it is None), SABnzbd+ passes the newsgroup name of the job instead to the script.http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/573440 Size of Python objects (revised).- (Found July 8, 2008 ) This recipe is an enhancement of recipe 544288 to determine the size of Python objects in bytes, The main differences are (1) classes and instances are handled separately, (2) old-style classes are treated as new-style ones, (3) a simple profile of the objects can be printed, and (4) 8 functions plus 1 class are exposed by this module. More information can be found in the documentation and the examples.http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/546530 |