Skip to content

Commit

Permalink
Merge pull request #846 from mgorny/pypy310
Browse files Browse the repository at this point in the history
Use pre-3.10 serialization code on PyPy3.10
  • Loading branch information
minrk authored Nov 21, 2023
2 parents 44dab1c + 401980b commit cf7fc51
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ipyparallel/serialize/codeutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ def code_ctor(*args):
}
# pass every supported arg to the code constructor
# this should be more forward-compatible
if sys.version_info >= (3, 10):
# (broken on pypy: https://github.com/ipython/ipyparallel/issues/845)
if sys.version_info >= (3, 10) and not hasattr(sys, "pypy_version_info"):
_code_attr_names = tuple(
_code_attr_map.get(name, name)
for name, param in inspect.signature(types.CodeType).parameters.items()
Expand Down

0 comments on commit cf7fc51

Please sign in to comment.