Table of Contents

Module: formatting src/formatting.py

Functions to print object information.

Functions   
printsizes
printsizesop
  printsizes 
printsizes (
        wrappers,
        sorted=descending,
        threshold=0,
        count=None,
        size=None,
        show=None,
        )

Print all objects in wrappers with size above threshold, sorted as specified.

size is optionally a function that takes a wrapper and returns its size, by default w.size.

show is optionally a function that takes a wrapper and returns a string representation of it, by default str(w.obj)

  printsizesop 
printsizesop (
        wrappers,
        sorted=descending,
        threshold=0,
        count=None,
        )

Print wrappers from operations.byType or operations.bySize. If showobjects is true the objects themselves will be shown instead of their wrappers.


Table of Contents

This document was automatically generated on Mon Apr 3 22:34:29 2006 by HappyDoc version 2.1