Re: [Tutor] New guy question...

2009-09-14 Thread David
Rich Lovely wrote: 2009/9/14 Warren : Hey all, I'm just getting started with Python and I'm working my way through my first "Learn Python" book on my Mac. I ran into a weird issue though. Here's the example code I'm using: #!/usr/bin/env python3 print( "Type integers, each followed by ENTER

Re: [Tutor] New guy question...

2009-09-14 Thread Alan Gauld
"Warren" wrote while True: line = input() Beats me, it works OK on my XP box. try: number = int(line) except ValueErr as err: Are you sure this shouldn't be ValueError rather than ValueErr? It won't be causing your current problem but it might cause your next one! :-) Now, w

Re: [Tutor] New guy question...

2009-09-14 Thread Rich Lovely
2009/9/14 Warren : > > Hey all, > > I'm just getting started with Python and I'm working my way through my first > "Learn Python" book on my Mac.  I ran into a weird issue though.  Here's the > example code I'm using: > > #!/usr/bin/env python3 > > print( "Type integers, each followed by ENTER; or

Re: [Tutor] New guy question...

2009-09-14 Thread Dave Angel
(You're top-posting, which makes the message flow very confusing) Warren wrote: Well, I thought that as well but I took it out which makes it run under 2.6.1 and I get similar, but not exactly the same, output: Type integers, each followed by ENTER; or just ENTER to finish EOFError: EOF wh

Re: [Tutor] New guy question...

2009-09-14 Thread Wayne
On Mon, Sep 14, 2009 at 3:31 PM, Marc Tompkins wrote: > On Mon, Sep 14, 2009 at 12:30 PM, Warren wrote: > > Type integers, each followed by ENTER; or just ENTER to finish > > Traceback (most recent call last): > > method in test.py at line 9 > >line = input() > > EOFError: EOF when reading

Re: [Tutor] (no subject)

2009-09-14 Thread Eduardo Vieira
On Sun, Sep 13, 2009 at 6:42 PM, bob gailer wrote: > Please provide a meaningful subject (other than no subject) > > > shellc...@juno.com wrote: >> >> I want to take two tuples and and print out all the elements in both >> tuples >> >> > > You probably want something different. So explain please.

Re: [Tutor] New guy question...

2009-09-14 Thread Mark Freeman
Have you tried running this line by line through the interactive shell? Given, I'm not doing this on a mac, but your input() call doesn't fail for me. I'm using Python 2.6. mark ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscriptio

Re: [Tutor] New guy question...

2009-09-14 Thread Marc Tompkins
On Mon, Sep 14, 2009 at 12:30 PM, Warren wrote: > Type integers, each followed by ENTER; or just ENTER to finish > Traceback (most recent call last): >  method in test.py at line 9 >    line = input() > EOFError: EOF when reading a line > > Why is the "input" statement not waiting for input like

Re: [Tutor] New guy question...

2009-09-14 Thread Warren
Well, I thought that as well but I took it out which makes it run under 2.6.1 and I get similar, but not exactly the same, output: Type integers, each followed by ENTER; or just ENTER to finish EOFError: EOF when reading a line - Warren (war...@wantonhubris.com) On Sep 14, 2009, at 3

Re: [Tutor] New guy question...

2009-09-14 Thread bob gailer
Warren wrote: Hey all, I'm just getting started with Python and I'm working my way through my first "Learn Python" book on my Mac. I ran into a weird issue though. Here's the example code I'm using: #!/usr/bin/env python3 print( "Type integers, each followed by ENTER; or just ENTER to fi

Re: [Tutor] New guy question...

2009-09-14 Thread Robert Berman
Hi, I noticed this: #!/usr/bin/env python3 which I think indicates you are using python version 3. I strongly suspect you are reading a text based on one of the version 2 issues of python. You might consider dropping back a version(such as 2.6.) since most learning texts are not updated to w

[Tutor] New guy question...

2009-09-14 Thread Warren
Hey all, I'm just getting started with Python and I'm working my way through my first "Learn Python" book on my Mac. I ran into a weird issue though. Here's the example code I'm using: #!/usr/bin/env python3 print( "Type integers, each followed by ENTER; or just ENTER to finish" ) t

Re: [Tutor] How to print the next line in python

2009-09-14 Thread Eduardo Vieira
On Sat, Sep 12, 2009 at 10:53 PM, Lie Ryan wrote: > ranjan das wrote: >> >> Hi, >> >> I am new to python and i wrote this piece of code which is ofcourse not >> serving my purpose: >> >> Aim of the code: >> >> To read a file and look for lines which contain the string 'CL'. When >> found, print th

Re: [Tutor] include remote module

2009-09-14 Thread Eike Welk
On Monday 14 September 2009, Alan Gauld wrote: > It would also save valuable bandwidth and session time. Thinking about it... One could send compressed differences to the version on the CD. Rpm has such a feature I think (Delta RPM, Patch RPM). Eike.

Re: [Tutor] Displaying elements of twoTuples

2009-09-14 Thread bob gailer
Please read and follow all advice you receive. Otherwise trying to help gets very frustrating. Be sure copies of your replies go to the Tutor List. (Yes I took the effort to find out which list you had written to). Best way is to reply-all. DO NOT USE the same name f

Re: [Tutor] include remote module

2009-09-14 Thread Alan Gauld
"Eike Welk" wrote called this sort of script right after boot up. They could have the absolute most current version of an application from my server launched on their box and if their data from that application was For this kind of application you could tansfer *.tar.gz or *.rmp files and