H

# (preceding comments), 65-66 #! (shebang comment line), 60, 545 headers definition of, 615 e-mail, 311-312 HTTP

CGI script outputting, 470 definition of, 467-468, 615 help function, 157-162 hexadecimal (base 16) notation definition of, 24, 615 formatting numbers as, 409 specifying literals in, 406 high-precision floating-point numbers, 15 hostname binding to, 332 definition of, 615 DNS managing, 309 external, binding to, 334-335 localhost, 309, 613, 616 using instead of IP addresses, 310 HSqlDB database, 554 HTML forms definition of, 473-474 parsing, 474-479 HTML (HyperText Markup Language) parsing, 283-285 relationship to XML, 282 htmllib module, 284-285

HTMLParser class, 283-284 HTTP (HyperText Transfer Protocol)

body, 615

commands for, 462-463, 473 definition of, 615 design guidelines for, 468 headers CGI script outputting, 470 definition of, 467-468, 615 request definition of, 466-467 viewing with web server, 464-466 request, definition of, 615 response definition of, 467-468 viewing with web server, 464-466 response, definition of, 615 session length of, 461 status code, 467-468, 615 verb, 462-463,473,615 visible web server using, 464-466 web server using, 463 HTTPServer object, 463 HttpServlet class, 561-564 HTTP_USER_AGENT variable, 473 Hunter, David (Beginning XML), 277 hyperbolic functions, 415 HyperCard, GUI builder for, 225 HyperText Markup Language (HTML) parsing, 283-285 relationship to XML, 282 HyperText Transfer Protocol. See HTTP hyphen (-)

- (in format specifier), 10

- (subtraction operator), 19, 412 hypot function, 415

IANA (Internet Assigned Numbers Authority), 310-311

IDE (Integrated Development Environment),

395-396, 565 idempotent action, 462, 615 idle editor, compared to codeEditor, 3 if statements, 48-50

imag attribute, complex object imag attribute, complex object, 417 imaginary number creating complex numbers from, 416 definition of, 14-15, 615 IMAP (Internet Message Access Protocol)

definition of, 615

unique message IDs used by, 330-331 IMAP server retrieving e-mail from, 327-331 secure, 331 imaplib module, 327-331 immutable definition of, 32

strings as, problems with, 399-400 import command from modifier, 101, 145 using, 96-97, 145 version 2.4 enhancements to, 611 indentation, 49 index, database, 441-442 IndexError, 33, 34 inequality operator (!=), 45 inf (infinity), 19 infinite loop, 52-53, 616 infrastructure platforms, 427 inheritance, 151, 616

_init_method, 152

input, 10. See also Input/Output (I/O) Input/Output (I/O). See also files; pickles definition of, 10, 109, 616 file exceptions, 113 manipulating files, 119-121 reading files, 111-112 writing files, 110-111 insert statement, SQL, 257-259 install command, 360 int method, 406 integers. See also longs automatically converted to long if too large, 609 converting to, from other types, 406 definition of, 14, 406, 616 internal representation of, 407 Integrated Development Environment (IDE),

395-396, 565 IntegrityError, DB API, 273

interface for a class, 83 interface methods, 83-84, 85-87 InterfaceError, DB API, 273 internal methods, 84-85 InternalError, DB API, 273 Internet. See network programming Internet Assigned Numbers Authority (IANA), 310-311

Internet Message Access Protocol (IMAP)

definition of, 615

unique message IDs used by, 330-331 Internet Protocol. See IP Internet protocol stack, 308-309, 618 Internet Relay Chat (IRC), 340, 616 interpreted languages, 2 introspection API, XML-RPC, 530-531 I/O (Input/Output). See also files; pickles definition of, 10, 109, 616 file exceptions, 113 manipulating files, 119-121 reading files, 111-112 writing files, 110-111 IOError, 113 IP address definition of, 309-310, 616 for localhost, 309, 613 IP (Internet Protocol) addresses, 309-310 definition of, 616 ports, 310-311 IRC (Internet Relay Chat), 340, 616 isdir function, os.path module, 118 isfile function, os.path module, 118 ISO 9000, 434 ISO 9001, 434 iterator, 239, 616

Was this article helpful?

0 0

Post a comment