chunk.Chunk.isatty()

isatty() Returns False.

chunk.Chunk.getsize()

getsize() Returns the size of the chunk.

chunk.Chunk.getname()

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

chunk.Chunk.close()

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

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

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.

ChildProcessError

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

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().

cgitb.enable()

cgitb.enable(display=1, logdir=None, context=5, format="html") This function causes the cgitb module to take over the interpreter’s default handling for exceptions by setting the value of sys.excepthook. The optional argument display defaults to 1 and can be set to 0 to suppress sending the traceback to the browser. If the argument logdir is present, the traceback reports are written to files. The value of logdir should be a directory where these files will be placed. The optional argument c

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.