class documentation
class Private(object):
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 | |
Return the wrapped value. |
| Class Variable | __slots__ |
Undocumented |
| Instance Variable | _descr |
Undocumented |
| Instance Variable | _item |
Undocumented |