Re: [code] [textadept] syntax error question

From: Mitchell <m.att.foicica.com>
Date: Wed, 2 Sep 2015 22:14:37 -0400 (EDT)

Hi Jay,

On Thu, 3 Sep 2015, Jay Young wrote:

> I've installed Textadept 8.2, and when saving a Python3.4 file, I'm getting a "SyntaxError: invalid syntax" under "yield from iter(sel)". Although the code runs fine.
>
>
> I did a quick test by making a new document "test.py" and then adding the code below. This also errors at the same place. But when re-installing 8.1, I don't get the error.
>
>
> #!/Library/Frameworks/Python.framework/Versions/3.4/bin/python3.4
>
>
> import tkinter as TK
>
>
> def vocabularyIter(sel):
>
> yield from iter(sel)
>
>
>
> Anyone seeing similar issues?

I think Textadept is using Python2 instead of Python3. For now, try
putting this in your `~/.textadept/init.lua` file:

textadept.run.syntax_commands.python = [[python3.4 -c
'compile(open("%f").read(),"%f","exec",0,1)']]

Cheers,
Mitchell

-- 
You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Received on Wed 02 Sep 2015 - 22:14:37 EDT

This archive was generated by hypermail 2.2.0 : Thu 03 Sep 2015 - 06:51:25 EDT