multiprocessing.pool.AsyncResult

class multiprocessing.pool.AsyncResult The class of the result returned by Pool.apply_async() and Pool.map_async(). get([timeout]) Return the result when it arrives. If timeout is not None and the result does not arrive within timeout seconds then multiprocessing.TimeoutError is raised. If the remote call raised an exception then that exception will be reraised by get(). wait([timeout]) Wait until the result is available or until timeout seconds pass. ready() Return whether th

importlib.machinery.SourceFileLoader.is_package()

is_package(fullname) Return true if path appears to be for a package.

readline.get_begidx()

readline.get_begidx() readline.get_endidx() Get the beginning or ending index of the completion scope. These indexes are the start and end arguments passed to the rl_attempted_completion_function callback of the underlying library.

functools.singledispatch()

@functools.singledispatch(default) Transforms a function into a single-dispatch generic function. To define a generic function, decorate it with the @singledispatch decorator. Note that the dispatch happens on the type of the first argument, create your function accordingly: >>> from functools import singledispatch >>> @singledispatch ... def fun(arg, verbose=False): ... if verbose: ... print("Let me just say,", end=" ") ... print(arg) To add overloaded imp

http.server.BaseHTTPRequestHandler.handle_one_request()

handle_one_request() This method will parse and dispatch the request to the appropriate do_*() method. You should never need to override it.

inspect.Signature.from_callable()

classmethod from_callable(obj, *, follow_wrapped=True) Return a Signature (or its subclass) object for a given callable obj. Pass follow_wrapped=False to get a signature of obj without unwrapping its __wrapped__ chain. This method simplifies subclassing of Signature: class MySignature(Signature): pass sig = MySignature.from_callable(min) assert isinstance(sig, MySignature) New in version 3.5.

string.Template.safe_substitute()

safe_substitute(mapping, **kwds) Like substitute(), except that if placeholders are missing from mapping and kwds, instead of raising a KeyError exception, the original placeholder will appear in the resulting string intact. Also, unlike with substitute(), any other appearances of the $ will simply return $ instead of raising ValueError. While other exceptions may still occur, this method is called “safe” because substitutions always tries to return a usable string instead of raising an exce

tempfile.SpooledTemporaryFile()

tempfile.SpooledTemporaryFile(max_size=0, mode='w+b', buffering=None, encoding=None, newline=None, suffix=None, prefix=None, dir=None) This function operates exactly as TemporaryFile() does, except that data is spooled in memory until the file size exceeds max_size, or until the file’s fileno() method is called, at which point the contents are written to disk and operation proceeds as with TemporaryFile(). The resulting file has one additional method, rollover(), which causes the file to rol

string.Formatter.parse()

parse(format_string) Loop over the format_string and return an iterable of tuples (literal_text, field_name, format_spec, conversion). This is used by vformat() to break the string into either literal text, or replacement fields. The values in the tuple conceptually represent a span of literal text followed by a single replacement field. If there is no literal text (which can happen if two replacement fields occur consecutively), then literal_text will be a zero-length string. If there is no

csv.excel

class csv.excel The excel class defines the usual properties of an Excel-generated CSV file. It is registered with the dialect name 'excel'.