16.01.2014 Views

Beginning Python - From Novice to Professional

Beginning Python - From Novice to Professional

Beginning Python - From Novice to Professional

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

586 ■INDEX<br />

hasattr function 560<br />

working with __getattr__ method 189<br />

working with __setattr__ method 189<br />

head method<br />

NNTP class 441, 442<br />

heapify function<br />

heapq module 224<br />

heappop function<br />

heapq module 224<br />

heappush function<br />

heapq module 223<br />

heapq module<br />

introduction 223–225<br />

heapreplace function<br />

heapq module 225<br />

help function 212–213, 560<br />

--help switch 343, 374<br />

--help-commands switch 374<br />

hex function 560<br />

hexadecimal numbers 13<br />

hotshot module<br />

profiling 353<br />

HTML<br />

au<strong>to</strong>matically marking up plain text 391<br />

parsing 315<br />

Tidy fixes common errors 315–316<br />

HTMLDestination class<br />

creating 445, 447<br />

HTMLParser<br />

using 318–319<br />

HTMLParser module<br />

methods 318<br />

using 318<br />

HTMLRenderer class<br />

as subclass of handler superclass 398<br />

httplib module 302<br />

Hunt, Andrew and Thomas, David<br />

Pragmatic Programmer, The 387<br />

■I<br />

id function 560<br />

identity compared <strong>to</strong> equality 552<br />

IDLE<br />

saving and executing programs 19<br />

if statements 16, 569<br />

catching exceptions 162<br />

conditional execution 87<br />

imaplib module 302<br />

immutability<br />

parameters 118–119<br />

import command 18, 19<br />

import statements 568<br />

as clause 83<br />

fetching functions from external<br />

modules 203<br />

importing something as something else<br />

82–83<br />

import-only-once behavior<br />

modules 204, 205<br />

in opera<strong>to</strong>r 91, 558<br />

membership 39–40<br />

include_dirs variable<br />

setting 291<br />

indentation 85, 86<br />

Index class 180<br />

index method<br />

lists 44<br />

IndexError class 161<br />

indexing lists 548<br />

indexing sequences 33–34<br />

infinite recursion 129<br />

inheritance 146–147<br />

classes 153–154<br />

list, dict, and str 183<br />

multiple inheritance 553<br />

superclasses and multiple inheritance 155<br />

init function<br />

pygame module 529, 531

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!