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

Class Hydrogen

object --+        
         |        
       Sea --+    
             |    
          Atom --+
                 |
                Hydrogen

Instance Methods [hide private]
 
__init__(self, s, type, parent=None)
Just a slightly faster way to construct a 'Atom' object

Inherited from Atom: __deepcopy__, __eq__, __str__, update

Inherited from Atom (private): _dump_impl

Inherited from Sea: __getstate__, __ne__, __setstate__, add_tag, apply, clear_all_tag, dump, has_tag, parent, pmode, remove_tag, reset_tag, set_parent, set_pmode, tag

Inherited from Sea (private): _add_tag_impl, _remove_tag_impl, _reset_tag_impl

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __subclasshook__

Static Methods [hide private]

Inherited from Atom: guess_value_type, num_wildcard

Inherited from Sea (private): _gen_sea, _normalize_tag

Class Variables [hide private]

Inherited from Atom: WILDCARD_PATTERN

Properties [hide private]

Inherited from Atom: bval, dval, raw_val, sval, val

Inherited from object: __class__

Method Details [hide private]

__init__(self, s, type, parent=None)
(Constructor)

 

Just a slightly faster way to construct a 'Atom' object

Parameters:
  • s - Can be a floating number, a boolean value, an integer number, or a string. If 's' is a string. the function will try to guess the type of object that the string represents and convert the string to the guessed type. 's' cannot be a dict, or tuple, or dict object.
  • type - Supplies a type, instead of using the guessed one. If it is None, the guessed type will be used.
  • parent - Specifies the parent of this 'Atom' object.
Overrides: object.__init__