Share E-Book
Scan to open this page

Scan with your phone to open this page

Author: Michal Jaworski, Tarek Ziade

Rating No ratings yet

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.

AI Reading Assistant

Whole-book reading guide from stratified index samples; jump to passages in the text

AI guide
【One-Line Pitch】 A practical field guide for Python developers who already write working code but want to write it like a professional—covering modern syntax, metaprogramming, packaging, deployment, native extensions, and the daily tooling and conventions that separate scripts from maintainable software. Best suited to intermediate Python programmers ready to level up toward senior-level practice. 【Book Arc】 - **Opening (~0%–15%)**: Orients you in Python 3.5-era features and productivity shortcuts, establishing the modern baseline the rest of the book builds on. - **Early (~15%–35%)**: Moves into advanced syntax elements introduced in that version, sharpening the language fluency you need before tackling design-level topics. - **Middle (~35%–55%)**: Covers advanced object-oriented concepts and metaprogramming mechanisms, showing multiple approaches to bending Python's object model to your needs. - **Late (~55%–75%)**: Shifts to professional craft—naming, package structure, standalone executables, and release/deployment tooling such as buildout and virtualenv for getting code onto production servers. - **Ending (~75%–100%)**: Closes with extension writing in C, C++, Cython, and Pyrex, plus the surrounding disciplines of code management, documentation, and test-driven development. 【Key Takeaways】 - **Professional Python is a tooling discipline, not just a syntax skill** (Late): the book treats virtualenv, buildout, packaging, and deployment as core competencies, because maintainable code depends on reproducible environments and release workflows. - **Metaprogramming is presented as a design choice with trade-offs** (Middle): multiple approaches to advanced OOP and metaprogramming are compared, implying you should pick mechanisms deliberately rather than reach for the most clever one. - **Naming and package structure carry real weight** (Late): choosing good names and organizing packages well is framed as a first-class concern, not cosmetic polish—it directly affects reuse and maintainability. - **Performance-critical paths can drop to native code** (Ending): C, C++, Cython, and Pyrex extensions are covered as the escape hatch when pure Python isn't enough, giving you a bridge between productivity and speed. - **Testing, documentation, and code management are treated as inseparable from writing code** (Ending): the book bundles TDD, clear docs, and version-control practices into the definition of expert practice. - **The book targets Python 3.5-era features specifically** (Opening): knowing this anchors which language capabilities and idioms the advice assumes, which matters if you're on a much newer interpreter. - **Conventions and standards are the through-line** (Early): the stated focus is the common conventions, best practices, tools, and standards professionals use daily—so expect norms and idioms, not just isolated techniques. 【Reading Tips】 - **Skim the 3.5 feature tour if you're on a modern Python** (Opening): treat it as historical context and focus your attention on the design and tooling chapters that age better. - **Deep-read the metaprogramming and OOP sections** (Middle): these are the conceptual core; work through the alternative approaches and decide which fit your codebase rather than memorizing patterns. - **Treat packaging/deployment and extension chapters as reference** (Late–Ending): read them once for the mental model, then return when you actually need to ship a package or write a C extension. - **Pair the TDD and documentation material with your current project** (Ending): these chapters pay off only when applied immediately to real code you maintain. - **Keep a scratch project open**: the book is practice-oriented, so translating each topic into working code beats passive reading. 【Coverage Limits】 This guide is synthesized from a single whole-book excerpt (chunk #1) that summarizes the book's scope; specific chapter titles, code examples, benchmarks, and detailed arguments are not covered by the excerpts, so the arc percentages are approximate reconstructions of the described progression rather than verified chapter boundaries.
Page 2
书名: Expert Python Programming, 2nd Edition Become an ace Python programmer by learning best coding practices and advance-level… (Michal Jaworski, Tarek Ziade...
View in text
Tags
AI categories
PythonProgrammingSoftware
ISBN: 1785886851
Publisher: Packt Publishing
Publish Year: 2016
Language: English
Pages: 536
File Format: PDF
File Size: 41.4 MB
Text Preview (First 20 pages)
Registered users can read the full content for free

Register as a Gaohf Library member to read the complete e-book online for free and enjoy a better reading experience.

Generating text preview…