You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
IPython broken on 3.8-dev, due to changes to ast.Module #11590
In bpo-35766, Guido merged the "typed_ast" code that mypy used to maintain back into main CPython parser. This means that starting in 3.8, the regular ast module will contain information on type comments and type: ignore comments.
The type: ignore comments are stored in a list on the ast.Module object. This list is now mandatory. That means that this code is broken:
[BTW, why does one of those say 'cell_name' and the other says cell_name? Seems like one of those must be wrong... CC: @Carreau]
When you create a Module like this and try to compile it, then you get:
TypeError: required field "type_ignores" missing from Module
On 3.8+, to create a Module object you have to instead write ast.Module(nodelist, []).
I filed a bug on python (bpo-35894), and Guido responded that the details of the AST like this aren't considered stable API, so he considers this a bug for IPython to fix, not a regression on CPython. So, now I'm filing a bug here instead :-).
Activity
Carreau commentedon Feb 5, 2019
For a complete picture, 3.8 is supposed to be stable by end of this year, so this should get fixed soon-ish.
njsmith commentedon Feb 5, 2019
Yeah, also the first alpha just came out and I think this change made it in? So you might get other folks testing it soon-ish.
CI: Add 3.8-dev as 'allowed to fail' until ipython/ipython#11590 gets…
Mark failing IPython multierror tests as xfail on 3.8
Mark failing IPython multierror tests as xfail on 3.8
Carreau commentedon Feb 18, 2019
Closed by #11593
Carreau commentedon May 31, 2019
Hi there, You seem to run IPython on Python 3.8; do you mind trying #11713 that tried to make use of the new 3.8b1 (not out yet) top-level await ?
njsmith commentedon May 31, 2019
I just run it in ci, I don't have a local build handy.
adding fix for python 3.8
adding fix for python 3.8
Upgrade IPython
software/jupyter: Fix dependencies for Python 3.8