From 3b160421894ef3495781a6d76fe0edd0fe44ea2d 2019-05-11 12:31:54 From: stonebig Date: 2019-05-11 12:31:54 Subject: [PATCH] be more precise : >3.8.0a3 --- diff --git a/IPython/core/interactiveshell.py b/IPython/core/interactiveshell.py index 8cc89e4..c102b23 100644 --- a/IPython/core/interactiveshell.py +++ b/IPython/core/interactiveshell.py @@ -138,7 +138,7 @@ def removed_co_newlocals(function:types.FunctionType) -> types.FunctionType: from types import CodeType, FunctionType CO_NEWLOCALS = 0x0002 code = function.__code__ - if sys.version_info > (3,8): + if sys.version_info > (3, 8, 0, 'alpha', 3): new_code = CodeType( code.co_argcount, code.co_posonlyargcount, # Python-3.8 PEP570 positional only argument