OpenQuizz
Une application de gestion des contenus pédagogiques
|
Data Structures | |
class | ReadOnlyDict |
Functions | |
def | isclass (klass) |
def | new_class (name, bases, kwds, exec_body) |
def | iteritems (d) |
def | metadata_proxy (d) |
def | just_warn (*args, **kw) |
def | make_set_closure_cell () |
Variables | |
int | PY2 = 2 |
string | PYPY = "PyPy" |
ordered_dict = dict | |
string | TYPE = "type" |
def | new_class = types.new_class |
def | set_closure_cell = make_set_closure_cell() |
def isclass | ( | klass | ) |
def iteritems | ( | d | ) |
def attr._compat.just_warn | ( | * | args, |
** | kw | ||
) |
We only warn on Python 3 because we are not aware of any concrete consequences of not setting the cell on Python 2.
def attr._compat.make_set_closure_cell | ( | ) |
Return a function of two arguments (cell, value) which sets the value stored in the closure cell `cell` to `value`.
def metadata_proxy | ( | d | ) |
def attr._compat.new_class | ( | name, | |
bases, | |||
kwds, | |||
exec_body | |||
) |
A minimal stub of types.new_class that we need for make_class.
def new_class = types.new_class |
ordered_dict = dict |
int PY2 = 2 |
string PYPY = "PyPy" |
def set_closure_cell = make_set_closure_cell() |
string TYPE = "type" |