Python Unlocked

Become more fluent in Python—learn strategies and techniques for smart and high-performance Python programming

Python Unlocked

This ebook is included in a Mapt subscription
Arun Tigeraniya

2 customer reviews
Become more fluent in Python—learn strategies and techniques for smart and high-performance Python programming
$0.00
$31.99
$39.99
$29.99p/m after trial
RRP $31.99
RRP $39.99
Subscription
eBook
Print + eBook
Start 30 Day Trial
Subscribe and access every Packt eBook & Video.
 
  • 4,000+ eBooks & Videos
  • 40+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 
Preview in Mapt

Book Details

ISBN 139781785885990
Paperback172 pages

Book Description

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.

Table of Contents

Chapter 1: Objects in Depth
Understanding objects
Making calls to objects
How objects are created
Playing with attributes
Summary
Chapter 2: Namespaces and Classes
How referencing objects work – namespaces
Functions with state – closures
Understanding import and modules
Class inheritance
Using language protocols in classes
Using abstract classes
Summary
Chapter 3: Functions and Utilities
Defining functions
Decorating callables
Utilities
Summary
Chapter 4: Data Structures and Algorithms
Python built-in data structures
Python library data structures
Third party data structures
Algorithms on scale
Summary
Chapter 5: Elegance with Design Patterns
Observer pattern
Strategy pattern
Singleton pattern
Template pattern
Adaptor pattern
Facade pattern
Flyweight pattern
Command pattern
Abstract factory
Registry pattern
State pattern
Summary
Chapter 6: Test-Driven Development
Mock for tests
Parameterization
Creating custom test runners
Testing threaded applications
Running test cases in parallel
Summary
Chapter 7: Optimization Techniques
Writing optimized code
Profiling to find bottlenecks
Using fast libraries
Using C speeds
Summary
Chapter 8: Scaling Python
Going multithreaded
Using multiple processes
Going asynchronous
Scaling horizontally
Summary

What You Will Learn

  • Manipulate object creation processes for instances, classes, and functions
  • Use the best possible language constructs to write data structures with super speed and maintainability
  • Make efficient use of design patterns to decrease development time and make your code more maintainable
  • Write better test cases with an improved understanding of the testing framework of Python and unittests, and discover how to develop new functionalities in it
  • Write fully-optimized code with the Python language by profiling, compiling C modules, and more
  • Unlock asynchronous programming to build efficient and scalable applications

Authors

Table of Contents

Chapter 1: Objects in Depth
Understanding objects
Making calls to objects
How objects are created
Playing with attributes
Summary
Chapter 2: Namespaces and Classes
How referencing objects work – namespaces
Functions with state – closures
Understanding import and modules
Class inheritance
Using language protocols in classes
Using abstract classes
Summary
Chapter 3: Functions and Utilities
Defining functions
Decorating callables
Utilities
Summary
Chapter 4: Data Structures and Algorithms
Python built-in data structures
Python library data structures
Third party data structures
Algorithms on scale
Summary
Chapter 5: Elegance with Design Patterns
Observer pattern
Strategy pattern
Singleton pattern
Template pattern
Adaptor pattern
Facade pattern
Flyweight pattern
Command pattern
Abstract factory
Registry pattern
State pattern
Summary
Chapter 6: Test-Driven Development
Mock for tests
Parameterization
Creating custom test runners
Testing threaded applications
Running test cases in parallel
Summary
Chapter 7: Optimization Techniques
Writing optimized code
Profiling to find bottlenecks
Using fast libraries
Using C speeds
Summary
Chapter 8: Scaling Python
Going multithreaded
Using multiple processes
Going asynchronous
Scaling horizontally
Summary

Book Details

ISBN 139781785885990
Paperback172 pages
Read More
From 2 reviews

Read More Reviews