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] Search error code in a logfile and print all lines until the error code

2018-11-29 Thread Alan Gauld via Tutor
On 29/11/2018 12:53, Asad wrote: > Hi All , > > I need some help to print error lines from a log file : I don;t have time right now for a detailed analysis but there are some obvious starting points: > f4 = open (r"file1.log", 'r') > string2=f4.readlines() > for i in range(len(string2)):

Re: [Tutor] Trouble about creating database

2018-11-29 Thread Alan Gauld via Tutor
On 29/11/2018 09:24, Muhammed Esen wrote: > I can't create a database even tough I imported pymysql. I have Xammp on my > Mac and I already started MySQL Database. What could be the problem? Just about anything since you haven't shown us your code. It could be a syntax error, a problem with argume

Re: [Tutor] Trouble about creating database

2018-11-29 Thread Mark Lawrence
On 29/11/2018 09:24, Muhammed Esen wrote: I can't create a database even tough I imported pymysql. I have Xammp on my Mac and I already started MySQL Database. What could be the problem? Thanks have a nice day. Please help us to help you by providing a small code snippet that reproduces the p

[Tutor] Trouble about creating database

2018-11-29 Thread Muhammed Esen
I can't create a database even tough I imported pymysql. I have Xammp on my Mac and I already started MySQL Database. What could be the problem? Thanks have a nice day. ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options:

[Tutor] Search error code in a logfile and print all lines until the error code

2018-11-29 Thread Asad
Hi All , I need some help to print error lines from a log file : for example the following logfile : SQL> SQL> SET PAGESIZE 0 SQL> SELECT 'Starting apply for patch 26925263/21857460 on ' || 2 SYSTIMESTAMP FROM dual; Starting apply for patch 26925263/21857460 on 28-JUN-18 07.46.34

Re: [Tutor] writer overloaded

2018-11-29 Thread Mark Lawrence
On 29/11/2018 02:04, Avi Gross wrote: [another massive snip] Please take this some place else as I see no place on this *TUTOR* list for your ramblings. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence __

Re: [Tutor] online interactive Py resource?

2018-11-29 Thread Avi Gross
Mats, This may not be a direct answer to your question but I have used more generic tools in a way that might make some sense. You can use a videoconference tool such as SKYPE to connect and have one of you share your screen with the otgher so you can see whatever is open such as an editor they a

Re: [Tutor] writer overloaded

2018-11-29 Thread Avi Gross
Steve, I read your reply in which you address selected parts of my earlier message. I conclude I am either not writing as clearly as I hoped or your interpretation is sometimes not what I intend. And, I can also be wrong or incomplete! I won't reply in-line or comment much on what I accept or a

Re: [Tutor] online interactive Py resource?

2018-11-29 Thread Alan Gauld via Tutor
On 29/11/2018 01:49, Mats Wichmann wrote: > It occurs to me it would be cool to work interactively in a distributed > Internet editing environment that could run Python code. Why not just share your desktop? I assume you trust the person you are mentoring?! I don't recall exactly how you do that