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.Error

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

xdrlib.Packer.get_buffer()

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

xdrlib.ConversionError

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

xdrlib.Packer

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

xdrlib.Packer.pack_bytes()

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

xdrlib.Packer.pack_double()

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

wsgiref.util.request_uri()

wsgiref.util.request_uri(environ, include_query=True) Return the full request URI, optionally including the query string, using the algorithm found in the “URL Reconstruction” section of PEP 3333. If include_query is false, the query string is not included in the resulting URI.

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

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