Package commons :: Module structs
[hide private]
[frames] | no frames]

Module structs

source code

Data structures: Heaps, lists, queues, and Python hacks.

Classes [hide private]
  bidict
Bi-directional dictionary; assumes 1:1 mappings.
  idict
Case-insensitive string-keyed dictionary.
  pprint_mixin
Mixin for pretty-printing free_structs.
  free_struct
General-purpose Python object with a bunch of boilerplate utility functionality built-in.
  LazyObject
An object whose attributes do nothing.
  Enum
Create an enumerated type, then add var/value pairs to it.
  ListMixin
Defines all list operations from a small subset of methods.
  TestList
  Heap
A list that maintains the heap invariant.
  common_tests
Functions [hide private]
 
dicts2structs(x)
Given a tree of lists/dicts, perform a deep traversal to transform all the dicts to structs.
source code
 
structs2dicts(x)
Given a tree of lists/structs, perform a deep traversal to transform all the structs to dicts.
source code
Variables [hide private]
  __package__ = 'commons'