support for python 3.10, match-case statement. fails to generate UML
python code for 3.10 with Match-Case Statements fails when importing to generate UML
my development platform is Win11 using https://github.com/abulka/pynsource/releases/download/version-1.84/pynsource-windows-version-1.84.zip
I presume its an issue with pynsource currently building with 3.9
Is there a path way to support 3.10 and 3.11 ?
I’ll take a look at this, thanks for reporting.
Yes I’ll need to build with a later version of Python and probably tweak the pynsource parser.
If you run into any other specific 3.10 or 3.11 syntax that is causing you problems please add to this issue.
Current status is that I've updated the source code so it runs under python 3.10 (there were quite a few float to int conversion issues). This allows pynsource to parse match-case syntax ok, as long as you are running under python 3.10 or perhaps higher.
Outstanding issues:
- [x] async warning due to wxpython needs to be addressed. [completed]
- [x] line arrowheads no longer being rendered in diagrams, which I have reported https://github.com/wxWidgets/Phoenix/issues/2349. I have managed to fix the issue on the Pynsource end of things (I bundle part of the affected ogl library within pynsource).
After these issues are addressed a binary release will be made.
I've created a draft release https://github.com/abulka/pynsource/releases/tag/pre-36 which should parse Python 3.10 syntax. Feedback is welcome.
Beta 2 draft release https://github.com/abulka/pynsource/releases/tag/pre-70 - fixes some graphic glitches.