Re: [Tutor] OT: Python 2.5 (Was Re: Length of longest item in a list, using a list comp)

2006-12-29 Thread Tim Golden
Chris Hengge wrote: > I hope this is related enough for this thread, but I'm curious why > people didn't seem to unanimously jump into 2.5 upon release. Python > seems very good about holding its backward compatibility vs some other > languages I've dealt with like C# that seems to require appli

Re: [Tutor] subprocess.Popen.communicate()[]

2006-12-29 Thread Alan Gauld
"Isaac" <[EMAIL PROTECTED]> wrote > Without communicate()[0] the screen is blank and no prompt. Ah. I see. OK, Thanks for clarifying that. I should have tried both versions, I only checked that my version did, in fact, clear the screen, I didn't check how yours behaved - naughty! Alan G. __

Re: [Tutor] OT: Python 2.5 (Was Re: Length of longest item in alist, using a list comp)

2006-12-29 Thread Alan Gauld
"Chris Hengge" <[EMAIL PROTECTED]> wrote >...I'm curious why people didn't seem to unanimously jump > into 2.5 upon release. I can't speak for anyone else, but personally I never load the first version of any software. I only upgrade when I find a feature I actually know I need and after I'm

Re: [Tutor] OT: Python 2.5 (Was Re: Length of longest item in a list, using a list comp)

2006-12-29 Thread Kent Johnson
wesley chun wrote: > below is a quick summary of the 2.5 highlights. of these, i like/use > the following: > 1, 2, 4, 5, 6, 7, (8), 9a, 9b. > > 7) Enhanced Generator Features (PEP 342) -- now you can "talk-back" to > a generator, meaning you can send data into it as you resume it... > .next() se

Re: [Tutor] XML-RPC data transfers.

2006-12-29 Thread Lee Harr
>http://www.velocityreviews.com/forums/t343990-xmlrpc-send-file.html > >Using this example I get error's about 'expected binary .read(), but got >instance instead. I assume you are using this ... >d = xmlrpclib.Binary(open("C:\\somefile.exe").read()) Are you using windows? I think you would n

Re: [Tutor] OT: Python 2.5 (Was Re: Length of longest item in a list, using a list comp)

2006-12-29 Thread Andreas Kostyrka
* Chris Hengge <[EMAIL PROTECTED]> [061229 02:25]: >I hope this is related enough for this thread, but I'm curious why people >didn't seem to unanimously jump into 2.5 upon release. Python seems very >good about holding its backward compatibility vs some other languages I've >dealt

Re: [Tutor] OT: Python 2.5 (Was Re: Length of longest item in a list, using a list comp)

2006-12-29 Thread Chris Calloway
Chris Hengge wrote: > I hope this is related enough for this thread, but I'm curious why > people didn't seem to unanimously jump into 2.5 upon release. If I'm driving a 2006 model car, I don't rush right out and trade for a 2007 model just because they are available. There's cost and effort in

Re: [Tutor] OT: Python 2.5 (Was Re: Length of longest item in a list, using a list comp)

2006-12-29 Thread Kent Johnson
Chris Calloway wrote: > Generators now have a different syntax, so some applications would need > some updating in order to take advantage of 2.5. The old syntax still works. "yield x" is now an expression returning a value, rather than a statement, so it can be used in new ways, but a plain "y

Re: [Tutor] OT: Python 2.5 (Was Re: Length of longest item in a list, using a list comp)

2006-12-29 Thread Bob Gailer
Kent Johnson wrote: > wesley chun wrote: > >> below is a quick summary of the 2.5 highlights. of these, i like/use >> the following: >> 1, 2, 4, 5, 6, 7, (8), 9a, 9b. >> >> 7) Enhanced Generator Features (PEP 342) -- now you can "talk-back" to >> a generator, meaning you can send data into it

Re: [Tutor] Tutor Digest, Vol 34, Issue 55

2006-12-29 Thread Tony Cappellini
Message: 1 Date: Thu, 28 Dec 2006 17:24:41 -0800 From: "Chris Hengge" <[EMAIL PROTECTED]> Subject: Re: [Tutor] OT: Python 2.5 (Was Re: Length of longest item in I hope this is related enough for this thread, but I'm curious why people didn't seem to unanimously jump into 2.5 upon release. One

[Tutor] about reload

2006-12-29 Thread linda.s
I read something about reload of modules. #test.py from ABC import M # M is an attribute of Module ABC if I change module ABC, I need import ABC and reload ABC before "from ABC import M" work. in IDLE, I just click F5 and run the code, it works and does not need type anything like "Import ABC", "R

Re: [Tutor] about reload

2006-12-29 Thread Danny Yoo
On Fri, 29 Dec 2006, linda.s wrote: > I read something about reload of modules. > #test.py > from ABC import M # M is an attribute of Module ABC > > if I change module ABC, I need import ABC and reload ABC before "from > ABC import M" work. in IDLE, I just click F5 and run the code, it works >

Re: [Tutor] about reload

2006-12-29 Thread Luke Paireepinart
Danny Yoo wrote: > On Fri, 29 Dec 2006, linda.s wrote: > > >> I read something about reload of modules. >> #test.py >> from ABC import M # M is an attribute of Module ABC >> >> if I change module ABC, I need import ABC and reload ABC before "from >> ABC import M" work. in IDLE, I just click F5

[Tutor] Best way to learn python

2006-12-29 Thread Daniel kavic
What is the best way for someone who is not very efficient in mathematics to learn Python, I was turned away from C++ and others because of the math issue. Ruby has been recommended as well. ___ Tutor maillist - Tutor@python.org http://mail.python.

Re: [Tutor] Best way to learn python

2006-12-29 Thread Rob Andrews
I'm not exactly a math guru, either, but know some algebra & geometry from school. When I first tried my hand at Python, I started with just the tutorial bundled with the Python download. I had been taken a semester in Pascal & tinkered with Perl & Java at that point, and found Python to be simpl

Re: [Tutor] Best way to learn python

2006-12-29 Thread Alan Gauld
"Daniel kavic" <[EMAIL PROTECTED]> wrote > What is the best way for someone who is not very efficient in > mathematics to learn Python, You don't need math to program, but it definitely helps and for some problems is essential. But the level of math required is not high, definitely sub coll

Re: [Tutor] about reload

2006-12-29 Thread Danny Yoo
> Actually, if you have IDLE in the default setup on Windows and you > right-click something to edit it, > IDLE doesn't open a subprocess each time a script is executed, so it > will keep the imports in between runs of the program. Hi Luke, Ah, thanks for the correction. _

Re: [Tutor] XML-RPC data transfers.

2006-12-29 Thread Chris Hengge
I might have been unclear, or this tid-bit might have been lost in the thread... but I'm trying to send directly from ImageGrab.Grab(), without saving the data as a file. Thats where I'm getting hung... If it try to send an actual stored file, I have no problem. Is this maybe impossible? My though

Re: [Tutor] about reload

2006-12-29 Thread linda.s
On 12/29/06, Danny Yoo <[EMAIL PROTECTED]> wrote: > > Actually, if you have IDLE in the default setup on Windows and you > > right-click something to edit it, > > IDLE doesn't open a subprocess each time a script is executed, so it > > will keep the imports in between runs of the program. > > Hi Lu