class documentation

class Private(object):

View In Hierarchy

Wrap a value so it is hard to leak it accidentally.

>>> x = Private("foo")
>>> print("Value: %s" % x)
Value: <redacted>
>>> print("Value: {0}".format(x))
Value: <redacted>
>>> x.upper() == "FOO"
True
Method __bool__ Undocumented
Method __call__ Undocumented
Method __copy__ Undocumented
Method __deepcopy__ Undocumented
Method __eq__ Undocumented
Method __format__ Undocumented
Method __getattr__ Undocumented
Method __getnewargs__ Undocumented
Method __hash__ Undocumented
Method __init__ Undocumented
Method __repr__ Undocumented
Method __str__ Undocumented
Method Get Return the wrapped value.
Class Variable __slots__ Undocumented
Instance Variable _descr Undocumented
Instance Variable _item Undocumented
def __bool__(self):

Undocumented

def __call__(self, *args, **kwargs):

Undocumented

def __copy__(self):

Undocumented

def __deepcopy__(self, memo):

Undocumented

def __eq__(self, other):

Undocumented

def __format__(self, *_1, **_2):

Undocumented

def __getattr__(self, attr):

Undocumented

def __getnewargs__(self):

Undocumented

def __hash__(self):

Undocumented

def __init__(self, item, descr='redacted'):

Undocumented

def __repr__(self):

Undocumented

def __str__(self):

Undocumented

def Get(self):

Return the wrapped value.

__slots__: list[str] =

Undocumented

_descr =

Undocumented

_item =

Undocumented