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

resource.getrusage()

resource.getrusage(who) This function returns an object that describes the resources consumed by either the current process or its children, as specified by the who parameter. The who parameter should be specified using one of the RUSAGE_* constants described below. The fields of the return value each describe how a particular system resource has been used, e.g. amount of time spent running is user mode or number of times the process was swapped out of main memory. Some values are dependent

sys.__stdin__

sys.__stdin__ sys.__stdout__ sys.__stderr__ These objects contain the original values of stdin, stderr and stdout at the start of the program. They are used during finalization, and could be useful to print to the actual standard stream no matter if the sys.std* object has been redirected. It can also be used to restore the actual files to known working file objects in case they have been overwritten with a broken object. However, the preferred way to do this is to explicitly save the previou

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.

tkinter.ttk.Treeview.parent()

parent(item) Returns the ID of the parent of item, or ‘’ if item is at the top level of the hierarchy.

tkinter.ttk.Treeview.selection_toggle()

selection_toggle(items) Toggle the selection state of each item in items.

multiprocessing.managers.SyncManager

class multiprocessing.managers.SyncManager A subclass of BaseManager which can be used for the synchronization of processes. Objects of this type are returned by multiprocessing.Manager(). It also supports creation of shared lists and dictionaries. Barrier(parties[, action[, timeout]]) Create a shared threading.Barrier object and return a proxy for it. New in version 3.3. BoundedSemaphore([value]) Create a shared threading.BoundedSemaphore object and return a proxy for it. Con

pkgutil.iter_importers()

pkgutil.iter_importers(fullname='') Yield PEP 302 importers for the given module name. If fullname contains a ‘.’, the importers will be for the package containing fullname, otherwise they will be all registered top level importers (i.e. those on both sys.meta_path and sys.path_hooks). If the named module is in a package, that package is imported as a side effect of invoking this function. If no module name is specified, all top level importers are produced. Changed in version 3.3: Updated

http.cookiejar.FileCookieJar.save()

FileCookieJar.save(filename=None, ignore_discard=False, ignore_expires=False) Save cookies to a file. This base class raises NotImplementedError. Subclasses may leave this method unimplemented. filename is the name of file in which to save cookies. If filename is not specified, self.filename is used (whose default is the value passed to the constructor, if any); if self.filename is None, ValueError is raised. ignore_discard: save even cookies set to be discarded. ignore_expires: save even co

logging.NullHandler

class logging.NullHandler Returns a new instance of the NullHandler class. emit(record) This method does nothing. handle(record) This method does nothing. createLock() This method returns None for the lock, since there is no underlying I/O to which access needs to be serialized.