Re: [Tutor] Can my code be optimized any further (speed-wise)?

2006-10-07 Thread Geoframer
Erm i made a typo   Sample input should ofcourse be without the '!''s   So input = 5 3 5 50 100 125   Sorry - Geoframer  On 10/8/06, Geoframer <[EMAIL PROTECTED]> wrote: The problem is that these assignments are evaluated automatically. So i can not use description strings to clearify output or in

Re: [Tutor] Can my code be optimized any further (speed-wise)?

2006-10-07 Thread Geoframer
The problem is that these assignments are evaluated automatically. So i can not use description strings to clearify output or input etc.   Basically it's like this:   a = the number of times i'm going to read input to evaluate lst = the factors of 5. I.e. (5, 5^2, 5^3, 5^4 etc) until the last

Re: [Tutor] Can my code be optimized any further (speed-wise)?

2006-10-07 Thread Alan Gauld
Hi, Maybe its just me but I didn't understand what you are trying to do... > The problem is to compute the number of trailing zero's in > factorials (n! = > 1*2*3*4*...*n). with n <= 10 > > My solution is as follows (a = times to read a number (b) to > process) : > > ---

Re: [Tutor] error help

2006-10-07 Thread Chris Smith
Thanks for the help. That was the problem. I guess I'd been looking at it so long I missed that. The error message wasn't helping me either. Chris Smith Geoframer wrote: > The main problem from what i can tell is that the number of '(' and ')' > you use in declarations (and maybe even functions

Re: [Tutor] error help

2006-10-07 Thread Geoframer
The main problem from what i can tell is that the number of '(' and ')' you use in declarations (and maybe even functions) are not correct.Take for instance :u0prime  = beta*(sqrt(d**2 +(h +length1)**2) - h +length1)) You open 3 '(' and close 4 ')' .The problem is not the little test code at the en

[Tutor] Can my code be optimized any further (speed-wise)?

2006-10-07 Thread Geoframer
Hi everyone,The last few days i've been learning python and have been doing this by trying to solve problems for a programming competition.One particular problem is bugging me. I have already solved it but my solution does not compute in the set time-condition. I know for a fact that this particula

Re: [Tutor] python RMI

2006-10-07 Thread Ivan Furone
Il 07/10/06, Alan Gauld <[EMAIL PROTECTED]> ha scritto: PS. Any Italian speakers on the list who can cover this?I think I can as far it's possible,Alan! :-)  "Picio" <[EMAIL PROTECTED]> wrote in messagenews:[EMAIL PROTECTED]Salve,dovrei usare python per due progettini universitari, su RMI e l'altro

[Tutor] error help

2006-10-07 Thread Chris Smith
I'm writing a numerical program for an assignment at school. So the code of my program isn't too long I've coded the formulas, which are rather long, as funcions. However when I try to run my program I keep getting one of two errors. The first happens when I do a test run of my code with the te

Re: [Tutor] python RMI

2006-10-07 Thread Kent Johnson
Picio wrote: > Salve, > dovrei usare python per due progettini universitari, su RMI e l'altro > sui Web Services. You might have better luck asking in it.comp.lang.python: http://groups.google.com/group/it.comp.lang.python Kent ___ Tutor maillist - T

Re: [Tutor] python RMI

2006-10-07 Thread Alan Gauld
Non parlo l'italiano in modo da l'per mezzo dei mezzi di traduzione di Google. Il Python offre parecchi attrezzi per i servizi di fotoricettore compreso sostegno XML/RPC e SOAP http://docs.python.org/lib/module-xmlrpclib.html http://soapy.sourceforge.net/ Potete essere più specifici circa di ch

Re: [Tutor] Point in polygon intro please~!

2006-10-07 Thread Kent Johnson
Michael Shulman wrote: > Hello, I'm very new to both python and OpenGL, but I'm catching on > pretty quick, > and trying to make a little game. I'm stuck on being able to do this > point-in-polygon test though. > Everyone seems to say that I should create a ray and see how many sides > of a po

[Tutor] python RMI

2006-10-07 Thread Picio
Salve, dovrei usare python per due progettini universitari, su RMI e l'altro sui Web Services. Ho notato che esiste PyRO, preferirei però sentire voi sull'argomento: cosa uso per l'RMI (esiste qualche libreria,modulo) cosa uso per i Web Services Accetto anche suggerimenti tipo "dai un'occhiat

Re: [Tutor] when I create an instance of a class that inherits from Python dictionary, my data disappears

2006-10-07 Thread Kent Johnson
Bob Gailer wrote: > [EMAIL PROTECTED] wrote: >> hi all, I would like to create a class that specializes Python >> dictionary. I would like an instance of this class to store objects >> representing html form data, and I would like to have an instance of >> this Data_Set class be able to use the

[Tutor] Point in polygon intro please~!

2006-10-07 Thread Michael Shulman
Hello, I'm very new to both python and OpenGL, but I'm catching on pretty quick, and trying to make a little game. I'm stuck on being able to do this point-in-polygon test though. Everyone seems to say that I should create a ray and see how many sides of a polygon it intersects, (even vs odd)