xml.parsers.expat.ExpatError.lineno

ExpatError.lineno Line number on which the error was detected. The first line is numbered 1.

logging.handlers.NTEventLogHandler.getEventCategory()

getEventCategory(record) Returns the event category for the record. Override this if you want to specify your own categories. This version returns 0.

mailbox.mboxMessage.set_flags()

set_flags(flags) Set the flags specified by flags and unset all others. Parameter flags should be the concatenation in any order of zero or more occurrences of each of 'R', 'O', 'D', 'F', and 'A'.

shlex.shlex.commenters

shlex.commenters The string of characters that are recognized as comment beginners. All characters from the comment beginner to end of line are ignored. Includes just '#' by default.

timeit.Timer.print_exc()

print_exc(file=None) Helper to print a traceback from the timed code. Typical use: t = Timer(...) # outside the try/except try: t.timeit(...) # or t.repeat(...) except Exception: t.print_exc() The advantage over the standard traceback is that source lines in the compiled template will be displayed. The optional file argument directs where the traceback is sent; it defaults to sys.stderr.

importlib.machinery.SourcelessFileLoader.get_source()

get_source(fullname) Returns None as bytecode files have no source when this loader is used.

multiprocessing.Queue

class multiprocessing.Queue([maxsize]) Returns a process shared queue implemented using a pipe and a few locks/semaphores. When a process first puts an item on the queue a feeder thread is started which transfers objects from a buffer into the pipe. The usual queue.Empty and queue.Full exceptions from the standard library’s queue module are raised to signal timeouts. Queue implements all the methods of queue.Queue except for task_done() and join(). qsize() Return the approximate size of t

http.server.BaseHTTPRequestHandler

class http.server.BaseHTTPRequestHandler(request, client_address, server) This class is used to handle the HTTP requests that arrive at the server. By itself, it cannot respond to any actual HTTP requests; it must be subclassed to handle each request method (e.g. GET or POST). BaseHTTPRequestHandler provides a number of class and instance variables, and methods for use by subclasses. The handler will parse the request and the headers, then call a method specific to the request type. The meth

email.policy.Policy.fold_binary()

fold_binary(name, value) The same as fold(), except that the returned value should be a bytes object rather than a string. value may contain surrogateescaped binary data. These could be converted back into binary data in the returned bytes object.

smtplib.SMTPNotSupportedError

exception smtplib.SMTPNotSupportedError The command or option attempted is not supported by the server. New in version 3.5.