Re: [Tutor] (no subject)

2008-09-30 Thread Timothy Grant
On Tue, Sep 30, 2008 at 10:20 PM, Pierre Dagenais <[EMAIL PROTECTED]> wrote: > kayla bishop wrote: >> >> I can't figure out how to write a program where you flip a coin 100 times >> and it keeps track of how many heads and tails you flipped but it has to be >> random. Can you please help >> ___

Re: [Tutor] python: can't open file 'test.py' : [Errno 2] No such file or directory

2008-09-30 Thread Timothy Grant
On Tue, Sep 30, 2008 at 9:01 PM, Pierre Dagenais <[EMAIL PROTECTED]> wrote: > Timothy Grant wrote: >> >> On Tue, Sep 30, 2008 at 12:58 PM, Pierre Dagenais >> <[EMAIL PROTECTED]> wrote: >> >>> >>> The file test.py is in I:\Python25\MyCode, >>> if I enter: >>> >>> C:\>Python25\MyCode\python25 test.p

Re: [Tutor] list to csv

2008-09-30 Thread Steve Willoughby
Arun Tomar wrote: hi! I've a list new_array = ['n1', 'm1', 'p1', 'n2', 'm2', 'p2', 'n3', 'm3', 'p3'] I am trying to convert this to a csv in 3 columns so that the final output would look something like this "n1","m1","p1" "n2","m2","p2" "n3","m3","p3" This can easily be done with the "csv"

[Tutor] list to csv

2008-09-30 Thread Arun Tomar
hi! I've a list new_array = ['n1', 'm1', 'p1', 'n2', 'm2', 'p2', 'n3', 'm3', 'p3'] I am trying to convert this to a csv in 3 columns so that the final output would look something like this "n1","m1","p1" "n2","m2","p2" "n3","m3","p3" regds, arun.

Re: [Tutor] (no subject)

2008-09-30 Thread Pierre Dagenais
kayla bishop wrote: I can't figure out how to write a program where you flip a coin 100 times and it keeps track of how many heads and tails you flipped but it has to be random. Can you please help _ Get more out of the Web. Learn

[Tutor] Question on DOMImplementation Objects

2008-09-30 Thread Chris Babcock
Does the DOMImplementation interface support schemas? I'm tweaking an example from a book to process a flat file registration database: from xml.dom import implementation class RegistrationParser: def parseFile(self, fileAsString): # Create DocType Declaration doctype = implement

Re: [Tutor] (no subject)

2008-09-30 Thread Pierre Dagenais
kayla bishop wrote: I can't figure out how to write a program where you flip a coin 100 times and it keeps track of how many heads and tails you flipped but it has to be random. Can you please help _ Get more out of the Web. Learn

Re: [Tutor] python: can't open file 'test.py' : [Errno 2] No such file or directory

2008-09-30 Thread Pierre Dagenais
Timothy Grant wrote: On Tue, Sep 30, 2008 at 12:58 PM, Pierre Dagenais <[EMAIL PROTECTED]> wrote: The file test.py is in I:\Python25\MyCode, if I enter: C:\>Python25\MyCode\python25 test.py at the DOS prompt, everything works as I would expect. However when I enter the same command from an

Re: [Tutor] python: can't open file 'test.py' : [Errno 2] No such file or directory

2008-09-30 Thread Pierre Dagenais
W W wrote: On Tue, Sep 30, 2008 at 2:58 PM, Pierre Dagenais <[EMAIL PROTECTED]>wrote: The file test.py is in I:\Python25\MyCode, if I enter: C:\>Python25\MyCode\python25 test.py at the DOS prompt, everything works as I would expect. However when I enter the same command from any other dir

[Tutor] (no subject)

2008-09-30 Thread kayla bishop
I can't figure out how to write a program where you flip a coin 100 times and it keeps track of how many heads and tails you flipped but it has to be random. Can you please help _ Get more out of the Web. Learn 10 hidden secrets of

Re: [Tutor] Tutor Archives and PC Crash

2008-09-30 Thread Alan Gauld
"Danny Yoo" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Yup. See: http://mail.python.org/pipermail/tutor/ for the archive. There's also a searchable interface from GMANE: http://dir.gmane.org/gmane.comp.python.tutor And another at ActiveState.com http://lists.acti

Re: [Tutor] Replacing cmd.exe with custom .py application

2008-09-30 Thread Alan Gauld
"A. Joseph" <[EMAIL PROTECTED]> wrote Instead of going to the command line all the time, I want to create a small customized cmd.exe of my own, I'm not sure that I understand what you are trying to do. But trying to replace cmd.exe is a very very bad idea. Lots of bits of your operatinfg sys

Re: [Tutor] Text Scatter Plots?

2008-09-30 Thread Alan Gauld
"Wayne Watson" <[EMAIL PROTECTED]> wrote Before GUIs, crude scatter plots and histograms on TTYs and IBM electronic typewriters were used with only the symbols on the keyboard. Some were pretty decent and effective. Basioc charts can be done that way but usually they are just produceed by

Re: [Tutor] python: can't open file 'test.py' : [Errno 2] No such file or directory

2008-09-30 Thread Timothy Grant
On Tue, Sep 30, 2008 at 12:58 PM, Pierre Dagenais <[EMAIL PROTECTED]> wrote: > The file test.py is in I:\Python25\MyCode, > if I enter: > > C:\>Python25\MyCode\python25 test.py at the DOS prompt, everything works as > I would expect. > > However when I enter the same command from any other directo

Re: [Tutor] python: can't open file 'test.py' : [Errno 2] No such file or directory

2008-09-30 Thread W W
On Tue, Sep 30, 2008 at 2:58 PM, Pierre Dagenais <[EMAIL PROTECTED]>wrote: > The file test.py is in I:\Python25\MyCode, > if I enter: > > C:\>Python25\MyCode\python25 test.py at the DOS prompt, everything works > as I would expect. > > However when I enter the same command from any other director

[Tutor] python: can't open file 'test.py' : [Errno 2] No such file or directory

2008-09-30 Thread Pierre Dagenais
The file test.py is in I:\Python25\MyCode, if I enter: C:\>Python25\MyCode\python25 test.py at the DOS prompt, everything works as I would expect. However when I enter the same command from any other directory I get this error: C:\>python test.py python: can't open file 'test.py' : [

Re: [Tutor] Tutor Archives and PC Crash

2008-09-30 Thread Danny Yoo
Yup. See: http://mail.python.org/pipermail/tutor/ for the archive. There's also a searchable interface from GMANE: http://dir.gmane.org/gmane.comp.python.tutor ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tu

[Tutor] Tutor Archives and PC Crash

2008-09-30 Thread Wayne Watson
My Win/PC crashed yesterday and I'm not able to follow my recent posts. I'm on another computer now. Is there an archive for the tutor list? ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] Replacing cmd.exe with custom .py application

2008-09-30 Thread A. Joseph
Instead of going to the command line all the time, I want to create a small customized cmd.exe of my own, how can I get the return value from os.system() because I was thinking I can do soothing with os.system(), In case my question is not clear, just like an IDE that plugged in another .exe appl

[Tutor] unable to import Image module from my application

2008-09-30 Thread ShivKumar Anand
I am using Python Image library on windows and it is running well. I am using RHEL E4 on another machine and when I installed "python-imaging-1.1.6-2.el4.rf.i386.rpm", still i am not able to call the Image and ImagOps modules from my application on this Linux machine. After that --I manually