--- /dev/null
+#
+# Secret Labs' Regular Expression Engine
+#
+# re-compatible interface for the sre matching engine
+#
+# Copyright (c) 1998-2001 by Secret Labs AB. All rights reserved.
+#
+# This version of the SRE library can be redistributed under CNRI's
+# Python 1.6 license. For any other use, please contact Secret Labs
+# AB (info@pythonware.com).
+#
+# Portions of this engine have been developed in cooperation with
+# CNRI. Hewlett-Packard provided funding for 1.6 integration and
+# other compatibility work.
+#
+
+r"""Support for regular expressions (RE).
+
+This module provides regular expression matching operations similar to
+those found in Perl. It supports both 8-bit and Unicode strings; both
+the pattern and the strings being processed can contain null bytes and
+characters outside the US ASCII range.
+
+Regular expressions can contain both special and ordinary characters.
+Most ordinary characters, like "A", "a", or "0", are the simplest
+regular expressions; they simply match themselves. You can
+concatenate ordinary characters, so last matches the string 'last'.
+
+The special characters are:
+ "." Matches any character except a newline.
+ "^" Matches the start of the string.
+ "$" Matches the end of the string or just before the newline at
+ the end of the string.
+ "*" Matches 0 or more (greedy) repetitions of the preceding RE.
+ Greedy means that it will match as many repetitions as possible.
+ "+" Matches 1 or more (greedy) repetitions of the preceding RE.
+ "?" Matches 0 or 1 (greedy) of the preceding RE.
+ *?,+?,?? Non-greedy versions of the previous three special characters.
+ {m,n} Matches from m to n repetitions of the preceding RE.
+ {m,n}? Non-greedy version of the above.
+ "\\" Either escapes special characters or signals a special sequence.
+ [] Indicates a set of characters.
+ A "^" as the first character indicates a complementing set.
+ "|" A|B, creates an RE that will match either A or B.
+ (...) Matches the RE inside the parentheses.
+ The contents can be retrieved or matched later in the string.
+ (?aiLmsux) Set the A, I, L, M, S, U, or X flag for the RE (see below).
+ (?:...) Non-grouping version of regular parentheses.
+ (?P<name>...) The substring matched by the group is accessible by name.
+ (?P=name) Matches the text matched earlier by the group named name.
+ (?#...) A comment; ignored.
+ (?=...) Matches if ... matches next, but doesn't consume the string.
+ (?!...) Matches if ... doesn't match next.
+ (?<=...) Matches if preceded by ... (must be fixed length).
+ (?<!...) Matches if not preceded by ... (must be fixed length).
+ (?(id/name)yes|no) Matches yes pattern if the group with id/name matched,
+ the (optional) no pattern otherwise.
+
+The special sequences consist of "\\" and a character from the list
+below. If the ordinary character is not on the list, then the
+resulting RE will match the second character.
+ \number Matches the contents of the group of the same number.
+ \A Matches only at the start of the string.
+ \Z Matches only at the end of the string.
+ \b Matches the empty string, but only at the start or end of a word.
+ \B Matches the empty string, but not at the start or end of a word.
+ \d Matches any decimal digit; equivalent to the set [0-9] in
+ bytes patterns or string patterns with the ASCII flag.
+ In string patterns without the ASCII flag, it will match the whole
+ range of Unicode digits.
+ \D Matches any non-digit character; equivalent to [^\d].
+ \s Matches any whitespace character; equivalent to [ \t\n\r\f\v] in
+ bytes patterns or string patterns with the ASCII flag.
+ In string patterns without the ASCII flag, it will match the whole
+ range of Unicode whitespace characters.
+ \S Matches any non-whitespace character; equivalent to [^\s].
+ \w Matches any alphanumeric character; equivalent to [a-zA-Z0-9_]
+ in bytes patterns or string patterns with the ASCII flag.
+ In string patterns without the ASCII flag, it will match the
+ range of Unicode alphanumeric characters (letters plus digits
+ plus underscore).
+ With LOCALE, it will match the set [0-9_] plus characters defined
+ as letters for the current locale.
+ \W Matches the complement of \w.
+ \\ Matches a literal backslash.
+
+This module exports the following functions:
+ match Match a regular expression pattern to the beginning of a string.
+ fullmatch Match a regular expression pattern to all of a string.
+ search Search a string for the presence of a pattern.
+ sub Substitute occurrences of a pattern found in a string.
+ subn Same as sub, but also return the number of substitutions made.
+ split Split a string by the occurrences of a pattern.
+ findall Find all occurrences of a pattern in a string.
+ finditer Return an iterator yielding a match object for each match.
+ compile Compile a pattern into a RegexObject.
+ purge Clear the regular expression cache.
+ escape Backslash all non-alphanumerics in a string.
+
+Some of the functions in this module takes flags as optional parameters:
+ A ASCII For string patterns, make \w, \W, \b, \B, \d, \D
+ match the corresponding ASCII character categories
+ (rather than the whole Unicode categories, which is the
+ default).
+ For bytes patterns, this flag is the only available
+ behaviour and needn't be specified.
+ I IGNORECASE Perform case-insensitive matching.
+ L LOCALE Make \w, \W, \b, \B, dependent on the current locale.
+ M MULTILINE "^" matches the beginning of lines (after a newline)
+ as well as the string.
+ "$" matches the end of lines (before a newline) as well
+ as the end of the string.
+ S DOTALL "." matches any character at all, including the newline.
+ X VERBOSE Ignore whitespace and comments for nicer looking RE's.
+ U UNICODE For compatibility only. Ignored for string patterns (it
+ is the default), and forbidden for bytes patterns.
+
+This module also defines an exception 'error'.
+
+"""
+
+import sys
+import sre_compile
+import sre_parse
+
+# public symbols
+__all__ = [ "match", "fullmatch", "search", "sub", "subn", "split", "findall",
+ "compile", "purge", "template", "escape", "A", "I", "L", "M", "S", "X",
+ "U", "ASCII", "IGNORECASE", "LOCALE", "MULTILINE", "DOTALL", "VERBOSE",
+ "UNICODE", "error" ]
+
+__version__ = "2.2.1"
+
+# flags
+A = ASCII = sre_compile.SRE_FLAG_ASCII # assume ascii "locale"
+I = IGNORECASE = sre_compile.SRE_FLAG_IGNORECASE # ignore case
+L = LOCALE = sre_compile.SRE_FLAG_LOCALE # assume current 8-bit locale
+U = UNICODE = sre_compile.SRE_FLAG_UNICODE # assume unicode "locale"
+M = MULTILINE = sre_compile.SRE_FLAG_MULTILINE # make anchors look for newline
+S = DOTALL = sre_compile.SRE_FLAG_DOTALL # make dot match newline
+X = VERBOSE = sre_compile.SRE_FLAG_VERBOSE # ignore whitespace and comments
+
+# sre extensions (experimental, don't rely on these)
+T = TEMPLATE = sre_compile.SRE_FLAG_TEMPLATE # disable backtracking
+DEBUG = sre_compile.SRE_FLAG_DEBUG # dump pattern after compilation
+
+# sre exception
+error = sre_compile.error
+
+# --------------------------------------------------------------------
+# public interface
+
+def match(pattern, string, flags=0):
+ """Try to apply the pattern at the start of the string, returning
+ a match object, or None if no match was found."""
+ return _compile(pattern, flags).match(string)
+
+def fullmatch(pattern, string, flags=0):
+ """Try to apply the pattern to all of the string, returning
+ a match object, or None if no match was found."""
+ return _compile(pattern, flags).fullmatch(string)
+
+def search(pattern, string, flags=0):
+ """Scan through string looking for a match to the pattern, returning
+ a match object, or None if no match was found."""
+ return _compile(pattern, flags).search(string)
+
+def sub(pattern, repl, string, count=0, flags=0):
+ """Return the string obtained by replacing the leftmost
+ non-overlapping occurrences of the pattern in string by the
+ replacement repl. repl can be either a string or a callable;
+ if a string, backslash escapes in it are processed. If it is
+ a callable, it's passed the match object and must return
+ a replacement string to be used."""
+ return _compile(pattern, flags).sub(repl, string, count)
+
+def subn(pattern, repl, string, count=0, flags=0):
+ """Return a 2-tuple containing (new_string, number).
+ new_string is the string obtained by replacing the leftmost
+ non-overlapping occurrences of the pattern in the source
+ string by the replacement repl. number is the number of
+ substitutions that were made. repl can be either a string or a
+ callable; if a string, backslash escapes in it are processed.
+ If it is a callable, it's passed the match object and must
+ return a replacement string to be used."""
+ return _compile(pattern, flags).subn(repl, string, count)
+
+def split(pattern, string, maxsplit=0, flags=0):
+ """Split the source string by the occurrences of the pattern,
+ returning a list containing the resulting substrings. If
+ capturing parentheses are used in pattern, then the text of all
+ groups in the pattern are also returned as part of the resulting
+ list. If maxsplit is nonzero, at most maxsplit splits occur,
+ and the remainder of the string is returned as the final element
+ of the list."""
+ return _compile(pattern, flags).split(string, maxsplit)
+
+def findall(pattern, string, flags=0):
+ """Return a list of all non-overlapping matches in the string.
+
+ If one or more capturing groups are present in the pattern, return
+ a list of groups; this will be a list of tuples if the pattern
+ has more than one group.
+
+ Empty matches are included in the result."""
+ return _compile(pattern, flags).findall(string)
+
+if sys.hexversion >= 0x02020000:
+ __all__.append("finditer")
+ def finditer(pattern, string, flags=0):
+ """Return an iterator over all non-overlapping matches in the
+ string. For each match, the iterator returns a match object.
+
+ Empty matches are included in the result."""
+ return _compile(pattern, flags).finditer(string)
+
+def compile(pattern, flags=0):
+ "Compile a regular expression pattern, returning a pattern object."
+ return _compile(pattern, flags)
+
+def purge():
+ "Clear the regular expression caches"
+ _cache.clear()
+ _cache_repl.clear()
+
+def template(pattern, flags=0):
+ "Compile a template pattern, returning a pattern object"
+ return _compile(pattern, flags|T)
+
+_alphanum_str = frozenset(
+ "_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890")
+_alphanum_bytes = frozenset(
+ b"_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890")
+
+def escape(pattern):
+ """
+ Escape all the characters in pattern except ASCII letters, numbers and '_'.
+ """
+ if isinstance(pattern, str):
+ alphanum = _alphanum_str
+ s = list(pattern)
+ for i, c in enumerate(pattern):
+ if c not in alphanum:
+ if c == "\000":
+ s[i] = "\\000"
+ else:
+ s[i] = "\\" + c
+ return "".join(s)
+ else:
+ alphanum = _alphanum_bytes
+ s = []
+ esc = ord(b"\\")
+ for c in pattern:
+ if c in alphanum:
+ s.append(c)
+ else:
+ if c == 0:
+ s.extend(b"\\000")
+ else:
+ s.append(esc)
+ s.append(c)
+ return bytes(s)
+
+# --------------------------------------------------------------------
+# internals
+
+_cache = {}
+_cache_repl = {}
+
+_pattern_type = type(sre_compile.compile("", 0))
+
+_MAXCACHE = 512
+def _compile(pattern, flags):
+ # internal: compile pattern
+ bypass_cache = flags & DEBUG
+ if not bypass_cache:
+ try:
+ return _cache[type(pattern), pattern, flags]
+ except KeyError:
+ pass
+ if isinstance(pattern, _pattern_type):
+ if flags:
+ raise ValueError(
+ "Cannot process flags argument with a compiled pattern")
+ return pattern
+ if not sre_compile.isstring(pattern):
+ raise TypeError("first argument must be string or compiled pattern")
+ p = sre_compile.compile(pattern, flags)
+ if not bypass_cache:
+ if len(_cache) >= _MAXCACHE:
+ _cache.clear()
+ _cache[type(pattern), pattern, flags] = p
+ return p
+
+def _compile_repl(repl, pattern):
+ # internal: compile replacement pattern
+ try:
+ return _cache_repl[repl, pattern]
+ except KeyError:
+ pass
+ p = sre_parse.parse_template(repl, pattern)
+ if len(_cache_repl) >= _MAXCACHE:
+ _cache_repl.clear()
+ _cache_repl[repl, pattern] = p
+ return p
+
+def _expand(pattern, match, template):
+ # internal: match.expand implementation hook
+ template = sre_parse.parse_template(template, pattern)
+ return sre_parse.expand_template(template, match)
+
+def _subx(pattern, template):
+ # internal: pattern.sub/subn implementation helper
+ template = _compile_repl(template, pattern)
+ if not template[0] and len(template[1]) == 1:
+ # literal replacement
+ return template[1][0]
+ def filter(match, template=template):
+ return sre_parse.expand_template(template, match)
+ return filter
+
+# register myself for pickling
+
+import copyreg
+
+def _pickle(p):
+ return _compile, (p.pattern, p.flags)
+
+copyreg.pickle(_pattern_type, _pickle, _compile)
+
+# --------------------------------------------------------------------
+# experimental stuff (see python-dev discussions for details)
+
+class Scanner:
+ def __init__(self, lexicon, flags=0):
+ from sre_constants import BRANCH, SUBPATTERN
+ self.lexicon = lexicon
+ # combine phrases into a compound pattern
+ p = []
+ s = sre_parse.Pattern()
+ s.flags = flags
+ for phrase, action in lexicon:
+ p.append(sre_parse.SubPattern(s, [
+ (SUBPATTERN, (len(p)+1, sre_parse.parse(phrase, flags))),
+ ]))
+ s.groups = len(p)+1
+ p = sre_parse.SubPattern(s, [(BRANCH, (None, p))])
+ self.scanner = sre_compile.compile(p)
+ def scan(self, string):
+ result = []
+ append = result.append
+ match = self.scanner.scanner(string).match
+ i = 0
+ while 1:
+ m = match()
+ if not m:
+ break
+ j = m.end()
+ if i == j:
+ break
+ action = self.lexicon[m.lastindex-1][1]
+ if callable(action):
+ self.match = m
+ action = action(self, m.group())
+ if action is not None:
+ append(action)
+ i = j
+ return result, string[i:]
--- /dev/null
+# encoding: utf-8
+# module sys
+# from (built-in)
+# by generator 1.135
+"""
+This module provides access to some objects used or maintained by the
+interpreter and to functions that interact strongly with the interpreter.
+
+Dynamic objects:
+
+argv -- command line arguments; argv[0] is the script pathname if known
+path -- module search path; path[0] is the script directory, else ''
+modules -- dictionary of loaded modules
+
+displayhook -- called to show results in an interactive session
+excepthook -- called to handle any uncaught exception other than SystemExit
+ To customize printing in an interactive session or to install a custom
+ top-level exception handler, assign other functions to replace these.
+
+stdin -- standard input file object; used by input()
+stdout -- standard output file object; used by print()
+stderr -- standard error object; used for error messages
+ By assigning other file objects (or objects that behave like files)
+ to these, it is possible to redirect all of the interpreter's I/O.
+
+last_type -- type of last uncaught exception
+last_value -- value of last uncaught exception
+last_traceback -- traceback of last uncaught exception
+ These three are only available in an interactive session after a
+ traceback has been printed.
+
+Static objects:
+
+builtin_module_names -- tuple of module names built into this interpreter
+copyright -- copyright notice pertaining to this interpreter
+exec_prefix -- prefix used to find the machine-specific Python library
+executable -- absolute path of the executable binary of the Python interpreter
+float_info -- a struct sequence with information about the float implementation.
+float_repr_style -- string indicating the style of repr() output for floats
+hash_info -- a struct sequence with information about the hash algorithm.
+hexversion -- version information encoded as a single integer
+implementation -- Python implementation information.
+int_info -- a struct sequence with information about the int implementation.
+maxsize -- the largest supported length of containers.
+maxunicode -- the value of the largest Unicode codepoint
+platform -- platform identifier
+prefix -- prefix used to find the Python library
+thread_info -- a struct sequence with information about the thread implementation.
+version -- the version of this interpreter as a string
+version_info -- version information as a named tuple
+dllhandle -- [Windows only] integer handle of the Python DLL
+winver -- [Windows only] version number of the Python DLL
+__stdin__ -- the original stdin; don't touch!
+__stdout__ -- the original stdout; don't touch!
+__stderr__ -- the original stderr; don't touch!
+__displayhook__ -- the original displayhook; don't touch!
+__excepthook__ -- the original excepthook; don't touch!
+
+Functions:
+
+displayhook() -- print an object to the screen, and save it in builtins._
+excepthook() -- print an exception and its traceback to sys.stderr
+exc_info() -- return thread-safe information about the current exception
+exit() -- exit the interpreter by raising SystemExit
+getdlopenflags() -- returns flags to be used for dlopen() calls
+getprofile() -- get the global profiling function
+getrefcount() -- return the reference count for an object (plus one :-)
+getrecursionlimit() -- return the max recursion depth for the interpreter
+getsizeof() -- return the size of an object in bytes
+gettrace() -- get the global debug tracing function
+setcheckinterval() -- control how often the interpreter checks for events
+setdlopenflags() -- set the flags to be used for dlopen() calls
+setprofile() -- set the global profiling function
+setrecursionlimit() -- set the max recursion depth for the interpreter
+settrace() -- set the global debug tracing function
+"""
+# no imports
+
+# Variables with simple values
+
+api_version = 1013
+
+base_exec_prefix = 'C:\\Python34'
+
+base_prefix = 'C:\\Python34'
+
+byteorder = 'little'
+
+copyright = 'Copyright (c) 2001-2014 Python Software Foundation.\nAll Rights Reserved.\n\nCopyright (c) 2000 BeOpen.com.\nAll Rights Reserved.\n\nCopyright (c) 1995-2001 Corporation for National Research Initiatives.\nAll Rights Reserved.\n\nCopyright (c) 1991-1995 Stichting Mathematisch Centrum, Amsterdam.\nAll Rights Reserved.'
+
+dllhandle = 1705771008
+
+dont_write_bytecode = False
+
+executable = 'C:\\Python34\\python.exe'
+
+exec_prefix = 'C:\\Python34'
+
+float_repr_style = 'short'
+
+hexversion = 50594288
+
+maxsize = 2147483647
+maxunicode = 1114111
+
+platform = 'win32'
+
+prefix = 'C:\\Python34'
+
+version = '3.4.1 (v3.4.1:c0e311e010fc, May 18 2014, 10:38:22) [MSC v.1600 32 bit (Intel)]'
+
+winver = '3.4'
+
+_home = None
+
+__egginsert = 1
+__plen = 5
+
+# functions
+
+def callstats(): # real signature unknown; restored from __doc__
+ """
+ callstats() -> tuple of integers
+
+ Return a tuple of function call statistics, if CALL_PROFILE was defined
+ when Python was built. Otherwise, return None.
+
+ When enabled, this function returns detailed, implementation-specific
+ details about the number of function calls executed. The return value is
+ a 11-tuple where the entries in the tuple are counts of:
+ 0. all function calls
+ 1. calls to PyFunction_Type objects
+ 2. PyFunction calls that do not create an argument tuple
+ 3. PyFunction calls that do not create an argument tuple
+ and bypass PyEval_EvalCodeEx()
+ 4. PyMethod calls
+ 5. PyMethod calls on bound methods
+ 6. PyType calls
+ 7. PyCFunction calls
+ 8. generator calls
+ 9. All other calls
+ 10. Number of stack pops performed by call_function()
+ """
+ return ()
+
+def call_tracing(func, args): # real signature unknown; restored from __doc__
+ """
+ call_tracing(func, args) -> object
+
+ Call func(*args), while tracing is enabled. The tracing state is
+ saved, and restored afterwards. This is intended to be called from
+ a debugger from a checkpoint, to recursively debug some other code.
+ """
+ return object()
+
+def displayhook(p_object): # real signature unknown; restored from __doc__
+ """
+ displayhook(object) -> None
+
+ Print an object to sys.stdout and also save it in builtins._
+ """
+ pass
+
+def excepthook(exctype, value, traceback): # real signature unknown; restored from __doc__
+ """
+ excepthook(exctype, value, traceback) -> None
+
+ Handle an exception by displaying it with a traceback on sys.stderr.
+ """
+ pass
+
+def exc_info(): # real signature unknown; restored from __doc__
+ """
+ exc_info() -> (type, value, traceback)
+
+ Return information about the most recent exception caught by an except
+ clause in the current stack frame or in an older stack frame.
+ """
+ pass
+
+def exit(status=None): # real signature unknown; restored from __doc__
+ """
+ exit([status])
+
+ Exit the interpreter by raising SystemExit(status).
+ If the status is omitted or None, it defaults to zero (i.e., success).
+ If the status is an integer, it will be used as the system exit status.
+ If it is another kind of object, it will be printed and the system
+ exit status will be one (i.e., failure).
+ """
+ pass
+
+def getallocatedblocks(): # real signature unknown; restored from __doc__
+ """
+ getallocatedblocks() -> integer
+
+ Return the number of memory blocks currently allocated, regardless of their
+ size.
+ """
+ return 0
+
+def getcheckinterval(): # real signature unknown; restored from __doc__
+ """ getcheckinterval() -> current check interval; see setcheckinterval(). """
+ pass
+
+def getdefaultencoding(): # real signature unknown; restored from __doc__
+ """
+ getdefaultencoding() -> string
+
+ Return the current default string encoding used by the Unicode
+ implementation.
+ """
+ return ""
+
+def getfilesystemencoding(): # real signature unknown; restored from __doc__
+ """
+ getfilesystemencoding() -> string
+
+ Return the encoding used to convert Unicode filenames in
+ operating system filenames.
+ """
+ return ""
+
+def getprofile(): # real signature unknown; restored from __doc__
+ """
+ getprofile()
+
+ Return the profiling function set with sys.setprofile.
+ See the profiler chapter in the library manual.
+ """
+ pass
+
+def getrecursionlimit(): # real signature unknown; restored from __doc__
+ """
+ getrecursionlimit()
+
+ Return the current value of the recursion limit, the maximum depth
+ of the Python interpreter stack. This limit prevents infinite
+ recursion from causing an overflow of the C stack and crashing Python.
+ """
+ pass
+
+def getrefcount(p_object): # real signature unknown; restored from __doc__
+ """
+ getrefcount(object) -> integer
+
+ Return the reference count of object. The count returned is generally
+ one higher than you might expect, because it includes the (temporary)
+ reference as an argument to getrefcount().
+ """
+ return 0
+
+def getsizeof(p_object, default): # real signature unknown; restored from __doc__
+ """
+ getsizeof(object, default) -> int
+
+ Return the size of object in bytes.
+ """
+ return 0
+
+def getswitchinterval(): # real signature unknown; restored from __doc__
+ """ getswitchinterval() -> current thread switch interval; see setswitchinterval(). """
+ pass
+
+def gettrace(): # real signature unknown; restored from __doc__
+ """
+ gettrace()
+
+ Return the global debug tracing function set with sys.settrace.
+ See the debugger chapter in the library manual.
+ """
+ pass
+
+def getwindowsversion(): # real signature unknown; restored from __doc__
+ """
+ getwindowsversion()
+
+ Return information about the running version of Windows as a named tuple.
+ The members are named: major, minor, build, platform, service_pack,
+ service_pack_major, service_pack_minor, suite_mask, and product_type. For
+ backward compatibility, only the first 5 items are available by indexing.
+ All elements are numbers, except service_pack which is a string. Platform
+ may be 0 for win32s, 1 for Windows 9x/ME, 2 for Windows NT/2000/XP/Vista/7,
+ 3 for Windows CE. Product_type may be 1 for a workstation, 2 for a domain
+ controller, 3 for a server.
+ """
+ pass
+
+def intern(string): # real signature unknown; restored from __doc__
+ """
+ intern(string) -> string
+
+ ``Intern'' the given string. This enters the string in the (global)
+ table of interned strings whose purpose is to speed up dictionary lookups.
+ Return the string itself or the previously interned string object with the
+ same value.
+ """
+ return ""
+
+def setcheckinterval(n): # real signature unknown; restored from __doc__
+ """
+ setcheckinterval(n)
+
+ Tell the Python interpreter to check for asynchronous events every
+ n instructions. This also affects how often thread switches occur.
+ """
+ pass
+
+def setprofile(function): # real signature unknown; restored from __doc__
+ """
+ setprofile(function)
+
+ Set the profiling function. It will be called on each function call
+ and return. See the profiler chapter in the library manual.
+ """
+ pass
+
+def setrecursionlimit(n): # real signature unknown; restored from __doc__
+ """
+ setrecursionlimit(n)
+
+ Set the maximum depth of the Python interpreter stack to n. This
+ limit prevents infinite recursion from causing an overflow of the C
+ stack and crashing Python. The highest possible limit is platform-
+ dependent.
+ """
+ pass
+
+def setswitchinterval(n): # real signature unknown; restored from __doc__
+ """
+ setswitchinterval(n)
+
+ Set the ideal thread switching delay inside the Python interpreter
+ The actual frequency of switching threads can be lower if the
+ interpreter executes long sequences of uninterruptible code
+ (this is implementation-specific and workload-dependent).
+
+ The parameter must represent the desired switching delay in seconds
+ A typical value is 0.005 (5 milliseconds).
+ """
+ pass
+
+def settrace(function): # real signature unknown; restored from __doc__
+ """
+ settrace(function)
+
+ Set the global debug tracing function. It will be called on each
+ function call. See the debugger chapter in the library manual.
+ """
+ pass
+
+def _clear_type_cache(): # real signature unknown; restored from __doc__
+ """
+ _clear_type_cache() -> None
+ Clear the internal type lookup cache.
+ """
+ pass
+
+def _current_frames(): # real signature unknown; restored from __doc__
+ """
+ _current_frames() -> dictionary
+
+ Return a dictionary mapping each current thread T's thread id to T's
+ current stack frame.
+
+ This function should be used for specialized purposes only.
+ """
+ return {}
+
+def _debugmallocstats(): # real signature unknown; restored from __doc__
+ """
+ _debugmallocstats()
+
+ Print summary info to stderr about the state of
+ pymalloc's structures.
+
+ In Py_DEBUG mode, also perform some expensive internal consistency
+ checks.
+ """
+ pass
+
+def _getframe(depth=None): # real signature unknown; restored from __doc__
+ """
+ _getframe([depth]) -> frameobject
+
+ Return a frame object from the call stack. If optional integer depth is
+ given, return the frame object that many calls below the top of the stack.
+ If that is deeper than the call stack, ValueError is raised. The default
+ for depth is zero, returning the frame at the top of the call stack.
+
+ This function should be used for internal and specialized
+ purposes only.
+ """
+ pass
+
+def __displayhook__(*args, **kwargs): # real signature unknown
+ """
+ displayhook(object) -> None
+
+ Print an object to sys.stdout and also save it in builtins._
+ """
+ pass
+
+def __excepthook__(*args, **kwargs): # real signature unknown
+ """
+ excepthook(exctype, value, traceback) -> None
+
+ Handle an exception by displaying it with a traceback on sys.stderr.
+ """
+ pass
+
+def __interactivehook__(): # reliably restored by inspect
+ # no doc
+ pass
+
+# classes
+
+from .object import object
+
+class __loader__(object):
+ """
+ Meta path import for built-in modules.
+
+ All methods are either class or static methods to avoid the need to
+ instantiate the class.
+ """
+ @classmethod
+ def find_module(cls, *args, **kwargs): # real signature unknown
+ """
+ Find the built-in module.
+
+ If 'path' is ever specified then the search is considered a failure.
+
+ This method is deprecated. Use find_spec() instead.
+ """
+ pass
+
+ @classmethod
+ def find_spec(cls, *args, **kwargs): # real signature unknown
+ pass
+
+ @classmethod
+ def get_code(cls, *args, **kwargs): # real signature unknown
+ """ Return None as built-in modules do not have code objects. """
+ pass
+
+ @classmethod
+ def get_source(cls, *args, **kwargs): # real signature unknown
+ """ Return None as built-in modules do not have source code. """
+ pass
+
+ @classmethod
+ def is_package(cls, *args, **kwargs): # real signature unknown
+ """ Return False as built-in modules are never packages. """
+ pass
+
+ @classmethod
+ def load_module(cls, *args, **kwargs): # real signature unknown
+ """ Load a built-in module. """
+ pass
+
+ def module_repr(module): # reliably restored by inspect
+ """
+ Return repr for the module.
+
+ The method is deprecated. The import machinery does the job itself.
+ """
+ pass
+
+ def __init__(self, *args, **kwargs): # real signature unknown
+ pass
+
+ __weakref__ = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
+ """list of weak references to the object (if defined)"""
+
+
+ __dict__ = None # (!) real value is ''
+
+
+# variables with complex values
+
+argv = [] # real value of type <class 'list'> skipped
+
+builtin_module_names = () # real value of type <class 'tuple'> skipped
+
+flags = (
+ 0,
+ 0,
+ 0,
+ 0,
+ 0,
+ 0,
+ 0,
+ 0,
+ 0,
+ 0,
+ 0,
+ 1,
+ 0,
+)
+
+float_info = (
+ 1.7976931348623157e+308,
+ 1024,
+ 308,
+ 2.2250738585072014e-308,
+ -1021,
+ -307,
+ 15,
+ 53,
+ 2.220446049250313e-16,
+ 2,
+ 1,
+)
+
+hash_info = (
+ 32,
+ 2147483647,
+ 314159,
+ 0,
+ 1000003,
+ 'siphash24',
+ 64,
+ 128,
+ 0,
+)
+
+implementation = None # (!) real value is ''
+
+int_info = (
+ 15,
+ 2,
+)
+
+meta_path = [
+ __loader__,
+ None, # (!) real value is ''
+ None, # (!) real value is ''
+ None, # (!) real value is ''
+]
+
+modules = {} # real value of type <class 'dict'> skipped
+
+path = [
+ 'C:\\work\\ultimate\\out\\classes\\production\\python-helpers',
+ 'C:\\Python34\\lib\\site-packages\\setuptools-4.0.1-py3.4.egg',
+ 'C:\\Windows\\system32\\python34.zip',
+ 'C:\\Python34\\DLLs',
+ 'C:\\Python34\\lib',
+ 'C:\\Python34',
+ 'C:\\Python34\\lib\\site-packages',
+]
+
+path_hooks = [
+ None, # (!) real value is ''
+ None, # (!) real value is ''
+]
+
+path_importer_cache = {} # real value of type <class 'dict'> skipped
+
+stderr = None # (!) real value is ''
+
+stdin = None # (!) real value is ''
+
+stdout = None # (!) real value is ''
+
+thread_info = (
+ 'nt',
+ None,
+ None,
+)
+
+version_info = (
+ 3,
+ 4,
+ 1,
+ 'final',
+ 0,
+)
+
+warnoptions = []
+
+_mercurial = (
+ 'CPython',
+ 'v3.4.1',
+ 'c0e311e010fc',
+)
+
+_xoptions = {}
+
+__spec__ = None # (!) real value is ''
+
+__stderr__ = stderr
+
+__stdin__ = stdin
+
+__stdout__ = stdout
+
+# intermittent names
+exc_value = Exception()
+exc_traceback=None