Expert Python Programming : Become a Master in Python by Learning Coding Best Practices and Advanced Programming Concepts in Python 3.7 /
Expert Python Programming, Third Edition is a collection of valuable tips that will help you build robust and scalable applications in Python. These will help you become confident at solving challenging programming problems effectively.
主要作者: | |
---|---|
其他作者: | |
格式: | Licensed eBooks |
語言: | 英语 |
出版: |
Birmingham :
Packt Publishing, Limited,
2019.
|
版: | 3rd ed. |
叢編: | Community experience distilled.
|
在線閱讀: | https://search.ebscohost.com/login.aspx?direct=true&scope=site&db=nlebk&AN=2116999 |
書本目錄:
- Cover; Title Page; Copyright and Credits; Dedication; About Packt; Contributors; Table of Contents; Preface; Section 1: Before You Start; Chapter 1: 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; Why should I care?; The main syntax differences and common pitfalls; Syntax changes; Changes in the standard library
- Changes in data types and collections and string literalsThe popular tools and techniques used for maintaining cross-version compatibility; Not only CPython; Why should I care?; Stackless Python; Jython; IronPython; PyPy; MicroPython; Useful resources; Summary; Chapter 2: Modern Python Development Environments; Technical requirements; Installing additional Python packages using pip; Isolating the runtime environment; Application-level isolation versus system-level isolation; Python's venv; venv versus virtualenv; System-level environment isolation
- Virtual development environments using VagrantVirtual environments using Docker; Containerization versus virtualization; Writing your first Dockerfile; Running containers; Setting up complex environments; Useful Docker recipes for Python; Reducing the size of containers; Addressing services inside of a Compose environment; Communicating between multiple Compose environments; Popular productivity tools; Custom Python shells
- ipython, bpython, ptpython, and so on; Setting up the PYTHONSTARTUP environment variable; IPython; bpython; ptpython
- Incorporating shells in your own scripts and programsInteractive debuggers; Summary; Section 2: Python Craftsmanship; Chapter 3: Modern Syntax Elements
- Below the Class Level; Technical requirements; Python's built-in types; Strings and bytes; Implementation details; String concatenation; Constant folding, the peephole optimizer, and the AST optimizer; String formatting with f-strings; Containers; Lists and tuples; Implementation details; List comprehensions; Other idioms; Dictionaries; Implementation details; Weaknesses and alternatives; Sets; Implementation details
- Supplemental data types and containersSpecialized data containers from the collections module; Symbolic enumeration with the enum module; Advanced syntax; Iterators; Generators and yield statements; Decorators; General syntax and possible implementations; As a function; As a class; Parametrizing decorators; Introspection preserving decorators; Usage and useful examples; Argument checking; Caching; Proxy; Context provider; Context managers
- the with statement; The general syntax and possible implementations; As a class; As a function
- the contextlib module