Re: [Tutor] Increase performance of the script

2018-12-11 Thread Steven D'Aprano
On Tue, Dec 11, 2018 at 09:07:58PM +0530, Asad wrote: > Hi All, > > I used your solution , however found a strange issue with deque : No you haven't. You found a *syntax error*, as the exception says: > >>> print 'Deque:', d > File "", line 1 > print 'Deque:', d >

[Tutor] print statement vs print() function, was Re: Increase performance of the script

2018-12-11 Thread Peter Otten
Asad wrote: > Hi All, > > I used your solution , however found a strange issue with deque > : > > I am using python 2.6.6: Consider switching to Python 3; my code as posted already works with that. import collections d = collections.deque('abcdefg') print

[Tutor] Increase performance of the script

2018-12-11 Thread Asad
Hi All, I used your solution , however found a strange issue with deque : I am using python 2.6.6: >>> import collections >>> d = collections.deque('abcdefg') >>> print 'Deque:', d File "", line 1 print 'Deque:', d ^ SyntaxError: invalid syntax >>> print

Re: [Tutor] Any 'graphical' ways of learning Python

2018-12-11 Thread Matthew Polack
Hi Mike and everyone who replied to the tutor question re: GUI ideas for Python. Really value all the ideas and suggestions...that is very helpful! Thanks for taking time to reply with so much great information. We're just in wind down mode/rush for our close of school year ...but will really