Re: [Tutor] Tutor Digest, Vol 27, Issue 12

2006-05-04 Thread Philip Smith
I would like to make my programme >> generally available - in every other respect its near complete and >> massively outperforms the only other comparable pure python module >> (nzmath) which does the same job. >> >> Thanks in anticipation. >> >> Phil &

Re: [Tutor] Memory Management etc

2006-05-04 Thread Philip Smith
Hi Thanks for response. I'm pretty sure for one reason and another that hardware is not at fault. I use the windows monitor to track memory usage. I must say I hadn't realised that Python doesn't release memory back to the OS - someone else advised me to try the alpha 2.5 version which cures

Re: [Tutor] sockets

2006-05-04 Thread János Juhász
Hi Matt, the traceroute can be done from the client side or eigther from the server side. The two ones should give the same result with reverse order. In this case you can do the tracerouting from the server side when the client ask it. I am just thinking about a simple finger deamon, that can d

Re: [Tutor] Memory Management etc

2006-05-04 Thread Philip Smith
Hi Thanks for response. Tried this both in IDE and DOS window including under pdb. No docstrings used at present. -i option won't help either as the machine generally reboots - python reports no problems at all. The reason I think it is memory is that the amount of memory available to the p

Re: [Tutor] sockets

2006-05-04 Thread Hugo González Monteverde
Matt Richardson wrote: > I need to send some data, 2 strings and a list, to a remote computer. > After thinking about it some last night, it wouldn't be hard to just > send it all as a string and then parse it on the receiving end. Well if the excercise itself is not parsing a string, you can ju

[Tutor] HELP: using popen2/popen3

2006-05-04 Thread Jerome Jabson
Hello, I'm trying to start a shell script from my python script using os.spawnlp. But I'm not getting msgs from stderr. I thought that I could use popen2/popen3 to replace os.spawnlp but I'm having problems with syntax and how to do this. Can someone point me in the right direction? Here's my orig

Re: [Tutor] Memory Management etc

2006-05-04 Thread Alan Gauld
> I use Activestate Python (2.4.3) in a Windows 32 bit environment. > > I have a problem with a large programme that uses a lot of memory > (numerous large arrays which are dynamically extended). > I keep getting unpredictable crashes (on a machine with 1/2 GB > memory) > whereas on my laptop (1 G

Re: [Tutor] sockets

2006-05-04 Thread Matt Richardson
Kent Johnson wrote: > > This would be very easy to do with XML-RPC. On the server side, writ a > function that takes three parameters - the IP address, MAC address, and > traceroute dump - and saves them to a database. Use SimpleXMLRPCServer > to expose the function. On the client side, gather

Re: [Tutor] Argument check

2006-05-04 Thread Ewald Ertl
Hi Gregor, Maybe the module traceback could help you here. It has same functions to extract the actual stack of the program. HTH Ewald Gregor Lingl wrote: > Hi all, > > I've a class with a lot of methods, for which I'd like to check argument > types. > To show you, what I mean, I've written

Re: [Tutor] Argument check

2006-05-04 Thread Kent Johnson
Gregor Lingl wrote: > Hi all, > > I've a class with a lot of methods, for which I'd like to check argument > types. You're not the first person to want to do this. You might be interested in these: http://www.artima.com/weblogs/viewpost.jsp?thread=155123 http://www.python.org/dev/peps/pep-0246

Re: [Tutor] Memory Management etc

2006-05-04 Thread Danny Yoo
> I have a problem with a large programme that uses a lot of memory > (numerous large arrays which are dynamically extended). I keep getting > unpredictable crashes (on a machine with 1/2 GB memory) whereas on my > laptop (1 GB memory) it seems OK. Hi Philip, Can you be more specific about wh

[Tutor] Argument check

2006-05-04 Thread Gregor Lingl
Hi all, I've a class with a lot of methods, for which I'd like to check argument types. To show you, what I mean, I've written a prototype I'm not really content with. It goes like this (a bit revised in order to have short codelines (*mail* ;-)): class BadArgError(Exception): def __init__(

Re: [Tutor] Python challenge

2006-05-04 Thread Jason Massey
David,What answer did you get?  One of the things to rember on the challenge is to take your answer and put ".html" (no qutoes) on the end of it in the url.So for the first problem the url would be: http://www.pythonchallenge.com/pc/def/.htmlOn 5/4/06, David Holland < [EMAIL PROTECTED]> wrote: I lo

[Tutor] Python challenge

2006-05-04 Thread David Holland
I looked at this and got stuck on the first one :- http://www.pythonchallenge.com/pc/def/0.html It says try changing the url. I assumed that it either meant 2*38 or 2 to the power of 38 but I can't see how to put either of those in the url.What have I missed ?Thanks in advance.David

Re: [Tutor] sockets

2006-05-04 Thread Kent Johnson
Matt Richardson wrote: > I need to send some data, 2 strings and a list, to a remote computer. > After thinking about it some last night, it wouldn't be hard to just > send it all as a string and then parse it on the receiving end. > > I'm writing a program for work (and for a class project, so

Re: [Tutor] sockets

2006-05-04 Thread Matt Richardson
I need to send some data, 2 strings and a list, to a remote computer. After thinking about it some last night, it wouldn't be hard to just send it all as a string and then parse it on the receiving end. I'm writing a program for work (and for a class project, so no answers!) that will provide s

Re: [Tutor] Memory Management etc

2006-05-04 Thread Kent Johnson
Philip Smith wrote: > Hi > > I use Activestate Python (2.4.3) in a Windows 32 bit environment. > > I have a problem with a large programme that uses a lot of memory > (numerous large arrays which are dynamically extended). I keep getting > unpredictable crashes (on a machine with 1/2 GB memo

Re: [Tutor] counting number of inputs (EARLIER VERSION SENT ACCIDENTLY)

2006-05-04 Thread MICHELLE EVANS
This is exactly what I am trying to do. I am so confused with trying to write this. I am not very familiar with any of the functions. I keep reading my book and reading my book, and none of it seems to make sense anymore. I can write extremely simple functions, but when I need to use more than

[Tutor] Memory Management etc

2006-05-04 Thread Philip Smith
Hi   I use Activestate Python (2.4.3) in a Windows 32 bit environment.   I have a problem with a large programme that uses a lot of memory (numerous large arrays which are dynamically extended).  I keep getting unpredictable crashes (on a machine with 1/2 GB memory) whereas on my laptop (1 G

[Tutor] UI developing

2006-05-04 Thread Alfonso
Hi, I'm starting with python on linux. I would like to make gtk user interfaces. Wich is the best option to do that? gtk-bindings, glade? If I want to port a program with gtk interface to windows, what should I use? Thank you very much for your attention. _

[Tutor] 2 Combo Boxes! What was I thinking?

2006-05-04 Thread John CORRY
Hi,   I have set up a GUI which has amongst other widgets two combo boxes.  I am using:   PythonCard version: 0.8.1 wxPython version: 2.6.1.0 Python version: 2.4.1 (#65, Mar 30 2005, 09:13:57) [MSC v.1310 32 bit (Intel)] Platform: win32 Glade 2   I started by setting up comboboxen