Repository navigation
IDLE documentation for Unix obsolete/incorrect #49316
Description
Activity
Documentation for IDLE states:
Starting IDLE on UNIX On Unix, just type "idle" at a command prompt. This should bring up a Window similar to the one above. (If it doesn't, look for the "idle" script in the [Tools/idle](https://github.com/python/cpython/blob/main/Tools/idle) directory in the Python source distribution.)http://www.python.org/idle/doc/idlemain.html
I believe that is obsolete, I cannot see a Tools/idle directory in
either 2.5 or 2.6. Perhaps better instructions might be:(If it doesn't, run "python LOC/idlelib/idle.py" where LOC is the location of your Python source distribution, usually /usr/lib/python*.)or similar.
- addeddocsDocumentation in the Doc dirDocumentation in the Doc dir
on Jan 26, 2009 LOL. That doc was apparently last revised in 2000 for the IDLE released
with 1.5.2 (see screenshot). Other needed updates I see are: 'Shell'
and 'Options' have been added to the menu line; we now have unicode
text; screenshots look different (and nicer) on newer Tk on WinXP and
could/should be redone.If it were decided to update this and add it to the doc package, I would
help in some way.Well, having nice full docs for IDLE would be nice, but I won't do
anything on this matter except committing a full patch :)Is there an HTML to acceptable RST converter?
I don't know any. But since rst is so lightweight, it is usually not too
much of a pain to just copy the text from the browser and reintroduce
formatting because you're likely to have to go over and edit the whole
content anyway.This looks like a perfect match for GHOP.
- addedtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
on Apr 26, 2009 Attached is a patch updating the IDLE web documentation as well as the help file displayed when you click the Help -> Idle Help menu item in IDLE. It looks like the IDLE web documentation was lifted directly from the help file at some point and they have gotten out of sync.
The section of the document describing starting IDLE was updated in March of 2009, so I've left that alone. I've updated the Menu option descriptions in both files, including: adding missing items, making the help file and web document descriptions the same, and using a consistent format.
The patch is against release27-maint.
I reviewed the texts, applied the patches, ran idle, edited Demo/classes/Dates.py run module inside Idle. Generated the docs inside Doc, with make html and reviewed the IDLE doc in ~/python/py3k/Doc/build/html/library/idle.html?highlight=idle
Only in the 3.2 tree.
9 remaining items
Zachary,
I like your idea about joining idle.rst with help.txt but I think that should be covered under a separate bug issue. The way I see it this bug is about fixing the current documentation. So I suggest you open up a new issue and get people's take on it. I think a parser could be run at installation to convert idle.rst to help.txt or maybe IDLE could be modified to simply render idle.rst correctly. I am not sure what the best approach will be.PS Thanks for the review I should have your suggested changes integrating into a new patch today.
Right you are, Todd; I'll get another issue opened for that soon.
Zachary,
Thanks for your excellent review!!!! Your feedback was very helpful for making the patch even better.Based on Zachary's comments I have uploaded a new version of the patch which is version 3.
Idle needs to find its text help files at runtime, so they are installed as data alongside with the code. The rst doc files however can be installed anywhere or not installed at all, so we can’t change Idle to look for them.
An alternate idea to avoid duplication could be to copy the rst file to the code directory at build time.
Regardless of the topic of merge, the suggested improvements for both idle.rst and help.txt are great! Thanks for working the patch, Todd.
I am +1 with the changes. If no else has any comments, I can go ahead with committing this.I'd like to see Éric, Ezio, and my comments on v3 in Rietveld addressed, but after that I'm good with it :)
bpo-16893 has been filed to deal with the idea of merging the files.
Thanks Senthil but I don't deserve all the credit this issue is a team effort with lots of help from Zach, Éric, and Ezio. All of which have improved the patch's quality a great deal. Hopefully we can address the issues then let you make the commit soon.
I took all the comments and created a new patch version 4 which should address all the issues. Thanks for the excellent review and support from everybody. I think this patch is a much higher quality now.
Version 4 looks good to me!
New changeset d1ef91025d70 by Andrew Svetlov in branch 'default':
Issue bpo-5066: Update IDLE docs
http://hg.python.org/cpython/rev/d1ef91025d70Pushed. Thanks.
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields: