Package schrodinger :: Module surface :: Class StrEnum
[hide private]
[frames] | no frames]

Class StrEnum

object --+        
         |        
basestring --+    
             |    
           str --+
                 |
    object --+   |
             |   |
     enum.Enum --+
                 |
                StrEnum
Known Subclasses:

An enum class where all values are strings. All enum objects stringify to their value.

Nested Classes [hide private]
  _member_type_
str(object='') -> string
Instance Methods [hide private]
 
__str__(self)
str(x)
string
__format__(self, format_spec)
Return a formatted version of S as described by format_spec.
 
__reduce_ex__(self, proto)
helper for pickle
 
__repr__(self)
repr(x)

Inherited from str: __add__, __contains__, __eq__, __ge__, __getattribute__, __getitem__, __getnewargs__, __getslice__, __gt__, __hash__, __le__, __len__, __lt__, __mod__, __mul__, __ne__, __rmod__, __rmul__, __sizeof__, 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 enum.Enum: __dir__

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

Static Methods [hide private]
a new object with type S, a subtype of T
__new__(cls, value)
Class Variables [hide private]

Inherited from enum.Enum: _member_map_, _member_names_, _value2member_map_, name, value

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__str__(self)
(Informal representation operator)

 

str(x)

Overrides: object.__str__
(inherited documentation)

__format__(self, format_spec)

 

Return a formatted version of S as described by format_spec.

Returns: string
Overrides: object.__format__
(inherited documentation)

__new__(cls, value)
Static Method

 
Parameters:
  • val - The integer value for this object.
Returns: a new object with type S, a subtype of T
Overrides: object.__new__
(inherited documentation)

__reduce_ex__(self, proto)

 

helper for pickle

Overrides: object.__reduce_ex__
(inherited documentation)

__repr__(self)
(Representation operator)

 

repr(x)

Overrides: object.__repr__
(inherited documentation)