Jump to ratings and reviews
Rate this book

Python Unlocked

Rate this book
Python is a versatile programming language that can be used for a wide range of technical tasks―computation, statistics, data analysis, game development, and more. Though Python is easy to learn, it's range of features means there are many aspects of it that even experienced Python developers don't know about. Even if you're confident with the basics, its logic and syntax, by digging deeper you can work much more effectively with Python – and get more from the language. Python Unlocked walks you through the most effective techniques and best practices for high performance Python programming - showing you how to make the most of the Python language. You'll get to know objects and functions inside and out, and will learn how to use them to your advantage in your programming projects. You will also find out how to work with a range of design patterns including abstract factory, singleton, strategy pattern, all of which will help make programming with Python much more efficient. Finally, as the process of writing a program is never complete without testing it, you will learn to test threaded applications and run parallel tests. If you want the edge when it comes to Python, use this book to unlock the secrets of smarter Python programming. Arun Tigeraniya has a BE in electronics and communication. After his graduation, he worked at various companies as a Python developer. His main professional interests are AI and Big Data. He enjoys writing efficient and testable code, and interesting technical articles. He has worked with open source technology since 2008. He currently works at Jaarvis Labs Limited, India.

172 pages, Paperback

Published December 30, 2015

6 people want to read

About the author

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
0 (0%)
4 stars
1 (12%)
3 stars
1 (12%)
2 stars
5 (62%)
1 star
1 (12%)
Displaying 1 - 3 of 3 reviews
Profile Image for Jascha.
151 reviews
July 10, 2016
And yet another Python book. Being such a clean and flexible has brought this 20 years old programming language to be one of the hottest ones out there. Like it or not, most of the active repositories on GitHub are on Python. This is also confirmed by multiple sources listing the most demanded programming languages in the IT world. We Pythonists are lucky because, apart from a nice documentation, there is plenty of books to pick from, even though most of them cover basic features of the language. Python Unlocked does not belong to this large group of titles and focuses itself on internediate topics.

Released at the end of 2015, Python Unlocked is a short book targeting that niche of Pythonists interested in intermediate to advanced topics, such as decorators, abstract classes and unit testing.

Let's dive into the content!

The very first things that comes to the eye of the reader is poor english writing skills. True, Packt Publishing does not offer authors any kind of proofreading service but someone should at least check if articles are present. The reader, sometimes after a second pass through the sentecne, can still grasp what the author wanted to say, but this definitely lowers the overall quality of the title.

English apart, the choice of topics somehow got me raising an eyebrow in doubt: abstract classes are definitely a subject an itnermediate Python developer wants to know of, but the MRO is probably misplaced here. Unless you are going to work in the core of the language itself, and are smart enough to prefer mixins to multiple inheritance, you can definitely live without knowing about it.

Unnecessary complexities are present everywhere. So are unclear explainations. For example, the book starts discussing the internals of an object. The author states When an attribute is searched in an object first, it is searched in its dictionary then its type's (base class's) dictionary. Fine, but what is that __dict__ that I see everywhere? Either you introduce me to it, and explain me what it is or, if I am supposed to know what it represents already then the whole chapter is superfluous.

Let's continue. Decorators are callable objects, which replace the original callable objects with some other objects. This is not correct. A decorator can replace the original callable with another one, but it must not. No words about decorators with a variable number of arguments, which is a very interesting aspect of decorators. Only later on, paged ahead, the author dedicates a couple of lines explaining functools.wrap.

The examples are usually very short, Hello world! like pieces of code, whose functions are given names like f1, f2 and foo and whose body does little more than print('adf').

Overall, a poor effort. The concepts are not properly explained and the examples are too short and focused on unnecessary complexities. Anyone interested in itnermediate to advanced Python topics should pick any of the following titles, instead:

Fluent Python
Essential Python

As usual, you can find more reviews on my personal blog: books.lostinmalloc.com. Feel free to pass by and share your thoughts!
12 reviews1 follower
Read
August 2, 2019
First, 4 chapters are just Python basics that are better covered elsewhere. I really liked the TDD chapter and optimization with C. There are also some implementation of popular design patterns
Profile Image for Alberto.
315 reviews15 followers
August 30, 2021
The first four chapters are crap. The rest of the book is ok, I guess. Chapter 5 on design patterns is probably the only part worth reading.
Displaying 1 - 3 of 3 reviews

Can't find what you're looking for?

Get help and learn more about the design.