From 04cdcb0feb369ac4c60e10ccdc139c57e8b52e62 Mon Sep 17 00:00:00 2001 From: Zearin Date: Fri, 7 Oct 2011 10:34:23 -0400 Subject: Removed leftovers from installing with pip. Oops! I noticed there was a bunch of extra crap left over from when I installed this module onto my own system. I thought it wouldn't have modified itself at the time (just the Python module library on my system), but I was wrong. Begone, useless cruft! --- doxygen/html/classcmd2_1_1StubbornDict.html | 378 ---------------------------- 1 file changed, 378 deletions(-) delete mode 100644 doxygen/html/classcmd2_1_1StubbornDict.html (limited to 'doxygen/html/classcmd2_1_1StubbornDict.html') diff --git a/doxygen/html/classcmd2_1_1StubbornDict.html b/doxygen/html/classcmd2_1_1StubbornDict.html deleted file mode 100644 index f663de0..0000000 --- a/doxygen/html/classcmd2_1_1StubbornDict.html +++ /dev/null @@ -1,378 +0,0 @@ - - - - -Cmd2: cmd2::StubbornDict Class Reference - - - - - - - - - - - - - - -
- - -
- - - - - - - - - - - -
-
Cmd2 - -
- -
-
- - - - - -
-
- -
-
-
- -
-
- -
-
cmd2::StubbornDict Class Reference
-
-
- -

List of all members.

- - - - - - - - - -

-Public Member Functions

def __add__
def __iadd__
def __radd__
def to_dict
def update

-Static Public Attributes

 append = update
-

Detailed Description

-
Dictionary that tolerates many input formats.
-Create it with stubbornDict(arg) factory function.
-
->>> d = StubbornDict(large='gross', small='klein')
->>> sorted(d.items())
-[('large', 'gross'), ('small', 'klein')]
->>> d.append(['plain', '  plaid'])
->>> sorted(d.items())
-[('large', 'gross'), ('plaid', ''), ('plain', ''), ('small', 'klein')]
->>> d += '   girl Frauelein, Maedchen\\n\\n shoe schuh'
->>> sorted(d.items())
-[('girl', 'Frauelein, Maedchen'), ('large', 'gross'), ('plaid', ''), ('plain', ''), ('shoe', 'schuh'), ('small', 'klein')]
-
-

Definition at line 271 of file cmd2.py.

-

Member Function Documentation

- -
-
- - - - - - - - - - - - - - - - - - -
def cmd2::StubbornDict::__add__ ( self,
 arg 
)
-
-
- -

Definition at line 291 of file cmd2.py.

- -

References cmd2::stubbornDict().

-
00291 
-00292     def __add__(self, arg):
-00293         selfcopy = copy.copy(self)
-00294         selfcopy.update(stubbornDict(arg))
-        return selfcopy
-
-
-
- -
-
- - - - - - - - - - - - - - - - - - -
def cmd2::StubbornDict::__iadd__ ( self,
 arg 
)
-
-
- -

Definition at line 288 of file cmd2.py.

- -

References update().

-
00288 
-00289     def __iadd__(self, arg):
-00290         self.update(arg)
-        return self
-
-
-
- -
-
- - - - - - - - - - - - - - - - - - -
def cmd2::StubbornDict::__radd__ ( self,
 arg 
)
-
-
- -

Definition at line 295 of file cmd2.py.

- -

References cmd2::stubbornDict().

-
00295 
-00296     def __radd__(self, arg):
-00297         selfcopy = copy.copy(self)
-00298         selfcopy.update(stubbornDict(arg))
-00299         return selfcopy    
-        
-
-
-
- -
-
- - - - - - - - - - - - - - - - - - -
def cmd2::StubbornDict::to_dict ( cls,
 arg 
)
-
-
- -

Definition at line 301 of file cmd2.py.

-
00301 
-00302     def to_dict(cls, arg):
-00303         'Generates dictionary from string or list of strings'
-00304         if hasattr(arg, 'splitlines'):
-00305             arg = arg.splitlines()
-00306         if hasattr(arg, '__reversed__'):
-00307             result = {}    
-00308             for a in arg:
-00309                 a = a.strip()
-00310                 if a:
-00311                     key_val = a.split(None, 1)
-00312                     key = key_val[0]
-00313                     if len(key_val) > 1:
-00314                         val = key_val[1]
-00315                     else:
-00316                         val = ''
-00317                     result[key] = val
-00318         else:
-00319             result = arg
-00320         return result
-
-
-
-
- -
-
- - - - - - - - - - - - - - - - - - -
def cmd2::StubbornDict::update ( self,
 arg 
)
-
-
- -

Definition at line 285 of file cmd2.py.

- -

Referenced by __iadd__().

-
00285 
-00286     def update(self, arg):
-        dict.update(self, StubbornDict.to_dict(arg))
-
-
-
-

Member Data Documentation

- -
-
- - - - -
cmd2::StubbornDict::append = update [static]
-
-
- -

Definition at line 287 of file cmd2.py.

- -

Referenced by cmd2::History::extend().

- -
-
-
The documentation for this class was generated from the following file:
    -
  • /Users/amrogers/Developer/Projects/cmd2/cmd2.py
  • -
-
-
- - - - - -- cgit v1.2.1