Recommend Python book and compiler...

Post Reply
quantnoob
Posts: 0
Joined: Thu Jan 01, 2004 12:00 am

Recommend Python book and compiler...

Post by quantnoob »

I'm looking to get started with Python. What are your recommendations for a book and compiler on which to learn the language?
User avatar
signalseeker
Posts: 0
Joined: Thu Jan 01, 2004 12:00 am

Recommend Python book and compiler...

Post by signalseeker »

I could give you some very good tips, if you tell us what is your level of sophistication with programming.



compiler? :)
The dark is light enough.
User avatar
Tradenator
Posts: 0
Joined: Thu Jan 01, 2004 12:00 am

Recommend Python book and compiler...

Post by Tradenator »

See this [url=/Show%20Post.aspx?PostIDKey=24026]thread[/url] where I asked what seems to be similar questions, starting from scratch same as you.  In the end, I am using Enthought Python, Rpython and R.  Python is intended to be for a front end, and R is used for the time series tools in the zoo and tseries libraries.  I have improved the python code since I posted there, and intend to post a new set for people to use.



I bought Langtangen's book on python and have found that it would probably be more useful if I was on a linux box and had all stuff like gnuplot actually working.  In the end, I couldn't get most of the stuff he used to work on WinXP, so I bailed.  I still think it's a nice book, though.  Again, see that other thread for the reference.
User avatar
rod
Posts: 0
Joined: Thu Jan 01, 2004 12:00 am

Recommend Python book and compiler...

Post by rod »

I have been reading Mark Pilgrim's Dive into Python and I think it's a very good book.



To make it even better, a PDF version of the book plus all the code presented on the book are available for download for free Smiley



One day, all programming books will be like this *sigh*
"If I have not seen as far as others, it is because giants were standing on my shoulders." — Hal Abelson
User avatar
dgtvr
Posts: 0
Joined: Thu Jan 01, 2004 12:00 am

Recommend Python book and compiler...

Post by dgtvr »

Thank you for the link Rod!
User avatar
ast4
Posts: 0
Joined: Thu Jan 01, 2004 12:00 am

Recommend Python book and compiler...

Post by ast4 »

IIRC, you can use the terminal if you're on a UNIX system. Quantnoob, give me your email and I can send you a few books I have saved.
"Mathematicians are machines for turning coffee into theorems!"
User avatar
rod
Posts: 0
Joined: Thu Jan 01, 2004 12:00 am

Recommend Python book and compiler...

Post by rod »

This should be helpful:



List of Free Online Python Books



Python books and tutorials galore!
"If I have not seen as far as others, it is because giants were standing on my shoulders." — Hal Abelson
mingon
Posts: 0
Joined: Thu Jan 01, 2004 12:00 am

Recommend Python book and compiler...

Post by mingon »

Very much off topic, but here goes anyway, anyone could shed a light on how random is implemented in [b]scipy / numpy[/b] ? Google only told me this RNG is a Mersenne Twister, and any more details are much appreciated. Is Scipy / Numpy open source ?



Many thanks and please be kind, I have next to zero experience in Python.
User avatar
tristanreid
Posts: 0
Joined: Thu Jan 01, 2004 12:00 am

Recommend Python book and compiler...

Post by tristanreid »

Yes, they're both open source, distributed under the BSD license.



numpy is where random is implemented, with scipy using numpy. It implements the Mersenne Twister as the base implementation, but it provides mechanisms to override that with something that is actually...random.



So if you provide the same seed, you'll get the same 'random' sequence. If you don't provide a seed, it will ask the OS for one. If you've got hardware that generates random numbers, you can therefore get a truly random number by just not providing a seed. On a unix-type platform, this is the same as /dev/urandom or something like that. If you don't have special hardware, I think it's just going to use your system clock, but you can google to verify.



-t.
If you can make computers as smart as humans you will have invented a machine that can sing the words to the Flintstones tune but will forget to pay the phone bill.
mingon
Posts: 0
Joined: Thu Jan 01, 2004 12:00 am

Recommend Python book and compiler...

Post by mingon »

Thanks  TristandReid, that is very helpful.
Post Reply