Chapter 15. Programs About Programs


    Section 15.1.  Introduction

    Section 15.2.  Colorizing Python Source Using the Built-in Tokenizer

    Section 15.3.  Importing a Dynamically Generated Module

    Section 15.4.  Importing from a Module Whose Name Is Determined at Runtime

    Section 15.5.  Importing Modules with Automatic End-of-Line Conversions

    Section 15.6.  Simulating Enumerations in Python

    Section 15.7.  Modifying Methods in Place

    Section 15.8.  Associating Parameters with a Function (Currying)

    Section 15.9.  Composing Functions

    Section 15.10.  Adding Functionality to a Class

    Section 15.11.  Adding a Method to a Class Instance at Runtime

    Section 15.12.  Defining a Custom Metaclass to Control Class Behavior

    Section 15.13.  Module: Allowing the Python Profiler to Profile C Modules



Python Cookbook
Python Cookbook
ISBN: 0596007973
EAN: 2147483647
Year: 2005
Pages: 346

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net