diff --git a/ipyparallel/serialize/codeutil.py b/ipyparallel/serialize/codeutil.py index 2d3acfa2a..80d107765 100644 --- a/ipyparallel/serialize/codeutil.py +++ b/ipyparallel/serialize/codeutil.py @@ -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()