Re: [Tutor] Tutor Digest, Vol 115, Issue 28

2014-01-11 Thread Keith Winston
On Sat, Jan 11, 2014 at 7:37 PM, Alan Gauld wrote: > In other words, think about the design of your code don't > just type randomly. I prefer the "million monkeys at a million typewriters" approach to coding... But then, it's all I've tried... -- Keith ___

Re: [Tutor] another better way to do this ?

2014-01-11 Thread Don Jennings
On Jan 11, 2014, at 4:24 PM, Roelof Wobben wrote: > Hello, > > I try to learn python by following the audicity page. > > Now I have the following problem. > > I have two strings a and b > > Now I have to check if the characters of b are all in a. > But they do have to be in the same ord

Re: [Tutor] Windows Install Issue

2014-01-11 Thread Matthew Ngaha
On Sun, Jan 12, 2014 at 1:13 AM, eryksun wrote: > The pre-built versions of PyQt4 and PyQt5 don't use the same version > of SIP. If you don't have a build system (e.g. Visual Studio 2010, the > Windows 7 SDK, or MinGW), then using a virtual environment should work > around the problem. > > http:/

Re: [Tutor] Windows Install Issue

2014-01-11 Thread eryksun
On Sat, Jan 11, 2014 at 10:24 AM, Matthew Ngaha wrote: > > """Unfortunately it is not possible to use both the PyQt4 and PyQt5 > installers at the same time. If you wish to have both PyQt4 and PyQt5 > installed at the same time you will need to build them yourself from > the source packages.""" >

[Tutor] another better way to do this ?

2014-01-11 Thread Roelof Wobben
Hello, I try to learn python by following the audicity page. Now I have the following problem. I have two strings a and b Now I have to check if the characters of b are all in a. But they do have to be in the same order. So I thought about this solution. length = len(b) start = 1 wh

Re: [Tutor] another better way to do this ?

2014-01-11 Thread Alan Gauld
On 11/01/14 21:24, Roelof Wobben wrote: I have two strings a and b Now I have to check if the characters of b are all in a. But they do have to be in the same order. I'm not sure exactly what you mean? Can you give some examples of data that pass and that fail the criteria? Your algorithm be

Re: [Tutor] Tutor Digest, Vol 115, Issue 28

2014-01-11 Thread Jerry Val
I am trying to perfect myself in creating functions and looping, am using python 3,can you help me with a few basic tips so i can create my own functions and loops without making random mistakes?! On Sep 12, 2013 11:19 PM, wrote: > Send Tutor mailing list submissions to > tutor@python.or

[Tutor] Basic tips - was Re: Tutor Digest, Vol 115, Issue 28

2014-01-11 Thread Mark Lawrence
On 12/01/2014 00:17, Jerry Val wrote: I am trying to perfect myself in creating functions and looping, am using python 3,can you help me with a few basic tips so i can create my own functions and loops without making random mistakes?! IMHO the most important thing is to try your code snippets

Re: [Tutor] Tutor Digest, Vol 115, Issue 28

2014-01-11 Thread Alan Gauld
On 12/01/14 00:17, Jerry Val wrote: I am trying to perfect myself in creating functions and looping, am using python 3,can you help me with a few basic tips so i can create my own functions and loops without making random mistakes?! Please set a meaningful subject line, it makes finding posts i

Re: [Tutor] python query

2014-01-11 Thread Alan Gauld
On 11/01/14 18:53, Reuben wrote: I would like to know the difference between GUI programming v/s web designing...To be more specific lets compare Django(used for web programming) v/s Tkinter(used for GUI programming) What do you mean by the difference in programming? Do you want to know about

[Tutor] python query

2014-01-11 Thread Reuben
Hi All, I would like to know the difference between GUI programming v/s web designing...To be more specific lets compare Django(used for web programming) v/s Tkinter(used for GUI programming) I wish to have a more clear difference regarding this. Regards, Reuben

Re: [Tutor] need help

2014-01-11 Thread Walter Prins
Hi, On 11 January 2014 14:52, S Tareq wrote: > how can i do this on python using py game: > > You need to tell us more about what you've tried and where you're stuck. Needless to say we're not a solution provision service, but we'd be happy to help you get unstuck if you've already done some pr

Re: [Tutor] Python Question

2014-01-11 Thread bruce
hey amy.. ok.. before we jump to coding (and forgive me if what I'm about to type is really basic!) let's play a bit with what's called psuedo-code. psuedo-code is a technique to kind of put your thoughts about a problem/approach in a hash of code/english.. kind of lets you lay out what you're tr

Re: [Tutor] need help

2014-01-11 Thread Mark Lawrence
On 11/01/2014 14:52, S Tareq wrote: how can i do this on python using py game: No idea as what you've sent isn't readable when you try to reply. Also I can't see any code so sorry but I'm not doing your homework for you :( -- My fellow Pythonistas, ask not what our language can do for you,

Re: [Tutor] Python Question

2014-01-11 Thread Amy Davidson
Hey! So luckily with the texts that were sent to me, I was able to figure out the answer(yay)! Unfortunately I am now stuck on a different question. "Write a function called highlight() that prompts the user for a string. Your code should ensure that the string is all lower case. Next, prompt th

Re: [Tutor] Python Question

2014-01-11 Thread wolfrage8...@gmail.com
It will also be helpful if you tell us your OS and Python Version. Can you also tell us if you are writing the code to a file and executing, using IDLE or some other IDE, or are you using the interpreter interactively? On Fri, Jan 10, 2014 at 8:57 PM, Amy Davidson wrote: > Hey Danny, > > I just

Re: [Tutor] Windows Install Issue

2014-01-11 Thread Mark Lawrence
On 11/01/2014 15:24, Matthew Ngaha wrote: On Sat, Jan 11, 2014 at 2:55 PM, Mark Lawrence wrote: On Windows finding a binary installer is always the first thing to do, makefiles indeed. Go here http://www.riverbankcomputing.co.uk/software/pyqt/download5, find the section "Binary Packages" and

Re: [Tutor] Windows Install Issue

2014-01-11 Thread Matthew Ngaha
On Sat, Jan 11, 2014 at 2:55 PM, Mark Lawrence wrote: > > On Windows finding a binary installer is always the first thing to do, > makefiles indeed. Go here > http://www.riverbankcomputing.co.uk/software/pyqt/download5, find the > section "Binary Packages" and this gives Windows 32 and 64 bit ins

Re: [Tutor] Windows Install Issue

2014-01-11 Thread Mark Lawrence
On 11/01/2014 14:08, Matthew Ngaha wrote: Hi I'm trying to install pyqt5.2 for Windows Vista (Python3.3). 1st i need to install sip but i run into this issue. after ./configure, a MAKEFILE is created. I'm supposed to do 'make' and 'make install', but i get this cmd error: C:\path>make 'make' is

[Tutor] Windows Install Issue

2014-01-11 Thread Matthew Ngaha
Hi I'm trying to install pyqt5.2 for Windows Vista (Python3.3). 1st i need to install sip but i run into this issue. after ./configure, a MAKEFILE is created. I'm supposed to do 'make' and 'make install', but i get this cmd error: C:\path>make 'make' is not recognized as an internal or external c

Re: [Tutor] Question about subprocess

2014-01-11 Thread Steven D'Aprano
On Sat, Jan 11, 2014 at 04:26:00AM -0500, eryksun wrote: > On Sat, Jan 11, 2014 at 12:51 AM, Steven D'Aprano wrote: > > > >> However, when I writed it into a .py file and execute the .py file, it > >> blocked at "temp=p.readline()". > > > > Of course it does. You haven't actually called the .exe f

Re: [Tutor] Question about subprocess

2014-01-11 Thread eryksun
On Fri, Jan 10, 2014 at 11:48 PM, daedae11 wrote: > p = subprocess.Popen(['E:/EntTools/360EntSignHelper.exe', > 'E:/build/temp/RemoteAssistSetup.exe'], > stdout=subprocess.PIPE, shell=True).stdout Is 360EntSignHelper supposed to run RemoteAssistSetup as a child process? O

Re: [Tutor] Question about subprocess

2014-01-11 Thread eryksun
On Sat, Jan 11, 2014 at 12:51 AM, Steven D'Aprano wrote: > >> However, when I writed it into a .py file and execute the .py file, it >> blocked at "temp=p.readline()". > > Of course it does. You haven't actually called the .exe file, all you > have done is created a Popen instance and then grabbed

Re: [Tutor] Question about subprocess

2014-01-11 Thread eryksun
On Sat, Jan 11, 2014 at 12:46 AM, Danny Yoo wrote: > There is a warning in the documentation on subprocess that might be > relevant to your situation: > > Warning: > Use communicate() rather than .stdin.write, .stdout.read or > .stderr.read to avoid deadlocks due to any of the other OS pip