class documentation

class _TranslationProxy(UserString):

View In Hierarchy

Class for proxy strings from gettext translations. This is a helper for the lazy_* functions from this module.

The proxy implementation attempts to be as complete as possible, so that the lazy objects should mostly work as expected, for example for sorting.

This inherits from UserString because some docutils versions use UserString for their Text nodes, which then checks its argument for being either a basestring or UserString, otherwise calls str() -- not unicode() -- on it.

Method __add__ Undocumented
Method __copy__ Undocumented
Method __dir__ Undocumented
Method __getattr__ Undocumented
Method __getnewargs__ Undocumented
Method __getstate__ Undocumented
Method __init__ Undocumented
Method __mod__ Undocumented
Method __mul__ Undocumented
Method __new__ Undocumented
Method __radd__ Undocumented
Method __repr__ Undocumented
Method __rmod__ Undocumented
Method __rmul__ Undocumented
Method __setstate__ Undocumented
Method __str__ Undocumented
Method encode Undocumented
Class Variable __slots__ Undocumented
Instance Variable ​_args Undocumented
Instance Variable ​_func Undocumented
Property data Undocumented
def __add__(self, other):

Undocumented

Parameters
other:strUndocumented
Returns
strUndocumented
def __copy__(self):

Undocumented

Returns
_TranslationProxyUndocumented
def __dir__(self):

Undocumented

Returns
List[str]Undocumented
def __getattr__(self, name):

Undocumented

Parameters
name:strUndocumented
Returns
AnyUndocumented
def __getnewargs__(self):

Undocumented

Returns
Tuple[str]Undocumented
def __getstate__(self):

Undocumented

Returns
Tuple[Callable, Tuple[str, ...]]Undocumented
def __init__(self, func, *args):

Undocumented

Parameters
func:CallableUndocumented
*args:strUndocumented
def __mod__(self, other):

Undocumented

Parameters
other:strUndocumented
Returns
strUndocumented
def __mul__(self, other):

Undocumented

Parameters
other:AnyUndocumented
Returns
strUndocumented
def __new__(cls, func, *args):

Undocumented

Parameters
func:CallableUndocumented
*args:strUndocumented
Returns
objectUndocumented
def __radd__(self, other):

Undocumented

Parameters
other:strUndocumented
Returns
strUndocumented
def __repr__(self):

Undocumented

Returns
strUndocumented
def __rmod__(self, other):

Undocumented

Parameters
other:strUndocumented
Returns
strUndocumented
def __rmul__(self, other):

Undocumented

Parameters
other:AnyUndocumented
Returns
strUndocumented
def __setstate__(self, tup):

Undocumented

Parameters
tup:Tuple[Callable, Tuple[str]]Undocumented
def __str__(self):

Undocumented

Returns
strUndocumented
def encode(self, encoding=None, errors=None):

Undocumented

Parameters
encoding:strUndocumented
errors:strUndocumented
Returns
bytesUndocumented
__slots__: tuple[str, ...] =

Undocumented

_args =

Undocumented

_func =

Undocumented

@property
data: str =

Undocumented