Re: [Tutor] Error Python version 3.6 does not support this syntax.

2018-11-29 Thread Steven D'Aprano
On Fri, Nov 30, 2018 at 02:19:25AM +0530, srinivasan wrote: > Dear Mats, > > Thanks a lot for your quick responses, again the below line seems to > be throwing the same error, is that should I again decode the line > where am facing the issue to str? or could you please let me if there > is any al

Re: [Tutor] Error Python version 3.6 does not support this syntax.

2018-11-29 Thread srinivasan
Dear Mats, Thanks a lot for your quick responses, again the below line seems to be throwing the same error, is that should I again decode the line where am facing the issue to str? or could you please let me if there is any alternative solution for the same or workaround in python 3.6? Code Snipp

Re: [Tutor] Error Python version 3.6 does not support this syntax.

2018-11-29 Thread srinivasan
Dear Python Experts, With the below code snippet, I am seeing the below error, I am using python 3.6, could you please what could be the issue? Code Snippet: --- import time import pexpect import subprocess import sys class BluetoothctlError(Exception): """This exception is r

Re: [Tutor] Error Python version 3.6 does not support this syntax.

2018-11-29 Thread Cameron Simpson
On 30Nov2018 02:19, srinivasan wrote: Thanks a lot for your quick responses, again the below line seems to be throwing the same error, is that should I again decode the line where am facing the issue to str? or could you please let me if there is any alternative solution for the same or workarou

Re: [Tutor] Error Python version 3.6 does not support this syntax.

2018-11-29 Thread Mats Wichmann
On 11/29/18 12:20 PM, srinivasan wrote: > Dear Python Experts, > > With the below code snippet, I am seeing the below error, I am using > python 3.6, could you please what could be the issue? > self.child = pexpect.spawn("bluetoothctl", echo = False) ... > self.child.send(command

Re: [Tutor] Error Python version 3.6 does not support this syntax.

2018-11-27 Thread Mats Wichmann
On 11/27/18 5:50 AM, srinivasan wrote: > Dear Python Experts, > > As still I am newbie and learning python, I am trying to reuse the > Bluetoothctl wrapper in Python from the link ( > https://gist.github.com/egorf/66d88056a9d703928f93) I am using python3.6 > version, In pycharm editor on the bold

[Tutor] Error Python version 3.6 does not support this syntax.

2018-11-27 Thread srinivasan
Dear Python Experts, As still I am newbie and learning python, I am trying to reuse the Bluetoothctl wrapper in Python from the link ( https://gist.github.com/egorf/66d88056a9d703928f93) I am using python3.6 version, In pycharm editor on the bold highlighted code snippets I see the error message "