OpenQuizz
Une application de gestion des contenus pédagogiques
attr._compat Namespace Reference

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()
 

Function Documentation

◆ isclass()

def isclass (   klass)

◆ iteritems()

def iteritems (   d)

◆ just_warn()

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.

◆ make_set_closure_cell()

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`.

◆ metadata_proxy()

def metadata_proxy (   d)

◆ new_class()

def attr._compat.new_class (   name,
  bases,
  kwds,
  exec_body 
)
A minimal stub of types.new_class that we need for make_class.

Variable Documentation

◆ new_class

def new_class = types.new_class

◆ ordered_dict

ordered_dict = dict

◆ PY2

int PY2 = 2

◆ PYPY

string PYPY = "PyPy"

◆ set_closure_cell

def set_closure_cell = make_set_closure_cell()

◆ TYPE

string TYPE = "type"