~ubuntu-branches/debian/sid/gtg/sid

« back to all changes in this revision

Viewing changes to GTG/tools/twokeydict.py

  • Committer: Package Import Robot
  • Author(s): Luca Falavigna
  • Date: 2013-05-05 14:23:30 UTC
  • mfrom: (17.1.1 experimental)
  • Revision ID: package-import@ubuntu.com-20130505142330-a1lmq91yf5ld4zoq
Tags: 0.3-2
* Upload to unstable.
* debian/control:
  - Use canonical URIs for VCS fields
* debian/install:
  - Install bash-completion script.
* debian/links:
  - gtcli link must point to gtcli, not gtg.

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
    It's a standard Dictionary with a secondary key.
31
31
    For example, you can add an element ('2', 'II', two'), where the
32
32
    first two arguments are keys and the third is the stored object, and access
33
 
    it as:
 
33
    it as::
34
34
        twokey['2'] ==> 'two'
35
35
        twokey['II'] ==> 'two'
36
36
    You can also request the other key, given one.
43
43
        '''
44
44
        Creates the TwoKeyDict and optionally populates it with some data
45
45
 
46
 
        @oaram triplets: tuples for populating the TwoKeyDict. Format:
 
46
        @param triplets: tuples for populating the TwoKeyDict. Format:
47
47
                         ((key1, key2, data_to_store), ...)
48
48
        '''
49
49
        super(TwoKeyDict, self).__init__()