Book description
Refine your Python programming skills and build professional-grade applications with this comprehensive guide
Key Features
- Create manageable code that can run in various environments with different sets of dependencies
- Implement effective Python data structures and algorithms to write optimized code
- Discover the exciting new features of Python 3.7
Book Description
Python is a dynamic programming language that's used in a wide range of domains thanks to its simple yet powerful nature. Although writing Python code is easy, making it readable, reusable, and easy to maintain is challenging. Complete with best practices, useful tools, and standards implemented by professional Python developers, the third edition of Expert Python Programming will help you overcome this challenge.
The book will start by taking you through the new features in Python 3.7. You'll then learn the advanced components of Python syntax, in addition to understanding how to apply concepts of various programming paradigms, including object-oriented programming, functional programming, and event-driven programming. This book will also guide you through learning the naming best practices, writing your own distributable Python packages, and getting up to speed with automated ways to deploy your software on remote servers. You'll discover how to create useful Python extensions with C, C++, Cython, and CFFI. Furthermore, studying about code management tools, writing clear documentation, and exploring test-driven development will help you write clean code.
By the end of the book, you will have become an expert in writing efficient and maintainable Python code.
What you will learn
- Explore modern ways of setting up repeatable and consistent development environments
- Package Python code effectively for community and production use
- Learn modern syntax elements of Python programming such as f-strings, enums, and lambda functions
- Demystify metaprogramming in Python with metaclasses
- Write concurrent code in Python
- Extend and integrate Python with code written in different languages
Who this book is for
This book will appeal to you if you're a programmer looking to take your Python knowledge to the next level by writing efficient code and learning the latest features of version 3.7 and above.
Table of contents
- Title Page
- Copyright and Credits
- Dedication
- About Packt
- Contributors
- Preface
- Section 1: Before You Start
-
Current Status of Python
- Technical requirements
- Where are we now and where we are going to?
- Why and how Python changes
- Being up-to-date with changes ­by following PEP documents
- Python 3 adoption at the time of writing this book
- The main differences between Python 3 and Python 2
- Not only CPython
- Useful resources
- Summary
- Modern Python Development Environments
- Section 2: Python Craftsmanship
-
Modern Syntax Elements - Below the Class Level
- Technical requirements
- Python's built-in types
- Supplemental data types and containers
- Advanced syntax
- Functional-style features of Python
- Function and variable annotations
- Other syntax elements you may not know of yet
- Summary
- Modern Syntax Elements - Above the Class Level
- Elements of Metaprogramming
- Choosing Good Names
- Writing a Package
- Deploying the Code
- Python Extensions in Other Languages
- Section 3: Quality over Quantity
- Managing Code
- Documenting Your Project
- Test-Driven Development
- Section 4: Need for Speed
- Optimization - Principles and Profiling Techniques
- Optimization - Some Powerful Techniques
- Concurrency
- Section 5: Technical Architecture
- Event-Driven and Signal Programming
- Useful Design Patterns
- reStructuredText Primer
- Other Books You May Enjoy
Product information
- Title: Expert Python Programming - Third Edition
- Author(s):
- Release date: April 2019
- Publisher(s): Packt Publishing
- ISBN: 9781789808896
You might also like
book
Expert Python Programming - Fourth Edition
Gain a deep understanding of building, maintaining, packaging, and shipping robust Python applications Key Features Discover …
book
Advanced Python Programming - Second Edition
Write fast, robust, and highly reusable applications using Python's internal optimization, state-of-the-art performance-benchmarking tools, and cutting-edge …
book
Learn Python Programming - Third Edition
Get up and running with Python 3.9 through concise tutorials and practical projects in this fully …
book
Python for Programmers
The professional programmer’s Deitel® guide to Python® with introductory artificial intelligence case studies Written for programmers …