|
Ran
|
Files
244
|
Run time
10s
|
Badge
README BADGES
|
push
travis-ci
py/objfun: Add function type contructor. Allows to construct a faunction object from bytecode. The signature is: FunctionType = type(lambda: 0) FunctionType(codeobj, const_table, globals[, argdefs]) codeobj should be code object endcoded as bianry buffer (it includes bytecode and metadata). const_table is constant table as used by code object. globals are function globals. argdefs are argument definitions, as required by MicroPython internal representation and includes default argument values and tuple/dict for *args and **kwargs if used. This sinature is different from CPython sugnature: FunctionType(code, globals[, name[, argdefs[, closure]]]) The meaning of parameters is also different, e.g. code is CodeType object (not raw bytes), argdefs are only default argument values, etc. Availability of constructor is controlled by MICROPY_PY_FUNCTION_CONSTRUCTOR. Change-Id: I186334aba
18546 of 18975 relevant lines covered (97.74%)
317834.35 hits per line
| Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
|---|