Advanced Python 3 Programming Techniques
by: Mark Summerfield
Publication Date 出版日期: 2009
ISBN-13: 9780321635518
Print Length 页数: 128
Language 语言: English
Print Length 页数: EPUB
Size: 10 Mb
Book Description
By finelybook
This short cut is taken from Programming in Python 3: A Complete Introduction to the Python Language (Addison-Wesley,2009) and provides self-containedcoverage of Python’s advanced features. Most of the techniques covered arenot needed every day,but in the right circumstances they can make a crucialdifference,allowing us to write clean and straightforward code rather thanhaving to resort to hacks and workarounds to achieve what we need. The shortcut explains a range of procedural,object-oriented,and functional-style techniques,and the information provided will be a considerable addition to mostPython programmers’ toolboxes.
Contents
Section 1.What This Short Cut Covers
Section 2.Branching Using Dictionaries
Section 3.Generator Expressions and Functions
Section 4.Dynamic Code Execution
Section 5.Local and Recursive Functions
Section 6.Function and Method Decorators
Section 7.Function Annotations
Section 8.Controlling Attribute Access
Section 9.Functors
Section 10.Context Managers
Section 11.Descriptors
Section 12.Class Decorators
Section 13.Abstract Base Classes
Section 14.Multiple Inheritance
Section 15.Metaclasses
Section 16.Functional-Style Programming
Section 17.Descriptors with Class Decorators
Section 18.About the Author