Logo Search packages:      
Sourcecode: mascyma version File versions  Download package

matplotlib::cbook::Bunch Class Reference

List of all members.

Detailed Description

Often we want to just collect a bunch of stuff together, naming each
item of the bunch; a dictionary's OK for that, but a small do- nothing
class is even handier, and prettier to use.  Whenever you want to
group a few variables:

  >>> point = Bunch(datum=2, squared=4, coord=12)
  >>> point.datum

  By: Alex Martelli
  From: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/52308

Definition at line 18 of file cbook.py.

Public Member Functions

def __init__

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index