Package schrodinger :: Package utils :: Module sea :: Class Key
[hide private]
[frames] | no frames]

Class Key

object --+        
         |        
basestring --+    
             |    
           str --+
                 |
                Key

An instance of this class will be used as the key of the Map class (see below).

Instance Methods [hide private]
 
__init__(self, key)
Constructs a new Key object for the given string 'key'.
 
orig_key(self)
Returns the original string.

Inherited from str: __add__, __contains__, __eq__, __format__, __ge__, __getattribute__, __getitem__, __getnewargs__, __getslice__, __gt__, __hash__, __le__, __len__, __lt__, __mod__, __mul__, __ne__, __repr__, __rmod__, __rmul__, __sizeof__, __str__, capitalize, center, count, decode, encode, endswith, expandtabs, find, format, index, isalnum, isalpha, isdigit, islower, isspace, istitle, isupper, join, ljust, lower, lstrip, partition, replace, rfind, rindex, rjust, rpartition, rsplit, rstrip, split, splitlines, startswith, strip, swapcase, title, translate, upper, zfill

Inherited from object: __delattr__, __reduce__, __reduce_ex__, __setattr__, __subclasshook__

Static Methods [hide private]
a new object with type S, a subtype of T
__new__(cls, key)
Creates a new Key object for the given string 'key'.
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__new__(cls, key)
Static Method

 

Creates a new Key object for the given string 'key'. If 'key' is a python keyword, a underscore '_' will be appended to the original string.

Returns: a new object with type S, a subtype of T
Overrides: object.__new__

__init__(self, key)
(Constructor)

 

Constructs a new Key object for the given string 'key'.

Overrides: object.__init__