Issue1651583

classification
Title: bug in pydoc.py -- test for None in sys.executable
Type: Severity: normal
Components: None Versions:
Milestone:
process
Status: closed Resolution: invalid
Dependencies: Superseder:
Assigned To: Nosy List: dobbs, fwierzbicki
Priority: normal Keywords: patch

Created on 2007-02-04.03:57:44 by dobbs, last changed 2008-11-03.20:52:11 by fwierzbicki.

Files
File name Uploaded Description Edit Remove
pydoc.py dobbs, 2007-02-04.03:57:45 modified from branches/2.3/CPythonLibpydoc.py
Messages
msg2639 (view) Author: Eric Dobbs (dobbs) Date: 2007-02-04.03:57:44
pydoc.Helper.__init__ throws an exception in the following call:
os.path.dirname(sys.executable)

dirname is implemented in javapath.py and expects a string sys.executable is implemented in PySystemState.java and is Py.None

python-dev had a discussion about sys.executable last March: http://mail.python.org/pipermail/python-dev/2006-March/062458.html Guido specifically mentioned embedded python as an example where sys.executable probably should return None, and by similar logic I think None is the right answer for jython too.
msg3741 (view) Author: Frank Wierzbicki (fwierzbicki) Date: 2008-11-03.20:52:11
sys.executable now exists in trunk and so does not need a work around.
History
Date User Action Args
2008-11-03 20:52:11fwierzbickisetstatus: open -> closed
resolution: invalid
messages: + msg3741
nosy: + fwierzbicki
2007-02-04 03:57:44dobbscreate