Module Expr Str Import alias Assign NameStore AttributeLoad NameLoad attr If CompareIn Str AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str orelse If CompareEq AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str orelse If CompareEq AttributeLoad NameLoad attr Str body If CompareIn Str AttributeLoad NameLoad attr body If CompareIn Str AttributeLoad NameLoad attr body Assign NameStore BinOpAdd SubscriptLoad AttributeLoad NameLoad attr Index Str SubscriptLoad AttributeLoad NameLoad attr Index Str orelse Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str TryExcept body Assign NameStore Call NameLoad NameLoad handlers ExceptHandler type NameLoad body Pass orelse Expr Call AttributeLoad NameLoad attr Expr Call NameLoad NameLoad
N/A N/A Hook to allow user-specified customization code to run.

As a policy, Python doesn't run user-specified code on startup of
Python programs (interactive sessions execute the script specified in
the PYTHONSTARTUP environment variable if it exists).

However, some programs or sites may find it convenient to allow users
to have a standard customization file, which gets run when a program
requests it.  This module implements such a mechanism.  A program
that wishes to use the mechanism must execute the statement

    import user

The user module looks for a file .pythonrc.py in the user's home
directory and if it can be opened, execfile()s it in its own global
namespace.  Errors during this phase are not caught; that's up to the
program that imports the user module, if it wishes.

The user's .pythonrc.py could conceivably test for sys.version if it
wishes to do different things depending on the Python version.

 N/A os N/A home N/A os curdir N/A N/A HOME N/A os environ N/A N/A home N/A N/A os environ N/A HOME N/A N/A N/A N/A os name posix N/A N/A home N/A N/A N/A os path expanduser ~/ N/A N/A N/A N/A os name nt N/A N/A N/A HOMEPATH N/A os environ N/A N/A N/A HOMEDRIVE N/A os environ N/A N/A home N/A N/A N/A os environ N/A HOMEDRIVE N/A N/A os environ N/A HOMEPATH N/A N/A home N/A N/A os environ N/A HOMEPATH N/A pythonrc N/A N/A N/A os path join home .pythonrc.py N/A N/A N/A f N/A open pythonrc N/A N/A N/A IOError N/A N/A N/A N/A N/A N/A f close N/A N/A execfile pythonrc