https://bugs.kde.org/show_bug.cgi?id=426292

Francis Herne <m...@flherne.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Version Fixed In|                            |5.6.1
      Latest Commit|https://invent.kde.org/kdev |https://invent.kde.org/kdev
                   |elop/kdev-python/commit/7db |elop/kdev-python/commit/44b
                   |8f71c9fd9c5c2ffc32638b91ba2 |8992325bbcbfa350b163bf0176a
                   |2916b6f69d                  |ad2c9d47da

--- Comment #9 from Francis Herne <m...@flherne.uk> ---
Git commit 44b8992325bbcbfa350b163bf0176aad2c9d47da by Francis Herne.
Committed on 19/09/2020 at 23:46.
Pushed by flherne into branch 'flh-slice-crash'.

Fix ExtSlice crash with Python <= 3.8
FIXED-IN: 5.6.1

The dimensions of an ExtSlice node are _slice nodes rather than _expr,
 so this would crash whenever encountering one.

 --

This was introduced in commit 05e95cac7 "Initial support for CPython 3.9".

When I replaced `ExtendedSliceAst` with `TupleAst` in python39.sdef in that
commit,
 conversionGenerator.py *also* changed `_slice` to `_expr` here
 (because the type used is implicitly determined in a stupid way)
 and I failed to notice that difference in the newly-generated code.

I couldn't see an easy way to fix the implicit type thing, so this commit just
 bypasses that mechanism and uses CODE instead.

M  +1    -0    duchain/tests/pyduchaintest.cpp
M  +1    -1    parser/generated.h
M  +2    -1    parser/python39.sdef

https://invent.kde.org/kdevelop/kdev-python/commit/44b8992325bbcbfa350b163bf0176aad2c9d47da

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to