Re: [Tutor] Very basic Python question

2009-06-26 Thread Daniel Sato
Oh, I thought that you could install multiple instances of Python. I recall reading somewhere that they advised installing the latest stable version b/c the one that comes with Apple is often out-dated (as it is whatever version existed when the your particular model came out). On Fri, Jun 26, 2

Re: [Tutor] Very basic Python question

2009-06-26 Thread Luke Paireepinart
Daniel Sato wrote: Hi, Let me preface this by saying that I purchased O'Reilly's "Learn Python" yesterday and have no programming experience (I am a photographer by trade) except for a semester of what I think was BASIC on some old apple back in elementary school (circa 1992). I am not sure

[Tutor] Very basic Python question

2009-06-26 Thread Daniel Sato
Hi, Let me preface this by saying that I purchased O'Reilly's "Learn Python" yesterday and have no programming experience (I am a photographer by trade) except for a semester of what I think was BASIC on some old apple back in elementary school (circa 1992). I am not sure what details are relevan

[Tutor] DOMForm

2009-06-26 Thread Pete Froslie
Hi, so I've been using Mechanize as suggested to me through tutor to access web forms and fill them out.. I've found some success though I wish there to be more documentation than docstrings.. as I am new to python and not incredibly experienced with code. I am able to fill forms and submit them i

Re: [Tutor] array and int

2009-06-26 Thread Kent Johnson
On Fri, Jun 26, 2009 at 2:28 PM, Dinesh B Vadhia wrote: > Say, you create an array['i'] for signed integers (which take a minimum 2 > bytes).  A calculation results in an integer that is larger than the range > of an 'i'.  Normally, Python will convert an 'i' to a 4-byte 'l' integer. > But, does th

[Tutor] array and int

2009-06-26 Thread Dinesh B Vadhia
Say, you create an array['i'] for signed integers (which take a minimum 2 bytes). A calculation results in an integer that is larger than the range of an 'i'. Normally, Python will convert an 'i' to a 4-byte 'l' integer. But, does the same apply for an array ie. does Python dynamically adjust

Re: [Tutor] newton's method for system of nonlinear equations

2009-06-26 Thread Skipper Seabold
On Fri, Jun 26, 2009 at 6:54 AM, wrote: > Hi, > I am trying to write a program in python that solves a system of nonlinear > equations using newton's method. I don't know what I am doing wrong. > Please help > > from scipy import* > > x = array([0.0,0.0,0.0]) > n=len(x) > tol= 0.1 > N=30 > > k

Re: [Tutor] newton's method for system of nonlinear equations

2009-06-26 Thread Dave Angel
kgotlele...@galmail.co.za wrote: Hi, I am trying to write a program in python that solves a system of nonlinear equations using newton's method. I don't know what I am doing wrong. Please help First thing wrong is posting two messages in the mailing list in rapid succession (7 minutes) wit

Re: [Tutor] newton's method for system of nonlinear equations

2009-06-26 Thread A.T.Hofkamp
kgotlele...@galmail.co.za wrote: Hi, I am trying to write a program in python that solves a system of nonlinear equations using newton's method. I don't know what I am doing wrong. > Please help In general, it helps for both you and us if you show what happens when you run the program, and how

Re: [Tutor] Hi,

2009-06-26 Thread bob gailer
Kgotlelelo Legodi wrote: Hi, I am trying to write a program in python that solves a system of nonlinear equations using newton's method. I don't know what I am doing wrong. Please help Mostly what you are "doing wrong" is failing to tell us why you think there is a problem! What results are

Re: [Tutor] (no subject)

2009-06-26 Thread Kent Johnson
On Fri, Jun 26, 2009 at 6:29 AM, Febin Ameer Ahsen wrote: > how to implement diff command showing  difference in box Here are some examples of using difflib to list differences: http://blog.doughellmann.com/2007/10/pymotw-difflib.html http://personalpages.tds.net/~kent37/blog/arch_m1_2004_06.html#

Re: [Tutor] creating a dict-like class - asigning variables... this one may take some thought ; )

2009-06-26 Thread John [H2O]
Thanks everyone, all of this feedback is valuable! -- View this message in context: http://www.nabble.com/creating-a-dict-like-class---asigning-variables...-this-one-may-take-some-thought--%29-tp23759398p24218879.html Sent from the Python - tutor mailing list archive at Nabble.com. __

[Tutor] Hi,

2009-06-26 Thread Kgotlelelo Legodi
Hi, I am trying to write a program in python that solves a system of nonlinear equations using newton's method. I don't know what I am doing wrong. Please help from scipy import* x = array([0.0,0.0,0.0]) n=len(x) tol= 0.1 N=30 k=1 while k <= N: def f(x): f= zeros((len(x)),flo

[Tutor] newton's method for system of nonlinear equations

2009-06-26 Thread kgotlelelok
Hi, I am trying to write a program in python that solves a system of nonlinear equations using newton's method. I don't know what I am doing wrong. Please help from scipy import* x = array([0.0,0.0,0.0]) n=len(x) tol= 0.1 N=30 k=1 while k <= N: def f(x): f= zeros((len(x)),float)

[Tutor] difflib (was: (no subject))

2009-06-26 Thread A.T.Hofkamp
Febin Ameer Ahsen wrote: how to implement diff command showing difference in box Don't implement diff yourself, use the difflib module instead. Albert ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] (no subject)

2009-06-26 Thread Febin Ameer Ahsen
how to implement diff command showing  difference in box ICC World Twenty20 England '09 exclusively on YAHOO! CRICKET http://cricket.yahoo.com___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor