This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: IDLE docs broken on OSX
Type: Stage:
Components: IDLE Versions: Python 2.3
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: kbk Nosy List: jbrandmeyer, kbk
Priority: normal Keywords:

Created on 2004-02-19 19:59 by jbrandmeyer, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
idle-docs.patch jbrandmeyer, 2004-03-02 19:21 Patch to EditorWindow.py and configHelpSourceEdit.py
Messages (4)
msg20059 - (view) Author: Jonathan Brandmeyer (jbrandmeyer) Date: 2004-02-19 19:59
Under Apple's OSX operating system, the variable
sys.platform is named'darwin'.  In at least one place,
idle makes a test to see if thecurrent platform is MS
Windows by checking for the substring 'win'
insys.platform, which leads to incorrect behavior on
the Mac.

In particular, in
lib/python2.3/idlelib/EditorWindow.py, member function
EditorWindow.python_docs() behaves incorrectly on OS X.
 I believe that if the test for MS Windows is
completely removed that you will get correct behavior
on all platforms, based on my reading of the webbrowser
module source.

Please change that function to the following (near line
313):    

>>>    def python_docs(self, event=None):
>>>        webbrowser.open(self.help_url)
>>>        return "break"
msg20060 - (view) Author: Jonathan Brandmeyer (jbrandmeyer) Date: 2004-03-02 19:06
Logged In: YES 
user_id=676765

There are a series of changes related to the one I mentioned
before.  In addition, Safari requires the full URI to local
files when started via the webbrowser module (or via several
other methods) even though it automatically prepends that
string when entered in the address bar.  So, I have an
additional patch that makes appropriate modifications for
file:/// prefixed paths.
msg20061 - (view) Author: Kurt B. Kaiser (kbk) * (Python committer) Date: 2004-07-15 05:01
Logged In: YES 
user_id=149084

EditorWindow.py 1.60
configHelpSourceEdit.py 1.7
Backport candidate.

Please test on Mac.
msg20062 - (view) Author: Kurt B. Kaiser (kbk) * (Python committer) Date: 2005-01-19 04:25
Logged In: YES 
user_id=149084

Backported to 2.3.5
History
Date User Action Args
2022-04-11 14:56:02adminsetgithub: 39954
2004-02-19 19:59:33jbrandmeyercreate