Module Expr Str Import alias Import alias Import alias Import alias Assign NameStore ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad FunctionDef arguments args defaults vararg body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad handlers ExceptHandler type NameLoad body Pass Return TupleLoad NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args defaults body Expr Str For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body If Call NameLoad NameLoad Str body Continue TryExcept body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr handlers ExceptHandler type TupleLoad NameLoad NameLoad body Pass decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore ListLoad Assign NameStore Call NameLoad For NameStore AttributeLoad NameLoad attr body Assign TupleStore NameStore NameStore Call NameLoad NameLoad If UnaryOpNot CompareIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Slice NameLoad Return NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad For NameStore AttributeLoad NameLoad attr body TryExcept body If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign TupleStore NameStore NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Continue Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If CompareIs NameLoad NameLoad body Expr Call NameLoad Assign NameStore Num orelse Assign NameStore Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad TryExcept body Assign NameStore Call NameLoad NameLoad Str handlers ExceptHandler type NameLoad body Return With NameLoad body For TupleStore NameStore NameStore Call NameLoad NameLoad body If Call AttributeLoad NameLoad attr Str body Continue TryExcept body If Call AttributeLoad NameLoad attr TupleLoad Str Str body Exec NameLoad Continue Assign NameStore Call AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad If BoolOpAnd UnaryOpNot CompareIn NameLoad NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad name NameStore body Print AttributeLoad NameLoad attr Call AttributeLoad Str attr BinOpAdd NameLoad Num NameLoad For NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr body For NameStore Call AttributeLoad NameLoad attr body Print AttributeLoad NameLoad attr BinOpAdd Str NameLoad Print AttributeLoad NameLoad attr Str Break If NameLoad body Assign NameStore NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad Assign NameStore Num orelse Assign NameStore Num Assign TupleStore NameStore NameStore Call NameLoad NameLoad If UnaryOpNot CompareIn NameLoad NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Return Assign NameStore BinOpAdd AttributeLoad NameLoad attr Str Assign NameStore ListComp NameLoad comprehension NameStore NameLoad Call AttributeLoad NameLoad attr NameLoad For NameStore Call NameLoad NameLoad body Expr Call NameLoad NameLoad NameLoad NameLoad If NameLoad body Assign NameStore NameLoad Return NameLoad decorator_list FunctionDef arguments args defaults body Expr Str If AttributeLoad AttributeLoad NameLoad attr attr body Return NameLoad If BoolOpAnd Call NameLoad NameLoad Str Call NameLoad NameLoad Str body If CompareNotEq Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr body Return NameLoad If BoolOpAnd Call NameLoad NameLoad Str Call NameLoad NameLoad Str body If CompareNotEq Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Global identifier If CompareIsNot NameLoad NameLoad body Return NameLoad ImportFrom alias Assign NameStore Call NameLoad Str Return NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Global identifier Assign NameStore Call NameLoad If CompareIsNot NameLoad NameLoad body Return NameLoad ImportFrom alias Import alias If CompareEq AttributeLoad NameLoad attr Str body ImportFrom alias If Call NameLoad Str body Assign NameStore Call NameLoad Str Str Return NameLoad Assign NameStore Call NameLoad Str BinOpMod Str AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad If BoolOpAnd NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore ListLoad Assign NameStore Call NameLoad For NameStore NameLoad body If BoolOpOr UnaryOpNot NameLoad CompareIn NameLoad NameLoad body Continue Expr Call AttributeLoad NameLoad attr NameLoad If CompareIn AttributeLoad NameLoad attr TupleLoad Str Str body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Str orelse If CompareEq AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str BinOpAdd Str SubscriptLoad AttributeLoad NameLoad attr Slice Num Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Str orelse Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Str If CompareEq AttributeLoad NameLoad attr Str body ImportFrom alias Assign NameStore Call NameLoad Str If NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad SubscriptLoad AttributeLoad NameLoad attr Slice Num Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str For NameStore Call NameLoad body If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr Str If SubscriptLoad NameLoad Index Num body Expr Call AttributeLoad NameLoad attr NameLoad orelse Assign SubscriptStore NameLoad Index Num NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args defaults body Expr Str If CompareEq AttributeLoad NameLoad attr Str body Assign NameStore Str orelse If CompareEq AttributeLoad NameLoad attr Str body Assign NameStore Str orelse Assign NameStore Str ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr handlers ExceptHandler body Pass Raise Call NameLoad NameLoad decorator_list decorator_list Assign AttributeStore NameLoad attr Call NameLoad Str Assign AttributeStore NameLoad attr Call NameLoad Str decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Num FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults TupleLoad TupleLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body If AttributeLoad NameLoad attr body Return Assign NameStore NameLoad For NameStore AttributeLoad NameLoad attr body For NameStore AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad TryExcept body Assign NameStore Call NameLoad NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Break handlers ExceptHandler type NameLoad body Pass If NameLoad body Break If UnaryOpNot NameLoad body Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr If CompareLtE Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return Call AttributeLoad Str attr AttributeLoad NameLoad attr orelse Return BinOpMod Str BinOpMult TupleLoad AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Assign NameStore Str Assign NameStore Num While Num body TryExcept body For NameStore Call NameLoad NameLoad BinOpAdd NameLoad AttributeLoad NameLoad attr body Print SubscriptLoad AttributeLoad NameLoad attr Index NameLoad handlers ExceptHandler type NameLoad body Break orelse AugAssignAdd NameStore AttributeLoad NameLoad attr Assign NameStore NameLoad While CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad If CompareNotIn NameLoad TupleLoad Str Str body Assign NameStore NameLoad If CompareEq NameLoad Str body Break decorator_list decorator_list FunctionDef arguments args defaults body Expr Str Assign AttributeStore NameLoad attr Call NameLoad Str AttributeLoad NameLoad attr If CompareEq SubscriptLoad AttributeLoad NameLoad attr Slice Num Str body Assign AttributeStore NameLoad attr Call NameLoad Str Str orelse Assign AttributeStore NameLoad attr Call NameLoad Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad Str BinOpMod Str AttributeLoad NameLoad attr ListLoad Str Str ListLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Return Str decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body Import alias Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list FunctionDef arguments args defaults body Assign AttributeStore NameLoad attr Call NameLoad decorator_list FunctionDef arguments args defaults body Expr Str If CompareEq AttributeLoad NameLoad attr Str body Import alias alias Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Index Num If Call AttributeLoad NameLoad attr Str body TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Import alias Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad AttributeLoad NameLoad attr attr Index NameLoad Str decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Str If Num body Import alias Assign NameStore Call AttributeLoad NameLoad attr If SubscriptLoad NameLoad Index Num body Assign NameStore SubscriptLoad NameLoad Index Num If Num body Assign NameStore Str If CompareNotEq NameLoad Str body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body Expr Str TryExcept body Import alias handlers ExceptHandler type NameLoad body Pass ExceptHandler type NameLoad body If AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr orelse Print AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args defaults body Expr Str TryExcept body Import alias handlers ExceptHandler type NameLoad body Pass ExceptHandler type NameLoad body If AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr orelse Print AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args defaults body Global identifier Expr Call NameLoad Assign NameStore Call NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad If CompareEq AttributeLoad NameLoad attr Str body Expr Call NameLoad Expr Call NameLoad Expr Call NameLoad Expr Call NameLoad Expr Call NameLoad Expr Call NameLoad Expr Call NameLoad If NameLoad body Expr Call NameLoad If Call NameLoad NameLoad Str body Delete AttributeDel NameLoad attr decorator_list Expr Call NameLoad FunctionDef arguments args defaults body Assign NameStore Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Slice Num If UnaryOpNot NameLoad body Print Str For NameStore AttributeLoad NameLoad attr body Print BinOpMod Str TupleLoad NameLoad Print Str Print BinOpMod Str TupleLoad NameLoad IfExp Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Str Print BinOpMod Str TupleLoad NameLoad IfExp Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Str Print BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Num Assign NameStore ListLoad If CompareIn Str NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad If CompareIn Str NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad If NameLoad body Print Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr Num orelse If CompareIs NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Num orelse If CompareIs NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Num orelse Expr Call AttributeLoad NameLoad attr Num orelse Import alias Print Call AttributeLoad NameLoad attr BinOpMod NameLoad TupleLoad SubscriptLoad AttributeLoad NameLoad attr Index Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A Append module search paths for third-party packages to sys.path.

****************************************************************
* This module is automatically imported during initialization. *
****************************************************************

In earlier versions of Python (up to 1.5a3), scripts or modules that
needed to use site-specific modules would place ``import site''
somewhere near the top of their code.  Because of the automatic
import, this is no longer necessary (but code that does it still
works).

This will append site-specific paths to the module search path.  On
Unix (including Mac OSX), it starts with sys.prefix and
sys.exec_prefix (if different) and appends
lib/python<version>/site-packages as well as lib/site-python.
On other platforms (such as Windows), it tries each of the
prefixes directly, as well as with lib/site-packages appended.  The
resulting directories, if they exist, are appended to sys.path, and
also inspected for path configuration files.

A path configuration file is a file whose name has the form
<package>.pth; its contents are additional directories (one per line)
to be added to sys.path.  Non-existing directories (or
non-directories) are never added to sys.path; no directory is added to
sys.path more than once.  Blank lines and lines beginning with
'#' are skipped. Lines starting with 'import' are executed.

For example, suppose sys.prefix and sys.exec_prefix are set to
/usr/local and there is a directory /usr/local/lib/python2.5/site-packages
with three subdirectories, foo, bar and spam, and two path
configuration files, foo.pth and bar.pth.  Assume foo.pth contains the
following:

  # foo package configuration
  foo
  bar
  bletch

and bar.pth contains:

  # bar package configuration
  bar

Then the following directories are added to sys.path, in this order:

  /usr/local/lib/python2.5/site-packages/bar
  /usr/local/lib/python2.5/site-packages/foo

Note that bletch is omitted because it doesn't exist; bar precedes foo
because bar.pth comes alphabetically before foo.pth; and spam is
omitted because it is not mentioned in either path configuration file.

After these path manipulations, an attempt is made to import a module
named sitecustomize, which can perform arbitrary additional
site-specific customizations.  If this import fails with an
ImportError exception, it is silently ignored.

 N/A sys N/A os N/A __builtin__ N/A traceback N/A PREFIXES N/A N/A sys prefix N/A sys exec_prefix N/A ENABLE_USER_SITE None N/A USER_SITE None N/A USER_BASE None makepath N/A N/A N/A paths N/A N/A dir N/A N/A N/A os path join paths N/A N/A N/A dir N/A N/A N/A os path abspath dir N/A N/A N/A OSError N/A N/A N/A N/A dir N/A N/A N/A os path normcase dir N/A abs__file__ N/A N/A N/A N/A N/A Set all module' __file__ attribute to an absolute path N/A m N/A N/A N/A sys modules values N/A N/A N/A hasattr m __loader__ N/A N/A N/A N/A N/A N/A m __file__ N/A N/A N/A os path abspath N/A m __file__ N/A N/A N/A N/A AttributeError OSError N/A N/A N/A removeduppaths N/A N/A N/A N/A N/A  Remove duplicate entries from sys.path along with making them
    absolute N/A L N/A N/A known_paths N/A set N/A dir N/A sys path N/A N/A N/A dir dircase N/A makepath dir N/A N/A N/A dircase known_paths N/A N/A N/A N/A L append dir N/A N/A N/A known_paths add dircase N/A N/A N/A sys path N/A L N/A known_paths N/A _init_pathinfo N/A N/A N/A N/A N/A Return a set containing all existing directory entries from sys.path N/A d N/A set N/A dir N/A sys path N/A N/A N/A N/A N/A N/A N/A os path isdir dir N/A N/A N/A dir dircase N/A makepath dir N/A N/A N/A d add dircase N/A N/A N/A TypeError N/A N/A N/A d N/A addpackage N/A N/A sitedir name known_paths N/A N/A N/A Process a .pth file within the site-packages directory:
       For each line in the file, either combine it with sitedir to a path
       and add that to known_paths, or execute it if it starts with 'import '.
     N/A N/A known_paths None N/A N/A N/A _init_pathinfo N/A reset 1 N/A N/A reset 0 N/A fullname N/A N/A N/A os path join sitedir name N/A N/A N/A f N/A open fullname rU N/A N/A N/A IOError N/A N/A N/A f N/A N/A N/A n line N/A enumerate f N/A N/A N/A N/A line startswith # N/A N/A N/A N/A N/A N/A N/A line startswith N/A import  import	 N/A N/A line N/A N/A line N/A N/A line rstrip N/A N/A dir dircase N/A makepath sitedir line N/A N/A N/A N/A dircase known_paths N/A N/A N/A os path exists dir N/A N/A N/A N/A N/A sys path append dir N/A N/A N/A known_paths add dircase N/A N/A N/A Exception N/A err N/A N/A N/A sys stderr N/A N/A Error processing line {:d} of {}:
 format N/A n 1 fullname N/A record N/A N/A traceback format_exception N/A N/A sys exc_info N/A N/A line N/A N/A record splitlines N/A N/A N/A sys stderr N/A line N/A N/A sys stderr 
Remainder of file ignored N/A N/A reset N/A N/A known_paths None N/A known_paths N/A addsitedir N/A N/A sitedir known_paths N/A None N/A N/A Add 'sitedir' argument to sys.path if missing and handle .pth files in
    'sitedir' N/A N/A known_paths None N/A N/A known_paths N/A _init_pathinfo N/A reset 1 N/A N/A reset 0 N/A N/A sitedir sitedircase N/A makepath sitedir N/A N/A N/A sitedircase known_paths N/A N/A N/A N/A N/A sys path append sitedir N/A N/A N/A names N/A N/A os listdir sitedir N/A N/A N/A N/A os error N/A N/A N/A dotpth N/A N/A os extsep pth N/A names N/A name N/A name names N/A N/A name endswith dotpth N/A name N/A sorted names N/A N/A N/A addpackage sitedir name known_paths N/A reset N/A N/A known_paths None N/A known_paths N/A check_enableusersite N/A N/A N/A N/A N/A Check if user site directory is safe for inclusion

    The function tests for the command line flag (including environment var),
    process uid/gid equal to effective uid/gid.

    None: Disabled for security reasons
    False: Disabled by user (command line option)
    True: Safe and enabled
     N/A N/A N/A sys flags no_user_site N/A N/A False N/A N/A N/A hasattr os getuid N/A hasattr os geteuid N/A N/A N/A N/A N/A os geteuid N/A N/A os getuid N/A N/A None N/A N/A N/A hasattr os getgid N/A hasattr os getegid N/A N/A N/A N/A N/A os getegid N/A N/A os getgid N/A N/A None N/A True N/A getuserbase N/A N/A N/A N/A N/A Returns the `user base` directory path.

    The `user base` directory can be used to store data. If the global
    variable ``USER_BASE`` is not initialized yet, this function will also set
    it.
     N/A USER_BASE N/A N/A USER_BASE None N/A N/A USER_BASE sysconfig get_config_var N/A USER_BASE N/A get_config_var userbase N/A USER_BASE N/A getusersitepackages N/A N/A N/A N/A N/A Returns the user-specific site-packages directory path.

    If the global variable ``USER_SITE`` is not initialized yet, this
    function will also set it.
     N/A USER_SITE N/A user_base N/A getuserbase N/A N/A USER_SITE None N/A N/A USER_SITE sysconfig get_path N/A os N/A N/A N/A sys platform darwin N/A sysconfig get_config_var N/A N/A get_config_var PYTHONFRAMEWORK N/A N/A USER_SITE N/A get_path purelib osx_framework_user N/A USER_SITE N/A USER_SITE N/A get_path purelib N/A %s_user N/A os name N/A USER_SITE N/A addusersitepackages N/A N/A known_paths N/A N/A N/A Add a per user site-package to sys.path

    Each user has its own python directory with site-packages in the
    home directory.
     N/A user_site N/A getusersitepackages N/A N/A ENABLE_USER_SITE N/A N/A N/A os path isdir user_site N/A N/A N/A addsitedir user_site known_paths N/A known_paths N/A getsitepackages N/A N/A N/A N/A N/A Returns a list containing all global site-packages directories
    (and possibly site-python).

    For each directory present in the global ``PREFIXES``, this function
    will find its `site-packages` subdirectory depending on the system
    environment, and will return a list of full paths.
     N/A sitepackages N/A N/A seen N/A set N/A prefix PREFIXES N/A N/A N/A N/A prefix N/A prefix seen N/A N/A N/A N/A N/A seen add prefix N/A N/A N/A sys platform N/A os2emx riscos N/A N/A N/A N/A sitepackages append N/A N/A N/A os path join prefix Lib site-packages N/A N/A N/A N/A os sep / N/A N/A N/A N/A sitepackages append N/A N/A N/A os path join prefix lib N/A python N/A N/A sys version N/A 3 site-packages N/A N/A N/A sitepackages append N/A N/A N/A os path join prefix lib site-python N/A N/A N/A N/A sitepackages append prefix N/A N/A N/A sitepackages append N/A N/A N/A os path join prefix lib site-packages N/A N/A N/A sys platform darwin N/A sysconfig get_config_var N/A framework N/A get_config_var PYTHONFRAMEWORK N/A framework N/A N/A N/A N/A sitepackages append N/A N/A N/A os path join /Library framework N/A N/A sys version N/A 3 site-packages N/A sitepackages N/A addsitepackages N/A N/A known_paths N/A N/A N/A Add site-packages (and possibly site-python) to sys.path N/A sitedir N/A getsitepackages N/A N/A N/A N/A N/A os path isdir sitedir N/A N/A N/A addsitedir sitedir known_paths N/A known_paths N/A setBEGINLIBPATH N/A N/A N/A N/A N/A The OS/2 EMX port has optional extension modules that do double duty
    as DLLs (and must use the .DLL file extension) for other extensions.
    The library search path needs to be amended so these will be found
    during module import.  Use BEGINLIBPATH so that these are at the start
    of the library search path.

     N/A dllpath N/A N/A N/A os path join N/A sys prefix Lib lib-dynload N/A libpath N/A N/A N/A N/A os environ N/A BEGINLIBPATH split ; N/A N/A libpath N/A -1 N/A N/A N/A N/A libpath append dllpath N/A N/A N/A libpath N/A -1 dllpath N/A N/A N/A os environ N/A BEGINLIBPATH N/A N/A ; join libpath N/A setquit N/A N/A N/A N/A N/A Define new builtins 'quit' and 'exit'.

    These are objects which make the interpreter exit when called.
    The repr of each object contains a hint at how it works.

     N/A N/A N/A os sep : N/A N/A eof Cmd-Q N/A N/A N/A N/A os sep \ N/A N/A eof Ctrl-Z plus Return N/A N/A eof Ctrl-D (i.e. EOF) Quitter N/A object N/A __init__ N/A N/A self name N/A N/A N/A N/A self name name N/A __repr__ N/A N/A self N/A N/A N/A N/A Use %s() or %s to exit N/A N/A self name eof N/A __call__ N/A N/A self code N/A None N/A N/A N/A N/A N/A N/A N/A sys stdin close N/A N/A N/A N/A N/A N/A SystemExit code N/A N/A N/A N/A __builtin__ quit N/A Quitter quit N/A N/A __builtin__ exit N/A Quitter exit N/A _Printer N/A object N/A N/A interactive prompt objects for printing the license text, a list of
    contributors and the copyright notice. N/A MAXLINES 23 __init__ N/A N/A self name data files dirs N/A N/A N/A N/A N/A N/A self __name name N/A N/A self __data data N/A N/A self __files files N/A N/A self __dirs dirs N/A N/A self __lines None N/A __setup N/A N/A self N/A N/A N/A N/A self __lines N/A N/A N/A data None N/A dir N/A self __dirs N/A N/A filename N/A self __files N/A N/A filename N/A N/A N/A os path join dir filename N/A N/A N/A fp N/A file filename rU N/A data N/A N/A fp read N/A N/A N/A fp close N/A N/A N/A N/A IOError N/A N/A N/A data N/A N/A N/A N/A data N/A N/A data N/A self __data N/A N/A self __lines N/A N/A data split N/A N/A self __linecnt N/A len N/A self __lines N/A __repr__ N/A N/A self N/A N/A N/A N/A N/A self __setup N/A N/A N/A len N/A self __lines N/A self MAXLINES N/A N/A N/A N/A join N/A self __lines N/A N/A N/A Type %s() to see the full %s text N/A N/A N/A self __name 2 N/A __call__ N/A N/A self N/A N/A N/A N/A N/A self __setup N/A prompt Hit Return for more, or q (and Return) to quit:  N/A lineno 0 N/A 1 N/A N/A N/A N/A i N/A range lineno N/A lineno N/A self MAXLINES N/A N/A N/A N/A self __lines N/A i N/A N/A N/A IndexError N/A N/A N/A N/A lineno N/A self MAXLINES N/A key None N/A N/A key None N/A N/A key N/A raw_input prompt N/A N/A key N/A q N/A N/A key None N/A N/A key q N/A N/A N/A N/A setcopyright N/A N/A N/A N/A N/A Set 'copyright' and 'credits' in __builtin__ N/A N/A __builtin__ copyright N/A _Printer copyright N/A sys copyright N/A N/A N/A N/A sys platform N/A 4 java N/A N/A N/A __builtin__ credits N/A _Printer credits Jython is maintained by the Jython developers (www.jython.org). N/A N/A N/A __builtin__ credits N/A _Printer credits     Thanks to CWI, CNRI, BeOpen.com, Zope Corporation and a cast of thousands
    for supporting Python development.  See www.python.org for more information. N/A here N/A N/A N/A os path dirname N/A os __file__ N/A N/A __builtin__ license N/A _Printer license N/A See http://www.python.org/%.3s/license.html N/A sys version N/A LICENSE.txt LICENSE N/A N/A N/A N/A os path join here N/A os pardir here N/A os curdir N/A _Helper N/A object N/A N/A Define the builtin 'help'.
    This is a wrapper around pydoc.help (with a twist).

     __repr__ N/A N/A self N/A N/A N/A Type help() for interactive help, or help(object) for help about object. N/A __call__ N/A N/A self N/A args kwds N/A N/A pydoc N/A N/A N/A pydoc help args kwds N/A N/A sethelper N/A N/A N/A N/A N/A N/A __builtin__ help N/A _Helper N/A aliasmbcs N/A N/A N/A N/A N/A On Windows, some default encodings are not provided by Python,
    while they are always available as "mbcs" in each locale. Make
    them usable by aliasing to "mbcs" in such a case. N/A N/A N/A sys platform win32 N/A N/A locale codecs N/A enc N/A N/A N/A locale getdefaultlocale N/A 1 N/A N/A N/A enc startswith cp N/A N/A N/A N/A N/A N/A codecs lookup enc N/A N/A N/A LookupError N/A N/A encodings N/A N/A N/A encodings _cache N/A enc N/A encodings _unknown N/A N/A N/A N/A encodings aliases aliases N/A enc mbcs N/A setencoding N/A N/A N/A N/A N/A Set the string encoding used by the Unicode implementation.  The
    default is 'ascii', but if you're willing to experiment, you can
    change this. N/A encoding ascii N/A 0 N/A N/A locale N/A loc N/A N/A locale getdefaultlocale N/A N/A loc N/A 1 N/A N/A encoding N/A loc N/A 1 N/A 0 N/A N/A encoding undefined N/A N/A encoding ascii N/A N/A N/A N/A sys setdefaultencoding encoding N/A execsitecustomize N/A N/A N/A N/A N/A Run custom site specific code, if available. N/A N/A N/A sitecustomize N/A N/A N/A ImportError N/A N/A N/A N/A Exception N/A N/A N/A N/A sys flags verbose N/A N/A N/A N/A sys excepthook N/A N/A sys exc_info N/A N/A N/A sys stderr 'import sitecustomize' failed; use -v for traceback N/A execusercustomize N/A N/A N/A N/A N/A Run custom user specific code, if available. N/A N/A N/A usercustomize N/A N/A N/A ImportError N/A N/A N/A N/A Exception N/A N/A N/A N/A sys flags verbose N/A N/A N/A N/A sys excepthook N/A N/A sys exc_info N/A N/A N/A sys stderr 'import usercustomize' failed; use -v for traceback N/A main N/A N/A N/A N/A N/A ENABLE_USER_SITE N/A N/A abs__file__ N/A known_paths N/A removeduppaths N/A N/A ENABLE_USER_SITE None N/A N/A ENABLE_USER_SITE N/A check_enableusersite N/A known_paths N/A addusersitepackages known_paths N/A known_paths N/A addsitepackages known_paths N/A N/A N/A sys platform os2emx N/A N/A N/A setBEGINLIBPATH N/A N/A setquit N/A N/A setcopyright N/A N/A sethelper N/A N/A aliasmbcs N/A N/A setencoding N/A N/A execsitecustomize N/A ENABLE_USER_SITE N/A N/A N/A execusercustomize N/A N/A hasattr sys setdefaultencoding N/A N/A N/A sys setdefaultencoding N/A N/A N/A main _script N/A N/A N/A N/A N/A help     %s [--user-base] [--user-site]

    Without arguments print some useful information
    With arguments print the value of USER_BASE and/or USER_SITE separated
    by '%s'.

    Exit codes with --user-base or --user-site:
      0 - user site directory is enabled
      1 - user site directory is disabled by user
      2 - uses site directory is disabled by super user
          or for security reasons
     >2 - unknown error
     N/A args N/A N/A sys argv N/A 1 N/A N/A args N/A N/A sys.path = [ N/A dir N/A sys path N/A N/A N/A     %r, N/A dir N/A ] N/A N/A USER_BASE: %r (%s) N/A USER_BASE N/A N/A N/A N/A os path isdir USER_BASE exists doesn't exist N/A N/A USER_SITE: %r (%s) N/A USER_SITE N/A N/A N/A N/A os path isdir USER_SITE exists doesn't exist N/A N/A ENABLE_USER_SITE: %r ENABLE_USER_SITE N/A N/A N/A sys exit 0 N/A buffer N/A N/A N/A --user-base args N/A N/A N/A N/A buffer append USER_BASE N/A N/A --user-site args N/A N/A N/A N/A buffer append USER_SITE N/A buffer N/A N/A N/A N/A N/A os pathsep join buffer N/A ENABLE_USER_SITE N/A N/A N/A N/A sys exit 0 N/A N/A N/A ENABLE_USER_SITE False N/A N/A N/A N/A sys exit 1 N/A N/A N/A ENABLE_USER_SITE None N/A N/A N/A N/A sys exit 2 N/A N/A N/A N/A sys exit 3 N/A N/A textwrap N/A N/A N/A textwrap dedent N/A help N/A N/A N/A sys argv N/A 0 N/A os pathsep N/A N/A N/A sys exit 10 N/A N/A N/A __name__ __main__ N/A N/A N/A _script