Does "SyntaxEditor Python Language Add-on for WPF" support Python 3.6

SyntaxEditor Python Language Add-on for WPF Forum

Posted 5 years ago by Jamie L. Palmer
Version: 16.1.0675
Avatar

We are in the process of updating our code to use Python 3.6.  Since we are using the "SyntaxEditor Python Language Add-on for WPF" provided by you, I was wondering if you knew if switching our code to use "ActiproSoftware.Text.Languages.Python.PythonVersion.Version3" when creating "PythonSyntaxLanguage" would already work just fine with Python 3.6?  

We are currently using your application versioned 2016.1 if that makes a difference to your answer.

Comments (13)

Posted 5 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Jamie,

I believe the add-on is currently on v3.4.1.  We have a TODO item to update the version support and will log your request with it.  At the moment, we're working on wrapping up the first beta for the WPF SyntaxEditor 2019.1 release, which is described as "SyntaxEditor vNext" in our blog.


Actipro Software Support

Posted 4 years ago by Christine Gillin
Avatar

Hi-

Its been a while, is there an update to this answer? I am using v19.1.682 right now.

Thanks!

Posted 4 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Christine,

Not yet, we have been letting the SyntaxEditor updates settle a bit now that all the platforms (WPF, WinForms, UWP) are on the same codebase and shifted gears to working on enhancements to our WPF Themes.  Themes is our current focus for the first 2020.1 version.  After that, updating the SyntaxEditor add-ons are high priority items.


Actipro Software Support

Posted 4 years ago by Ravi Prabakaran
Avatar

Hi,

Any update to this answer?

Thanks!

[Modified 4 years ago]

Posted 4 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Ravi,

Not yet, we are very close to finally having the 2020.1 version out.  That has taken a lot longer than we anticipated (but the updates will be well worth it) so everything on the TODO list has gotten pushed back accordingly.


Actipro Software Support

Posted 4 years ago by Jamie L. Palmer
Avatar

This may or may not be useful to you, but I wanted to put it on your radar in case it is helpful. 

When figuring out the new functionality in Python 3.6-3.8 that my project is either going to use or wants to use; we attempted to identify those that may cause syntax changes and thus may not be handled well in the current SyntaxEditor that we are using (v19.1.682) until we get the updated version to handle Python 3.6.  There may be other syntax changes in the various updates to Python, but I know these are ones that we are hoping to utilize. 

Good luck!

The following is the list we came up with:

==========
Python 3.6
==========

New syntax features we use:
===========================
PEP 498, formatted string literals.  https://docs.python.org/3/whatsnew/3.6.html#whatsnew36-pep498
PEP 515, underscores in numeric literals.  https://docs.python.org/3/whatsnew/3.6.html#whatsnew36-pep515
PEP 526, syntax for variable annotations.  https://docs.python.org/3/whatsnew/3.6.html#whatsnew36-pep526

Syntax we might use:
====================
PEP 525, asynchronous generators.  https://docs.python.org/3/whatsnew/3.6.html#whatsnew36-pep525
PEP 530: asynchronous comprehensions.  https://docs.python.org/3/whatsnew/3.6.html#whatsnew36-pep530


==========
Python 3.7
==========

Syntax we might use:
====================
async and await are now reserved keywords.


==========
Python 3.8
==========

New syntax features we will use:
================================
Assignment Expressions (walrus operator) https://www.python.org/dev/peps/pep-0572/
Positional Only Parameters https://www.python.org/dev/peps/pep-0570/
f-strings support = for self-documenting expressions and debugging  https://docs.python.org/3/whatsnew/3.8.html#f-strings-support-for-self-documenting-expressions-and-debugging

Posted 3 years ago by Tobias Lingemann - Software Devolpment Engineer, Vector Informatik GmbH
Avatar

Hi,

I just want to keep this thread alive. We are using the version 3.9.2 and will stick with that release for a while.

Therefore any support for more recent releases would be appreciated.


Best regards, Tobias Lingemann.

Posted 3 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Tobias,

Getting our WinForms controls to be updated for .NET Core has taken a lot longer than we expected due to Microsoft's drastic API/design changes to the new Visual Studio WinForms .NET Core designer and has eaten a lot of development resource time, but we are getting close to finally wrapping that up. 

At the same time we have started working on SyntaxEditor features again, attacking some high priority items.  After some of the things we're on right now, updating the language add-ons to better support new language versions are among the top items on the SyntaxEditor TODO list.


Actipro Software Support

Posted 3 years ago by Tobias Lingemann - Software Devolpment Engineer, Vector Informatik GmbH
Avatar

Can you give us an estimated time frame? We just started development, but really liked to support type annotations. If it is unlikely to see an update within the next 6 months or so, we might have to integrate a different parser.


Best regards, Tobias Lingemann.

Posted 3 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Tobias,

We are starting to look into what it will take to update the parser to support newer constructs.  If you can give a specific example of the syntax you want to see and what Python version it was introduced, that would be helpful.


Actipro Software Support

Posted 3 years ago by Tobias Lingemann - Software Devolpment Engineer, Vector Informatik GmbH
Avatar

Here is an example code:

class Test:
    def variable_type_annotation(self):
        a : int = 0
        
    def underscore_literals(self) -> int:
        return 5_000
    
    def formatted_string(self, name):
        return f"He said his name is {name}."

These three features were all introduced in Python 3.6 with PEP 526, PEP 515 and PEP 498. So I think a support for Python 3.6 would be a good first step.


Best regards, Tobias Lingemann.

Posted 3 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hello all,

Good news!  We are near a point where we can start having some customers beta test Python parser updates to support v3.9.5.  If you are interested in beta testing the add-on's updates, please contact our development team at our support address and we will work with you.


Actipro Software Support

Answer - Posted 2 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hello,

Just to close this out, Python v3.9.5 support is in the latest v22.1 releases of our WPF and WinForms controls.


Actipro Software Support

The latest build of this product (v24.1.1) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.