[Idle-dev] Built-in help under Mac OS X

Kurt B. Kaiser kbk at shore.net
Thu Feb 19 14:14:07 EST 2004


Jonathan Brandmeyer <jbrandmeyer at earthlink.net> writes:

> 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 the
> current platform is MS Windows by checking for the substring 'win' in
> sys.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"

Argh.  Thanks for the report.  Please enter it into the Python bug
tracker at

http://sourceforge.net/tracker/?group_id=5470&atid=105470

Use the 'IDLE' category.

That way it won't get lost.

-- 
KBK



More information about the IDLE-dev mailing list