Computer Association of SIUE - Forums

CAOS Forums => Suggested Downloads => Topic started by: Kit on 2006-11-15T00:03:37-06:00 (Wednesday)

Title: Python Guide
Post by: Kit on 2006-11-15T00:03:37-06:00 (Wednesday)
If any of you are interested in learning more Python, and find that the actual documentation is a bit much to take in all at once, you might like this downloadable book:

A Byte Of Python (http://swaroopch.info/text/Byte_of_Python:Main_Page)
Title: Re: Python Guide
Post by: Rick Lynch on 2007-09-07T22:16:32-05:00 (Friday)
I like this book. It is easy to learn from.
Title: Re: Python Guide
Post by: Kit on 2007-09-07T23:25:22-05:00 (Friday)
Well I'm glad you like it!

(I'm also amazed you found this post haha)
Title: Re: Python Guide
Post by: Rick Lynch on 2007-09-08T01:11:51-05:00 (Saturday)
To be honest, I am also amazed, haha. Well, I guess it would help if the forums were a bit more updated... I think I just went to suggested downloads and it was one of the ones in the middle.
Title: Re: Python Guide
Post by: William Grim on 2007-09-08T02:20:06-05:00 (Saturday)
I haven't read that book on Python, but I do think the online tutorial (http://docs.python.org/tut/tut.html) is quite good.  It really gives you all the necessary info you need to get started right away, while leaving some of the more obscure facets of Python to you to determine from the other documents on the site.

Some things that should be mentioned about Python's current implementation:
1) In my own benchmarks, it can perform up to 300x slower for number crunching applications.
2) CPython (the primary Python distribution (http://python.org/download/)) is single-threaded, which means that multiple threads are simulated in a single-threaded environment.  This was good during the single-core days, but it is no longer true with the advent of multiple cores.
3) It uses reference counting for its garbage collector.  This can lead to issues such as memory leaks when your code calls native code that holds a reference to a Python object and then raises an exception before releasing the reference.  You should really be using RAII principles in native code, but that is beside the point.

However, having made those points, I just have to say I'm a Python fanboy.  Though, when Perl 6 gets released with its new object model and syntax, I might just zip over to there since they have a massive amount of libraries and probably some proper multithreading capabilities.
Title: Re: Python Guide
Post by: chopper on 2009-02-12T04:13:52-06:00 (Thursday)
This Python is interesting I might try to learn it but after my .net project finish.