万本电子书0元读

万本电子书0元读

顶部广告

Python Unlocked电子书

售       价:¥

23人正在读 | 0人评论 9.8

作       者:Arun Tigeraniya

出  版  社:Packt Publishing

出版时间:2015-12-30

字       数:30.2万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
Become more fluent in Python—learn strategies and techniques for smart and high-performance Python programming About This Book Write smarter, bug-free, high performance code with minimal effort Uncover the best tools and options available to Python developers today Deploy decorators, design patters, and various optimization techniques to use Python 3.5 effectively Who This Book Is For If you are a Python developer and you think that you don’t know everything about the language yet, then this is the book for you. We will unlock the mysteries and re-introduce you to the hidden features of Python to write efficient programs, making optimal use of the language. 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 In Detail 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. Style and approach This is book had been created to help you to “unlock” the best ways to tackle the challenges and performance bottlenecks that many Python developers face today. The keys are supported with program examples to help you understand the concepts better and see them in action.
目录展开

Python Unlocked

Table of Contents

Python Unlocked

Credits

About the Author

About the Reviewers

www.PacktPub.com

Support files, eBooks, discount offers, and more

Why subscribe?

Free access for Packt account holders

Preface

What this book covers

What you need for this book

Who this book is for

Conventions

Reader feedback

Customer support

Downloading the example code

Errata

Piracy

Questions

1. Objects in Depth

Understanding objects

Identity

Value

Type

Making calls to objects

How objects are created

Creation of function objects

Creation of instances

Creation of class objects

Playing with attributes

Descriptors

Class, static, and instance methods

Summary

2. Namespaces and Classes

How referencing objects work – namespaces

Functions with state – closures

Understanding import and modules

Customizing imports

Class inheritance

Method resolution order

Super's superpowers

Using language protocols in classes

Iteration protocol

Context manager protocol

Using abstract classes

Summary

3. Functions and Utilities

Defining functions

Decorating callables

Utilities

Summary

4. Data Structures and Algorithms

Python built-in data structures

Python library data structures

Third party data structures

Arrays/List

Binary tree

Sorted containers

Trie

Algorithms on scale

Summary

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

6. Test-Driven Development

Mock for tests

Parameterization

Creating custom test runners

Testing threaded applications

Running test cases in parallel

Summary

7. Optimization Techniques

Writing optimized code

Profiling to find bottlenecks

Using fast libraries

Using C speeds

SWIG

CFFI

Cython

Summary

8. Scaling Python

Going multithreaded

Using multiple processes

Going asynchronous

Scaling horizontally

Summary

Index

累计评论(0条) 3个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部