Flylib.com

Books Software

 
 
 

Python in a Nutshell, Second Edition (In a Nutshell) - page 175

Colophon

Our look is the result of reader comments, our own experimentation, and feedback from distribution channels. Distinctive covers complement our distinctive approach to technical topics, breathing personality and life into potentially dry subjects.

The animal on the cover of Python in a Nutshell is an African rock python, one of approximately 18 species of python. Pythons are nonvenomous constrictor snakes that live in tropical regions of Africa, Asia, Australia, and some Pacific Islands. Pythons live mainly on the ground, but they are also excellent swimmers and climbers. Both male and female pythons retain vestiges of their ancestral hind legs. The male python uses these vestiges, or spurs, when courting a female .

The python kills its prey by suffocation. While the snake's sharp teeth grip and hold the prey in place, the python's long body coils around its victim's chest, constricting tighter each time it breathes out. They feed primarily on mammals and birds. Python attacks on humans are extremely rare.

Emily Quill was the production editor and copyeditor for Python in a Nutshell . Linley Dolby and Tatiana Apandi Diaz provided quality control. Philip Dangler, Judy Hoer, and Genevieve d'Entremont provided production assistance. Nancy Crumpton wrote the index.

Emma Colby designed the cover of this book, based on a series design by Edie Freedman. The cover image is a 19th-century engraving from the Dover Pictorial Archive. Emma Colby produced the cover layout with QuarkXPress 4.1 using Adobe's ITC Garamond font.

Bret Kerr designed the interior layout, based on a series design by David Futato. This book was converted by Mike Sierra to FrameMaker 5.5.6 with a format conversion tool created by Erik Ray, Jason McIntosh, Neil Walls, and Mike Sierra that uses Perl and XML technologies. The text font is Linotype Birka; the heading font is Adobe Myriad Condensed; and the code font is LucasFont's TheSans Mono Condensed. The illustrations that appear in the book were produced by Robert Romano and Jessamyn Read using Macromedia FreeHand 9 and Adobe Photoshop 6. This colophon was written by Nicole Arigo.

The online edition of this book was created by the Safari production group (John Chodacki, Becki Maisch, and Madeleine Newell) using a set of Frame-to-XML conversion and cleanup tools written and maintained by Erik Ray, Benn Salter, John Chodacki, and Jeff Liggett.

[SYMBOL] [A] [B] [C] [D] [E] [F] [G] [H] [I] [J] [K] [L] [M] [N] [O] [P] [Q] [R] [S] [T] [U] [V] [W] [X] [Y] [Z]


[SYMBOL] [A] [B] [C] [D] [E] [F] [G] [H] [I] [J] [K] [L] [M] [N] [O] [P] [Q] [R] [S] [T] [U] [V] [W] [X] [Y] [Z]

! (exclamation point)
    comparisons 
    pdb command 
    struct format strings 
" (double quote), string literals 
# ( pound sign)
    comments 
    regular expressions 
    string formatting 
$ (dollar sign)
    MULTILINE attribute 
    regular expressions 
% (percent sign)
    HTML templates 
    remainder 
    string formatting 
& (ampersand), bitwise AND 
> (greater than sign)
    >> (double greater than)
        right shift 
    comparisons 
    struct format strings 
< (less than sign)
    << (double less than)
        left shift 
    comparisons 
    struct format strings 
<> (angle brackets)
    event names  
    HTML comments 
' (single quote)
    string literals 
() (parentheses)
    class statements 
    def statement 
    function calls 
    line continuation 
    plain assignment statements 
    regular expressions 
    string formatting 
    tuple creation 
* (asterisk)
    ** (double asterisk)
        raising to a power 
    from statement 
    multiplication 
    regular expressions 
    sequence repetition 
    string formatting 
*? (asterisk-question mark), regular expressions 
+ (plus sign)
    addition 
    DateTime instances 
    DateTimeDelta instances 
    regular expressions 
    sequence concatenation 
    string formatting 
    unary plus 
+? (plus sign-question mark), regular expressions 
, (comma)
    dictionaries 
    functions 
    lists 
    plain assignment statements 
    tuples 
- (hyphen)
    regular expressions 
    string formatting 
    subtraction 
    unary minus 
-Qnew switch 
. (period)
    attributes 
        attribute reference 
        instance objects 
    current directory designation 
    DOTALL attribute 
    regular expressions 
    string formatting 
/ (forward slash) 
    // (double forward slash)
        truncating division 
    directory paths  2nd 
        Unix/Windows 
    division operator 
        determining behavior of 
: ( colon )
    compound statements 
    dictionaries 
    Unix directory paths 
; (semicolon)
    statement separators 
    Windows directory paths 
= (equal sign)
    comparisons 
    struct format strings 
? (question mark), regular expressions 
@ (at sign), struct format strings 
[] (square brackets)
    indexing 
    item indexes 
    line continuation 
    list creation 
    lists 
    plain assignment statements 
    python command-line syntax 
    regular expressions  2nd 
    slicing 
\ (backslash)
    \n (newline)
        string literals 
    directory paths 
        Windows 
    line continuation 
    regular expressions 
    string literals 
^ (caret)
    bitwise XOR 
    MULTILINE attribute 
    regular expressions  2nd 
_ ( underscore )
    class-private variables  
    gettext module 
    identifiers  2nd 
    interactive sessions 
    module-private variables 
    special methods  
` (backtick), string conversion 
{} (curly braces)
    dictionaries 
    dictionary creation 
    line continuation 
    python command-line syntax 
(vertical bar)
    bitwise OR 
    regular expressions  2nd 
~ (tilde), bitwise NOT 
4Suite