Re: [Tutor] simon says

2012-09-10 Thread William R. Wing (Bill Wing)
On Sep 10, 2012, at 1:15 PM, Matthew Ngaha chigga...@gmail.com wrote: hi guy my book has set me an assignment of a simon says game but i don't really understand what it's asking me to do. here's the text: write a version of the simon says game where a player has to repeat an ever-growing,

Re: [Tutor] running more than one python program at the same time

2012-09-03 Thread William R. Wing (Bill Wing)
On Sep 3, 2012, at 11:01 AM, Benjamin Fishbein bfishbei...@gmail.com wrote: Hi. I started running the program in the terminal rather than IDLE. It works, and I can run several programs at the same time. The problem is that when the program is finished running, it prints: exit status: 0

Re: [Tutor] Running a script in the background

2012-09-02 Thread William R. Wing (Bill Wing)
On Sep 1, 2012, at 11:29 PM, Michael Lewis mjole...@gmail.com wrote: Hi everyone, I am sorry to ask this when there are a lot of resources online regarding the subject, but I've spent the past two days trying to figure this out and I don't get it. I have a script that will run forever.

Re: [Tutor] Running a script in the background

2012-09-02 Thread William R. Wing (Bill Wing)
On Sep 2, 2012, at 5:06 PM, Michael Lewis mjole...@gmail.com wrote: Michael, I see you have several Windows answers, but it doesn't look as though you found quite what you were hoping for on OSX. My suggestion would be to take the script and run it through py2app, which will turn it

Re: [Tutor] Running a script in the background (this time Cc'd to the list)

2012-09-02 Thread William R. Wing (Bill Wing)
On Sep 2, 2012, at 6:15 PM, Alan Gauld alan.ga...@btinternet.com wrote: On 02/09/12 21:30, William R. Wing (Bill Wing) wrote: My suggestion would be to take the script and run it through py2app, which will turn it into a stand-alone application which can then be added to your list

Re: [Tutor] Tutor Digest, Vol 102, Issue 98

2012-08-31 Thread William R. Wing (Bill Wing)
On Aug 31, 2012, at 4:31 AM, Mark Lawrence breamore...@yahoo.co.uk wrote: On 31/08/2012 04:27, William R. Wing (Bill Wing) wrote: How about - for item in iter(list): ….print item Overengineering? :) A list is an iterator. Right you are - should have been: for item in list

Re: [Tutor] Tutor Digest, Vol 102, Issue 98

2012-08-30 Thread William R. Wing (Bill Wing)
On Aug 30, 2012, at 8:15 PM, tutor-requ...@python.org wrote: Message: 6 Date: Fri, 31 Aug 2012 00:15:41 + From: Ashley Fowler afowl...@broncos.uncfsu.edu To: tutor@python.org tutor@python.org Subject: [Tutor] Printing a list as a column Message-ID:

Re: [Tutor] running more than one python program at the same time

2012-08-29 Thread William R. Wing (Bill Wing)
On Aug 28, 2012, at 11:28 PM, aklei...@sonic.net wrote: On 08/28/2012 03:30 PM, Benjamin Fishbein wrote: Hello, I wrote a program that I want to have running 24/7. But the problem is that I also want to write and run other programs. I'm using Idle and it won't let me run more than one script

Re: [Tutor] What are all those letters after terminal commands?

2012-08-23 Thread William R. Wing (Bill Wing)
On Aug 23, 2012, at 12:59 PM, Steven D'Aprano st...@pearwood.info wrote: On 23/08/12 23:18, Cecilia Chavana-Bryant wrote: [...] I found this command: mkdir -p i/like/icecream. I am guessing that the -p stands for directory path? Ha, that's the trouble with command line interfaces -- they

Re: [Tutor] Confusion with Python, Bash and Command Prompt

2012-08-10 Thread William R. Wing (Bill Wing)
On Aug 10, 2012, at 12:20 AM, Steven D'Aprano st...@pearwood.info wrote: [byte] That is not Python's doing. That is the shell, and so it depends entirely on your choice of operating system and shell. It works on Unix, Linux and probably Mac OS, but not on Windows. Yes, it definitely

Re: [Tutor] Problem When Iterating Over Large Test Files

2012-07-18 Thread William R. Wing (Bill Wing)
On Jul 18, 2012, at 7:33 PM, Ryan Waples wrote: I'm seeing some unexpected output when I use a script (included at end) to iterate over large text files. I am unsure of the source of the unexpected output and any help would be much appreciated. Background Python v 2.7.1 Windows 7 32bit

Re: [Tutor] Problem When Iterating Over Large Test Files

2012-07-18 Thread William R. Wing (Bill Wing)
On Jul 18, 2012, at 10:33 PM, Ryan Waples wrote: Thanks for the replies, I'll try to address the questions raised and spur further conversation. those numbers (4GB and 64M lines) look suspiciously close to the file and record pointer limits to a 32-bit file system. Are you sure you aren't

[Tutor] Newbe problem with wxPython on Mac OS X (need a work-around)

2012-06-05 Thread William R. Wing (Bill Wing)
I'm running Mac OS-X 10.7.4 (Lion) and have installed Python 2.7 from Python.org. It's in /Library so as to not conflict with the one from Apple in /System/Library and I've set my .profile to make it my default. So far so good. I decided I wanted to start playing with wxPython, and downloaded