Package groupthink :: Module stringtree
[hide private]
[frames] | no frames]

Module stringtree

source code

a module containing SimpleStringTree, which represents an editable string as a dependency tree of edits. This module exists to support UnorderedString.

This module was developed in part as a Google Summer of Code 2009 project.

Classes [hide private]
  Change
Each Change represents a change to the StringTree.
  Insertion
Represents the action of inserting a particular bit of text
  Deletion
Represents the deletion of only those characters present in the parent in this range.
  Removal
Not currently used.
  Record
Each Record is used to store one Change inside the StringTree.
  EagerHideList
EagerHideList provides a list with hidden elements.
  SimpleStringTree
a class implementing an editable string, represented internally as a dependency tree of Changes.
Functions [hide private]
 
flatten(L)
Disused.
source code
 
my_rand()
Returns: a large random number that will fit into a dbus.Int64
source code
 
translator(c, pack)
A translator for Changes
source code
Variables [hide private]
  inf = inf
Function Details [hide private]

flatten(L)

source code 

Disused. Recursively flattens nested lists.

my_rand()

source code 
Returns:
a large random number that will fit into a dbus.Int64