Python Cookbook, Third Edition 3rd Edition by David Beazley (PDF)

2

 

Ebook Info

  • Published: 2013
  • Number of pages: 704 pages
  • Format: PDF
  • File Size: 9.44 MB
  • Authors: David Beazley

Description

If you need help writing programs in Python 3, or want to update older Python 2 code, this book is just the ticket. Packed with practical recipes written and tested with Python 3.3, this unique cookbook is for experienced Python programmers who want to focus on modern tools and idioms.Inside, you’ll find complete recipes for more than a dozen topics, covering the core Python language as well as tasks common to a wide variety of application domains. Each recipe contains code samples you can use in your projects right away, along with a discussion about how and why the solution works.Topics include:Data Structures and AlgorithmsStrings and TextNumbers, Dates, and TimesIterators and GeneratorsFiles and I/OData Encoding and ProcessingFunctionsClasses and ObjectsMetaprogrammingModules and PackagesNetwork and Web ProgrammingConcurrencyUtility Scripting and System AdministrationTesting, Debugging, and ExceptionsC Extensions

User’s Reviews

Editorial Reviews: About the Author David Beazley is an independent software developer and book author living in the city of Chicago. He primarily works on programming tools, provide custom software development, and teach practical programming courses for software developers, scientists, and engineers. He is best known for his work with the Python programming language, for which he has created several open-source packages (e.g., Swig and PLY) and authored the acclaimed Python Essential Reference. He also has significant experience with systems programming in C, C++, and assembly language.Brian K. Jones is a system administrator in the department of computer science at Princeton University.

Reviews from Amazon users which were colected at the time this book was published on the website:

⭐I already have the print version of this book, and like it a lot. It’s full of very instructive examples that you can study and learn from.I bought the Kindle edition in January 2019 wondering if it had a table of contents, as some people said, no, it didn’t.First of all, I wouldn’t even try to read the Kindle edition on my Kindle Paperwhite, since the screen is too small and the contrast is not great. Instead, I read it on the Kindle for PC Windows program, and the book is easy to read, including the code examples (this is on a 24″ monitor).I can report that when read on the Kindle PC program, the inline text in the main window does not include a text version of the table of contents. However, on the left side of the Kindle PC program, if you click the icon for “table of contents”, a full clickable and expandable table of contents appears in a narrow window to the left of the main text window. This is fully usable as a table of contents, and makes for very easy browsing. There is also a full clickable index at the end of the main body of text. The page numbers in my Kindle edition correspond exactly with the page numbers in my printed version. Another Kindle for PC plus: the example code uses color for syntax highlighting, which is nice.Edit: Upon further browsing, if you go to the very end of the main text window, there is a clickable text version of the table of contents. It’s not so useful at the very end of the document – the left-side table of contents window is much more convenient. This is in the Kindle for PC Windows program.

⭐Python Cookbook goes in depth on a variety of different Python topics. Each section is similar to a question that might be asked on Stack Overflow. The recipes range in difficulty from easy to advanced metaprogramming.One particular recipe that I liked was 9.1 on how to time a function. When I am using Python I often need to time the code, and usually I need to look up how to do it. This example created a decorator function for timing. It makes it so that you can just put @timethis on top of a function and see how long it takes to execute. I appreciated how elegant this solution was as opposed to the way I was implementing it.Most examples are self contained and all the code examples that I tried worked. Additionally, there is a GitHub that the authors created which provides all the code for the examples if you do not want type it yourself. The examples themselves were applied to real world problems; I could see how the recipe was used clearly. When the authors felt they could not provide an entire solution in the text, they point the correct place to visit online.The range in topics was impressive. I found the most challenging chapters to be 9, 12, and 15 which were on metaprogramming, concurrency, and C Extensions. At the beginning of the book the recipes cover topics you would expect like data structures and algorithms, strings, and generators. I found myself surprised that I had not seen a lot of the techniques and solutions before. They were well crafted solutions, and I appreciated how much time and detail the authors must have spent to gather the information.This is a great reference to have by your side when programming in Python.

⭐Honestly, the best book on Python I’ve seen (4 years experience, myself). David Beazley is hands down my favorite “instructor,” and I’m re-purchasing the book because I destroyed my old one from highlighting/writing etc all over it.What’s great are the little explanations of specific stuff and the details that provide a great background-info (like when you’d want to specifically use type.__init__ and not type.__new__ in a metaclass,), and will give full examples, even to a “ridiculous” end to show how it can be done (ie super complicated single meta programming call vs piecemeal with decorators), but since it does the same thing it helps to illustrate that there’s usually an alternative way to do a very specific thing if you need it.P.S. check out the authors webpage as he has pdf and slides of great info/resources. It’s just as useful (Though not as broad) as the book.P.P.S. if you’re looking at other books, I don’t recommend the “essential python reference.” You’d be just as good with the general docs.

⭐The Active State repository of Python recipes includes many gems, but as the Authors observe in their preference: “most of these recipes are steeped in history and the past”. I’d add that the signal to noise ratio seems to be decreasing. The most prolific contributors (with the exception of Raymond Hettinger) have posted trivial examples rather than recipes. This book includes some simple examples too, but it’s always in the context of a larger message. Excellent content and advice without the chaff.I just bought this today. Unlike some early technical Kindle books I’ve purchased, the formatting is excellent. Kudos to the authors and publisher. But when I first browsed the content with Kindle-Android on my 7″ tablet (Nexus), I still found it frustrating to read. Next, I tried my laptop with a 14″ screen – better. And then tried it on my PC with a large monitor and found reading and jumping around the content much more productive and pleasurable. Switched back to the tablet, I changed the text settings to minimums for font size, margin size, line spacing and entered full-screen mode. Result: much better! That said, I still found the much larger screen area on my PC monitor preferable.Bottom Line: Buy this for great Python 3.3 code and advice in a flexible format.

⭐Being honest from all the programming books I’ve got O’Reilly books are the best. Always advanced level information yet you never feel troubled as a beginner. Most books on the market are targeting the quick corner fast track students, but O’Reilly books are more suitable if you want to be Senior dev in the future you should definetely purchase all related programming books with O’Reilly and absorbe all you can. The only thing I wish that they didn’t use a rat as cover to their python books. That cover gives me creep, otherwise I would add them to my basket without thinking 🙂

⭐This is another cook book of code snippets and explanations and covers Python 3 in this third edition.The book is structured in sections starting with the basic language constructs (variables, functions and so on), before getting into more detailed examples on classes, networking, Internet, concurrency and a good section on testing and debugging (all code must be well documented).As someone converting from PHP this has been a revelation in that each section of code snippets has a ‘discussion’ section to explain the ‘why’ as wel as the ‘how. Other books tell you what/how but rarely the ‘why’ as this does. Recommended.As it is a cook book, it’s not been read cover to cover but the possibility is there.

⭐I have more than 4 years of experience in python and I bought this book to help me increase my skill set in python. This book is only targeted for developers who have some experience in python as it tells the story behind different python modules and how and when to use them. It covers lots of interesting aspects of python. I will definitely recommend it for python developers.

⭐This is by far the best companion for a Python (3) developer. It contains so much recipes and so much advice that using it it’s just a pleasure. You are able to produce super elegant code, minimising the lines of code and maximising the code readability. I suggest it to everybody is already a bit proficient in Python and just wants to acquire more immediate and elegant way of coding. Let’s say this is a book for who really wants to produce beautiful pythonic code.

⭐looks good, but always to tired to learn, so use it as a tea coaster

Keywords

Free Download Python Cookbook, Third Edition 3rd Edition in PDF format
Python Cookbook, Third Edition 3rd Edition PDF Free Download
Download Python Cookbook, Third Edition 3rd Edition 2013 PDF Free
Python Cookbook, Third Edition 3rd Edition 2013 PDF Free Download
Download Python Cookbook, Third Edition 3rd Edition PDF
Free Download Ebook Python Cookbook, Third Edition 3rd Edition

Previous articleCellular Automata Modeling of Physical Systems (Collection Alea-Saclay: Monographs and Texts in Statistical Physics) by Bastien Chopard (PDF)
Next articleA Concise and Practical Introduction to Programming Algorithms in Java (Undergraduate Topics in Computer Science) 2009th Edition by Frank Nielsen (PDF)