Chapter 16. Programs About Programs


    Introduction

    Recipe 16.1.  Verifying Whether a String Represents a Valid Number

    Recipe 16.2.  Importing a Dynamically Generated Module

    Recipe 16.3.  Importing from a Module Whose Name Is Determined at Runtime

    Recipe 16.4.  Associating Parameters with a Function (Currying)

    Recipe 16.5.  Composing Functions

    Recipe 16.6.  Colorizing Python Source Using the Built-in Tokenizer

    Recipe 16.7.  Merging and Splitting Tokens

    Recipe 16.8.  Checking Whether a String Has Balanced Parentheses

    Recipe 16.9.  Simulating Enumerations in Python

    Recipe 16.10.  Referring to a List Comprehension While Building It

    Recipe 16.11.  Automating the py2exe Compilation of Scripts into Windows Executables

    Recipe 16.12.  Binding Main Script and Modules into One Executable on Unix



Python Cookbook
Python Cookbook
ISBN: 0596007973
EAN: 2147483647
Year: 2004
Pages: 420

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