Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
The new Python Cookbook is out (amazon.com)
112 points by pydanny on May 29, 2013 | hide | past | favorite | 32 comments


The Python Cookbook has been a great resource in both of the previous editions. I've been following Dave's pain in writing this on twitter, so I have no doubt that this one will be the same. This is a "must have" on any python hacker's bookshelf!


Is this a good book for someone that uses the language for quite some time, but never studied it deeply?

I'm looking for something like 'Effective C++' (but for Python of course): a collection of recipes and good practices that would allow an experienced programmer make a better use of the language.


Well, what kind of book has a collection of recipes? A cookbook, right? :-)

I haven't used any edition of the Python cookbook, but I've used the Perl cookbook and it's just like you described. I have also heard and read that the O'Reilly cookbooks are known (famous even?) for being the kind of books that you described.


Martelli's Python in a nutshell is the best I have seen on python. Not a cookbook, more of a reference, but this guy is extremely precise and rereading is always deepening my understanding of python.


Unfortunately, the most recent edition only covers 2.4 & the at-the-time proposed 2.5.

The best equivalent now is the language reference at python.org.


Yes, absolutely. There are a multitude of hidden gems in this book.


Second the must have. I used it to get back into Python after a while. I was able to go through the rough cuts version on Safari Online and it's amazing. Poses a problem then gives you a straightforward, elegant solutions.


When will the Kindle edition be 3rd?


You can get a mobi or other ebook format from O'Reilly right now: http://shop.oreilly.com/product/0636920027072.do


Congratulations to David Beazley!


A bit strange that it costs $28.91 on Amazon.com but £38.50 on Amazon.co.uk.



Thanks - purchased through amazon.com for £28 with shipping. amazon.co.uk would have been £38 and apparently taken longer to deliver.


Or just go to bookdepository.

Seeing it for ~€30, which is ~£25


I write a lot of code in C# and am just starting to learn how to use the latest async tools in the language. There are now built-in parallel sorting implementations [1]. So I looked for similar recipes in this book. I see on page 512 something called ProcessPoolExecutor() which looks promising...

1. http://msdn.microsoft.com/en-us/library/dd460688.aspx


O'Reilly is selling the ebook for more than Amazon is selling the print book: http://shop.oreilly.com/product/0636920027072.do


And they are pretentious enough to say "Save a tree - Go digital"


I love Python's philosophy. But i always prefer Rails for my web projects. Maybe i'm addicted to Ruby and Rails. Could someone show me the way to be additecd to Python ?


Use pyramid. It's exceptionally well designed. It has very sensible defaults out of the box, but literally everything about the framework is swappable if you need it to be.

I can't comment on rails, but I spent quite a long time with django before switching to repoze-bfg (pyramid's previous name). In my experience you don't hit the same wall that you tend to with django when you need to step off the the common path.


https://news.ycombinator.com/item?id=5247393 I like python so I use Django. I think Django was always on a better path security wise due to some good decisions early on.


Udacity's Web Development course is what got me addicted to python. It teaches you how to build a blog using python + google's app engine.


Affiliate linked I see.


I didn't know this was something you weren't supposed to do. Seriously, if I could delete this link, I would.

If this is a problem, I'll donate all proceeds to the charity of your choice. I'll post images of how much is earned.


That's very kind. I have a better suggestion though: How about you distribute the proceeds in proportion to the total points of authors with upvoted posts suggesting that people go any buy the book? My comment above has two points already!

Even better - the algorithm you write could go into the 4th edition of the Cookbook :-)

P.S. Everyone should go any buy the book. (I want this comment to count too!)


Great idea, but it turns out to be not that much was to be had by the amount of grief and shame I've accumulated: just $66.66 so far.

I seriously need to write down a list of "unwritten rules that get you spanked". :P


I believe moderators can edit links, no idea how to reach them though.


Let me see what I can do on my end. Again, I'm willing to give all proceeds to the PSF or whoever.

Are there published guidelines on this or is this one of those unwritten rules I've stumbled into?


It's general courtesy to provide the original link first, and then offer an affiliate link as an option. In a community suck as HN, anyhow. I don't have problem giving you commish by any means. Enjoy.


Pretty sure it's an unwritten rule thing.


No worries. I think it's usually considered bad form on news aggregators.


So? It's relevant, it's not like the user is just spamming HN to get affiliate hits.


Just ordered this, based on the previous editions feedback.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: