Chargement en cours…

Python unlocked : become more fluent in Python--learn strategies and techniques for smart and high-performance Python programming /

Détails bibliographiques
Cote:Libro Electrónico
Auteur principal: Tigeraniya, Arun (Auteur)
Format: Électronique eBook
Langue:Inglés
Publié: Birmingham : Packt Publishing, 2015.
Collection:Community experience distilled.
Sujets:
Accès en ligne:Texto completo
Table des matières:
  • Cover; Copyright; Credits; About the Author; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 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; Chapter 2: Namespaces and Classes; How referencing objects work
  • namespaces; Functions with state
  • closures; Understanding import and modules; Customizing imports; Class inheritance.
  • Method resolution orderSuper's superpowers; Using language protocols in classes; Iteration protocol; Context manager protocol; 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; Arrays/List; Binary tree; Sorted containers; Trie; Algorithms on scale; Summary; Chapter 5: Elegance with Design Patterns; Observer pattern; Strategy pattern; Singleton pattern; Template pattern.
  • Adaptor patternFacade 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; SWIG; CFFI; Cython; Summary; Chapter 8: Scaling Python; Going multithreaded; Using multiple processes; Going asynchronous; Scaling horizontally; Summary; Index.