简体   繁体   中英

Python Cookbook is for Python 2.4

Python Cookbook 2nd edition is updated for Python 2.4. Is it still ok to study the book using Python version 2.5 or 2.6?

Python 2.4 is too old. In my opinion it will worth the time and money to find a more recent resource, especially if your time is limited. More recent books will also cover changes in the libraries, including advances in python web app development, which I don't expect to find in aged resources. Especially for a cookbook, which includes solutions to common problems, being up-to-dated is important.

May I also say that Python is now in version 3, where major changes have been introduced. It will be beneficial to study Python 3, even if you are only planning to use 2.x versions. A great online resource is of course Dive into Python .

当然,尽管2.4现在已经很老了-并没有太多改变,并且有什么改变,您可以在Python新增功能丛书中进行回顾。

I would say yes. There have been a few big changes since 2.4, but most if not all of the Cookbook will still apply. It also gives you a good idea of idiomatic python.

It depends on what you want to learn out of the book.

Let me guess that you are a newbie. If you are not new to programming (probably you are not, you are in SO), then the 2.4 cookbook will be fine. There would be a few changes in the later versions to catch up with, the ones that simplify code and introduce new idioms and help you do things in a better/cleaner way, but you can pick them up later on.

If you are new to programming, then may be you should pick up something more recent. It is important to pick up clean coding habits and know your community's idioms.

I find it's a useful reference and still use it. It's full of good general tips and advice much of which still applies to the newer versions of Python. That said, I'd save money and get a used copy.

I found an online version here: http://flylib.com/books/en/2.9.1.2/1/

Well you can always start with Byte of Python OpenSource Doument Small Precise and to the Point Description. here the link :

Regards

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM