xdrlib.Packer.pack_double()

Packer.pack_double(value) Packs the double-precision floating point number value.

xdrlib.Packer.pack_bytes()

Packer.pack_bytes(bytes) Packs a variable length byte stream, similarly to pack_string().

xdrlib.Packer.pack_array()

Packer.pack_array(list, pack_item) Packs a variable length list of homogeneous items. First, the length of the list is packed as an unsigned integer, then each element is packed as in pack_farray() above.

xdrlib.Packer.get_buffer()

Packer.get_buffer() Returns the current pack buffer as a string.

xdrlib.Packer

class xdrlib.Packer Packer is the class for packing data into XDR representation. The Packer class is instantiated with no arguments.

xdrlib.Error

exception xdrlib.Error The base exception class. Error has a single public attribute msg containing the description of the error.

xdrlib.ConversionError

exception xdrlib.ConversionError Class derived from Error. Contains no additional instance variables.

wsgiref.validate.validator()

wsgiref.validate.validator(application) Wrap application and return a new WSGI application object. The returned application will forward all requests to the original application, and will check that both the application and the server invoking it are conforming to the WSGI specification and to RFC 2616. Any detected nonconformance results in an AssertionError being raised; note, however, that how these errors are handled is server-dependent. For example, wsgiref.simple_server and other serve

wsgiref.util.shift_path_info()

wsgiref.util.shift_path_info(environ) Shift a single name from PATH_INFO to SCRIPT_NAME and return the name. The environ dictionary is modified in-place; use a copy if you need to keep the original PATH_INFO or SCRIPT_NAME intact. If there are no remaining path segments in PATH_INFO, None is returned. Typically, this routine is used to process each portion of a request URI path, for example to treat the path as a series of dictionary keys. This routine modifies the passed-in environment to m

wsgiref.util.setup_testing_defaults()

wsgiref.util.setup_testing_defaults(environ) Update environ with trivial defaults for testing purposes. This routine adds various parameters required for WSGI, including HTTP_HOST, SERVER_NAME, SERVER_PORT, REQUEST_METHOD, SCRIPT_NAME, PATH_INFO, and all of the PEP 3333-defined wsgi.* variables. It only supplies default values, and does not replace any existing settings for these variables. This routine is intended to make it easier for unit tests of WSGI servers and applications to set up d