A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2009-February/086376.html below:

[Python-Dev] .pythonrc.py in man page

[Python-Dev] .pythonrc.py in man page [Python-Dev] .pythonrc.py in man pageGuido van Rossum guido at python.org
Mon Feb 23 03:25:46 CET 2009
On Sun, Feb 22, 2009 at 5:58 PM, Mitchell L Model <MLMLists at comcast.net> wrote:
> The python man page, dated 2005 even in 3.1, has this curious entry:
>
>      ~/.pythonrc.py
>              User-specific initialization file loaded by the user module;
> not
>              used by default or by most applications.
>
> 1. I couldn't figure out what the user module is.

user.py.

> 2. I couldn't figure out what "not used by default or by most applications"
> meant: what would cause it to get loaded when python starts up? how would an
> application load it even if the user's environment didn't cause it to get
> loaded?

The docstring in user.py explains this.

> 3. Why would this file exist if the environment variable PYTHONSTARTUP can
> specify a file to be loaded at startup?

PYTHONSTARTUP is only used in interactive sessions.

> Perhaps this entry in the man page is obsolete and should be removed?

Not at all.

-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4