Descriptor that handles proxied attribute lookup for :class:`LocalProxy`. :param f: The built-in function this attribute is accessed through. Instead of looking up the special method, the function call is redone on the object. :param fallback: Return this function if the proxy is unbound instead of raising a :exc:`RuntimeError`. :param is_attr: This proxied name is an attribute, not a function. Call the fallback immediately to get the value. :param class_value: Value to return when accessed from the ``LocalProxy`` class directly. Used for ``__doc__`` so building docs still works.
Method | __call__ |
Support calling unbound methods from the class. For example, this happens with ``copy.copy``, which does ``type(x).__copy__(x)``. ``type(x)`` can't be proxied, so it returns the proxy type and descriptor. |
Method | __get__ |
Undocumented |
Method | __init__ |
Undocumented |
Method | __repr__ |
Undocumented |
Method | __set |
Undocumented |
Class Variable | __slots__ |
Undocumented |
Instance Variable | bind |
Undocumented |
Instance Variable | class |
Undocumented |
Instance Variable | fallback |
Undocumented |
Instance Variable | is |
Undocumented |
Instance Variable | name |
Undocumented |
Support calling unbound methods from the class. For example, this happens with ``copy.copy``, which does ``type(x).__copy__(x)``. ``type(x)`` can't be proxied, so it returns the proxy type and descriptor.
t.Optional[ t.Callable]
= None, fallback: t.Optional[ t.Callable]
= None, class_value: t.Optional[ t.Any]
= None, is_attr: bool
= False):
(source)
¶
werkzeug.local._ProxyIOp
Undocumented