Home > Store > Open Source > Python

larger cover

Add To My Wish List

Advanced Python 3 Programming Techniques (Digital Short Cut)

Register your product to gain access to bonus material or receive a coupon.

  • Description
  • Sample Content

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.

Table of Contents

Section 1: What This Short Cut Covers 3

Section 2: Branching Using Dictionaries 4

Section 3: Generator Expressions and Functions 5

Section 4: Dynamic Code Execution 9

Section 5: Local and Recursive Functions 16

Section 6: Function and Method Decorators 21

Section 7: Function Annotations 25

Section 8: Controlling Attribute Access 27

Section 9: Functors 31

Section 10: Context Managers 33

Section 11: Descriptors 37

Section 12: Class Decorators 42

Section 13: Abstract Base Classes 45

Section 14: Multiple Inheritance 52

Section 15: Metaclasses 54

Section 16: Functional-Style Programming 59

Section 17: Descriptors with Class Decorators 63

Section 18: About the Author 65

Excerpts

Download the excerpt

 
Buy

eBook (Watermarked)  $9.99

About Watermarked eBooks

This PDF will be accessible from your Account page after purchase and requires the free Adobe® Reader® software to read it.

The eBook requires no passwords or activation to read. We customize your eBook by discretely watermarking it with your name, making it uniquely yours.

Watermarked eBook FAQ

Purchase Reward: One Month Free Subscription
By completing any purchase on InformIT, you become eligible for an unlimited access one-month subscription to Safari Books Online.

Get access to thousands of books and training videos about technology, professional development and digital media from more than 40 leading publishers, including Addison-Wesley, Prentice Hall, Cisco Press, IBM Press, O'Reilly Media, Wrox, Apress, and many more. If you continue your subscription after your 30-day trial, you can receive 30% off a monthly subscription to the Safari Library for up to 12 months. That's a total savings of $199.