Book description
Become an ace Python programmer by learning best coding practices and advance-level concepts with Python 3.5
About This Book
- Based on the latest stable version of Python (version 3.5)
- Creating well manageable code that will run in various environments with different sets of dependencies
- Packed with advanced concepts and best practices to write efficient Python code
Who This Book Is For
The book would appeal to web developers and Python programmers who want to start using version 3.5 and write code efficiently. Basic knowledge of Python programming is expected.
What You Will Learn
- Conventions and best practices that are widely adopted in the python community
- Package python code effectively for community and production use
- Easy and lightweight ways to automate code deployment on remote systems
- Improve your code's quality, reliability, and performance
- Write concurrent code in python
- Extend python with code written in different languages
In Detail
Python is a dynamic programming language, used in a wide range of domains by programmers who find it simple, yet powerful. Even if you find writing Python code easy, writing code that is efficient and easy to maintain and reuse is a challenge.
The focus of the book is to familiarize you with common conventions, best practices, useful tools and standards used by python professionals on a daily basis when working with code.
You will begin with knowing new features in Python 3.5 and quick tricks for improving productivity. Next, you will learn advanced and useful python syntax elements brought to this new version. Using advanced object-oriented concepts and mechanisms available in python, you will learn different approaches to implement metaprogramming. You will learn to choose good names, write packages, and create standalone executables easily.
You will also be using some powerful tools such as buildout and vitualenv to release and deploy the code on remote servers for production use. Moving on, you will learn to effectively create Python extensions with C, C++, cython, and pyrex. The important factors while writing code such as code management tools, writing clear documentation, and test-driven development are also covered.
You will now dive deeper to make your code efficient with general rules of optimization, strategies for finding bottlenecks, and selected tools for application optimization.
By the end of the book, you will be an expert in writing efficient and maintainable code.
Style and approach
An easy-to-follow guide that covers industry followed best practices in Python programming
Publisher resources
Table of contents
-
Expert Python Programming Second Edition
- Table of Contents
- Expert Python Programming Second Edition
- Credits
- About the Authors
- About the Reviewer
- www.PacktPub.com
- Preface
-
1. Current Status of Python
- Where are we now and where we are going?
- Why and how does Python change?
- Getting up to date with changes – PEP documents
- Python 3 adoption at the time of writing this book
- The main differences between Python 3 and Python 2
- Not only CPython
- Modern approaches to Python development
- Application-level isolation of Python environments
- System-level environment isolation
- Popular productivity tools
- Useful resources
- Summary
- 2. Syntax Best Practices – below the Class Level
- 3. Syntax Best Practices – above the Class Level
- 4. Choosing Good Names
- 5. Writing a Package
- 6. Deploying Code
- 7. Python Extensions in Other Languages
- 8. Managing Code
- 9. Documenting Your Project
- 10. Test-Driven Development
- 11. Optimization – General Principles and Profiling Techniques
- 12. Optimization – Some Powerful Techniques
- 13. Concurrency
- 14. Useful Design Patterns
- Index
Product information
- Title: Expert Python Programming - Second Edition
- Author(s):
- Release date: May 2016
- Publisher(s): Packt Publishing
- ISBN: 9781785886850
You might also like
book
Mastering Financial Pattern Recognition
Candlesticks have become a key component of platforms and charting programs for financial trading. With these …
book
Using Asyncio in Python
If you’re among the Python developers put off by asyncio’s complexity, it’s time to take another …
book
Machine Learning with Python for Everyone
The Complete Beginner's Guide to Understanding and Building Machine Learning Systems with Python will help you …
book
Python GUI Programming with Tkinter - Second Edition
Transform your evolving user requirements into feature-rich Tkinter applications Key Features Extensively revised with new content …