OpenQuizz
Une application de gestion des contenus pédagogiques
pip._vendor.tenacity._utils Namespace Reference

Data Structures

class  cached_property
 

Functions

def wraps (fn)
 
def capture (fut, tb)
 
def getargspec (func)
 
def visible_attrs (obj, attrs=None)
 
def find_ordinal (pos_num)
 
def to_ordinal (pos_num)
 
def get_callback_name (cb)
 

Variables

 MAX_WAIT
 

Function Documentation

◆ capture()

def capture (   fut,
  tb 
)

◆ find_ordinal()

def pip._vendor.tenacity._utils.find_ordinal (   pos_num)

◆ get_callback_name()

def pip._vendor.tenacity._utils.get_callback_name (   cb)
Get a callback fully-qualified name.

If no name can be produced ``repr(cb)`` is called and returned.

◆ getargspec()

def getargspec (   func)

◆ to_ordinal()

def pip._vendor.tenacity._utils.to_ordinal (   pos_num)

◆ visible_attrs()

def pip._vendor.tenacity._utils.visible_attrs (   obj,
  attrs = None 
)

◆ wraps()

def pip._vendor.tenacity._utils.wraps (   fn)
Do the same as six.wraps but only copy attributes that exist.

For example, object instances don't have __name__ attribute, so
six.wraps fails. This is fixed in Python 3
(https://bugs.python.org/issue3445), but didn't get backported to six.

Also, see https://github.com/benjaminp/six/issues/250.

Variable Documentation

◆ MAX_WAIT

MAX_WAIT