chunk.Chunk.isatty()

isatty() Returns False.

chunk.Chunk.seek()

seek(pos, whence=0) Set the chunk’s current position. The whence argument is optional and defaults to 0 (absolute file positioning); other values are 1 (seek relative to the current position) and 2 (seek relative to the file’s end). There is no return value. If the underlying file does not allow seek, only forward seeks are allowed.

chr()

chr(i) Return the string representing a character whose Unicode code point is the integer i. For example, chr(97) returns the string 'a', while chr(8364) returns the string '€'. This is the inverse of ord(). The valid range for the argument is from 0 through 1,114,111 (0x10FFFF in base 16). ValueError will be raised if i is outside that range.

chunk.Chunk

class chunk.Chunk(file, align=True, bigendian=True, inclheader=False) Class which represents a chunk. The file argument is expected to be a file-like object. An instance of this class is specifically allowed. The only method that is needed is read(). If the methods seek() and tell() are present and don’t raise an exception, they are also used. If these methods are present and raise an exception, they are expected to not have altered the object. If the optional argument align is true, chunks

ChildProcessError

exception ChildProcessError Raised when an operation on a child process failed. Corresponds to errno ECHILD.

chunk.Chunk.getname()

getname() Returns the name (ID) of the chunk. This is the first 4 bytes of the chunk.

cgitb.handler()

cgitb.handler(info=None) This function handles an exception using the default settings (that is, show a report in the browser, but don’t log to a file). This can be used when you’ve caught an exception and want to report it using cgitb. The optional info argument should be a 3-tuple containing an exception type, exception value, and traceback object, exactly like the tuple returned by sys.exc_info(). If the info argument is not supplied, the current exception is obtained from sys.exc_info().

chunk.Chunk.close()

close() Close and skip to the end of the chunk. This does not close the underlying file.

cgi.test()

cgi.test() Robust test CGI script, usable as main program. Writes minimal HTTP headers and formats all information provided to the script in HTML form.

cgi.print_directory()

cgi.print_directory() Format the current directory in HTML.