Re: [Python-Dev] .pythonrc.py in man page
On Sun, Feb 22, 2009 at 5:58 PM, Mitchell L Model <MLMLists@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/)
On Sun, Feb 22, 2009 at 8:25 PM, Guido van Rossum <guido@python.org> wrote:
Perhaps this entry in the man page is obsolete and should be removed?
Not at all.
For what it's worth, the 2.6.1 documentation states: "Deprecated since version 2.6: The user module has been removed in Python 3.0." If user.py has indeed been removed, then Mitchell is correct. http://docs.python.org/library/user.html -- Daniel Stutzbach, Ph.D. President, Stutzbach Enterprises, LLC <http://stutzbachenterprises.com>
On Sun, Feb 22, 2009 at 6:30 PM, Daniel Stutzbach <daniel@stutzbachenterprises.com> wrote:
On Sun, Feb 22, 2009 at 8:25 PM, Guido van Rossum <guido@python.org> wrote:
Perhaps this entry in the man page is obsolete and should be removed?
Not at all.
For what it's worth, the 2.6.1 documentation states: "Deprecated since version 2.6: The user module has been removed in Python 3.0." If user.py has indeed been removed, then Mitchell is correct.
Fair enough. I missed the 3.x context. Go ahead and fix the man page! -- --Guido van Rossum (home page: http://www.python.org/~guido/)
participants (2)
-
Daniel Stutzbach
-
Guido van Rossum