Re: [Tutor] why different

2006-05-05 Thread linda.s
You are right. When I switch to python23 folder, it works.On 5/5/06, Danny Yoo <[EMAIL PROTECTED] > wrote:On Fri, 5 May 2006, linda.s wrote:> I have two drives. The python24 is installed in c: and the code is in d: > drive (d:\data).> so what I did is:> d:\data> c:\python24\python test.pyHi Linda,C

Re: [Tutor] Nested list comprehensions

2006-05-05 Thread Alan Gauld
> I am having trouble wrapping my mind around > nested list comprehensions I do too, and usually when that happens I take it as a sign that I'm being too clever for my own good. I unwrap things back to the point where my brain doesn't hurt anymore... I think I've only seen two or three nested com

[Tutor] Malcolm S Britton is out of the office.

2006-05-05 Thread Malcolm . S . Britton
I will be out of the office starting 05/05/2006 and will not return until 05/09/2006. I will respond to your message when I return. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Calling one python module from another

2006-05-05 Thread Danny Yoo
On Fri, 5 May 2006, Mitchel Carlsen wrote: > Is there an easy way to call on python module (called.py) from another > (calling.py)? I have been able to do this using 'rc = > os.system("called.py")' . Is this the suggested method? Hi Mitch, If you are looking for modules, you may want to ta

[Tutor] Calling one python module from another

2006-05-05 Thread Mitchel Carlsen
Is there an easy way to call on python module (called.py) from another (calling.py)?  I have been able to do this using 'rc = os.system("called.py")' .  Is this the suggested method?   Thanks, Mitch___ Tutor maillist - Tutor@python.org http://mail.py

Re: [Tutor] python cgi and html streams

2006-05-05 Thread Danny Yoo
> I was hoping for something magical like: > > gulp = cgi.StreamIO(" > http://www.foo.com/cgi-bin/responder.cgi?foo=hi&bar=there&bat=buddy";).read() > > ... but for some reason not one of the python creators foresaw that I might > one day need them to do all the thinking, typing and other hard par

Re: [Tutor] why different

2006-05-05 Thread Danny Yoo
On Fri, 5 May 2006, linda.s wrote: > I have two drives. The python24 is installed in c: and the code is in d: > drive (d:\data). > so what I did is: > d:\data> c:\python24\python test.py Hi Linda, Can you copy and paste the code to test.py? I suspect that the code does not contain a necessar

Re: [Tutor] why different

2006-05-05 Thread linda.s
I have two drives. The python24 is installed in c: and the code is in d: drive (d:\data). so what I did is: d:\data> c:\python24\python test.py  On 5/5/06, Liam Clarke <[EMAIL PROTECTED]> wrote: Hi,Can you please copy and paste the code here? Also, can you pleaseclick on Start, select Run, and type

[Tutor] python cgi and html streams

2006-05-05 Thread doug shawhan
I've been a-googling for examples or information on recieving and parsing html streams in a cgi script. I need to send a request like: ''http://www.foo.com/cgi-bin/responder.cgi?foo=hi&bar=there&bat=buddy&identifier=myname" to a remote server which will then stream a response to my script, simil

Re: [Tutor] Nested list comprehensions

2006-05-05 Thread Kent Johnson
John Clark wrote: > Hello Tutors, > > I am having trouble wrapping my mind around nested list > comprehensions and am hoping that someone can either verify my > thinking or provide insight as to what I am doing wrong. > > If I weren't trying to use list comprehensions, I would > code this as: >

[Tutor] Nested list comprehensions

2006-05-05 Thread John Clark
Hello Tutors, I am having trouble wrapping my mind around nested list comprehensions and am hoping that someone can either verify my thinking or provide insight as to what I am doing wrong. I have a list of objects C1 and each object in the list has a method m() that will return a list of sub

Re: [Tutor] why different

2006-05-05 Thread Liam Clarke
Hi, Can you please copy and paste the code here? Also, can you please click on Start, select Run, and type cmd.exe, and in the new window that opens type the following command: C:\>echo %PATH% and then right click, select Mark, select the text that was outputted and press enter to copu it and pa

Re: [Tutor] Memory Management etc

2006-05-05 Thread Liam Clarke
There's a specific Python gotcha involving memory allocation and pymalloc, that'll manifest with large amounts of integers. http://evanjones.ca/python-memory.html And, according to that article, it's as Kent said, fixed in 2.5 :) Regards, Liam Clarke On 5/5/06, Alan Gauld <[EMAIL PROTECTED]> w

Re: [Tutor] Memory Management etc

2006-05-05 Thread Liam Clarke
Oh dear, I see Kent already posted that linked. Haha. On 5/6/06, Liam Clarke <[EMAIL PROTECTED]> wrote: > There's a specific Python gotcha involving memory allocation and > pymalloc, that'll manifest with large amounts of integers. > > http://evanjones.ca/python-memory.html > > And, according to t

[Tutor] why different

2006-05-05 Thread linda.s
I run a code, which import Numeric module. When I run the code from PythonWin, it is OK. But when I run it from the command line, it reported "Importerror: No Module named Numeric." Why the systems perform differently? Linda ___ Tutor maillist - Tutor@

Re: [Tutor] Memory Management etc

2006-05-05 Thread Alan Gauld
> realised that Python doesn't release memory back to the OS - someone > else That's not at all unusual. In fact in most Unices no program ever releases memory to the OS - one reason you should be very careful when writing daemon processes! One advantage of this approach is that it speeds up mem

Re: [Tutor] Memory Management etc

2006-05-05 Thread Alan Gauld
> The reason I think it is memory is that the amount of memory > available to the programme is the only variable - I'm using two > identical hardware/software environments apart from this. I assume from this that you have explicitly turned off virtual memory on both machines? > crashes on anyth