Re: [code] [textadept] syntax error question

From: Jay Young <jyng7.att.hotmail.com>
Date: Thu, 3 Sep 2015 02:45:30 +0000

Hi Mitchell,

Thank you for your fast reply. I added your code to my init.lua file, and it's working well.

Thanks again for your help!

Jay
________________________________________
From: Mitchell <m.att.foicica.com>
Sent: Wednesday, September 2, 2015 9:14 PM
To: code.att.foicica.com
Subject: Re: [code] [textadept] syntax error question

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.
> #!/Library/Frameworks/Python.framework/Versions/3.4/bin/python3.4
> import tkinter as TK
> def vocabularyIter(sel):
> yield from iter(sel)

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:45:30 EDT

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