Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
35446dc
adapt to Python3.8 with PEP570
stonebig May 11, 2019
273e723
update cloudpickle
stonebig May 11, 2019
04e2909
implement same test as for ipython
stonebig May 11, 2019
67e3ad2
MNT code reducer now includes pos-only args
pierreglaser May 13, 2019
2320516
TST test function with posonlyargument pickling
pierreglaser May 13, 2019
c9bec06
MNT use an attribute-based condition
pierreglaser May 13, 2019
f67f63a
MNT update changelog
pierreglaser May 13, 2019
30c84ee
fixup! TST test function with posonlyargument pickling
pierreglaser May 14, 2019
2133808
CI add python3.8 to travis
pierreglaser May 14, 2019
7349197
fixup! TST test function with posonlyargument pickling
pierreglaser May 14, 2019
d01cdf4
CI skip scipy tests on 3.8
pierreglaser May 14, 2019
7c5933e
fixup! CI skip scipy tests on 3.8
pierreglaser May 14, 2019
9c6cb35
CI use python nightly build
pierreglaser May 14, 2019
a219dde
fixup! CI use python nightly build
pierreglaser May 14, 2019
8a0974f
fixup! TST test function with posonlyargument pickling
pierreglaser May 14, 2019
1e555e3
CI increase coverage stats
pierreglaser May 14, 2019
a1330f6
fixup! CI increase coverage stats
pierreglaser May 14, 2019
e34e4f6
CI build python from source for new python versions
pierreglaser May 14, 2019
cff2e3a
[ci python-nightly]
pierreglaser May 14, 2019
dd75b20
stale variable
pierreglaser May 14, 2019
f70da00
[ci python-nightly]
pierreglaser May 14, 2019
5718fdf
fixup! CI build python from source for new python versions
pierreglaser May 14, 2019
c2e2cbe
[ci python-nightly]
pierreglaser May 14, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
adapt to Python3.8 with PEP570
.... please update also vendored joblib
  • Loading branch information
stonebig authored and pierreglaser committed May 14, 2019
commit 35446dc2fccaa8ea80b0738406e6ce87feb2c462
55 changes: 37 additions & 18 deletions cloudpickle/cloudpickle.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,24 +168,43 @@ def inner(value):
(),
)
else:
return types.CodeType(
co.co_argcount,
co.co_kwonlyargcount,
co.co_nlocals,
co.co_stacksize,
co.co_flags,
co.co_code,
co.co_consts,
co.co_names,
co.co_varnames,
co.co_filename,
co.co_name,
co.co_firstlineno,
co.co_lnotab,
co.co_cellvars, # this is the trickery
(),
)

try:
return types.CodeType(
co.co_argcount,
co.co_kwonlyargcount,
co.co_nlocals,
co.co_stacksize,
co.co_flags,
co.co_code,
co.co_consts,
co.co_names,
co.co_varnames,
co.co_filename,
co.co_name,
co.co_firstlineno,
co.co_lnotab,
co.co_cellvars, # this is the trickery
(),
)
except:
return types.CodeType(
co.co_argcount,
co.co_posonlyargcount, # Python3.8 with PEP570
co.co_kwonlyargcount,
co.co_nlocals,
co.co_stacksize,
co.co_flags,
co.co_code,
co.co_consts,
co.co_names,
co.co_varnames,
co.co_filename,
co.co_name,
co.co_firstlineno,
co.co_lnotab,
co.co_cellvars, # this is the trickery
(),
)

_cell_set_template_code = _make_cell_set_template_code()

Expand Down