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
"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
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
(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
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
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.
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
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
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
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
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
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
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
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.
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
"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
16 matches
Mail list logo