[issue27891] Consistently group and sort imports within idlelib modules.

2016-08-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset 28ce37a2d888 by Terry Jan Reedy in branch 'default': Issue #27891: Tweak new idlelib README entry. https://hg.python.org/cpython/rev/28ce37a2d888 -- ___ Python tracker

[issue27891] Consistently group and sort imports within idlelib modules.

2016-08-30 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker ___ ___

[issue27891] Consistently group and sort imports within idlelib modules.

2016-08-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 96ac4cd43a20 by Terry Jan Reedy in branch 'default': Issue #27891: Consistently group and sort imports within idlelib modules. https://hg.python.org/cpython/rev/96ac4cd43a20 -- nosy: +python-dev ___ Pytho

[issue27891] Consistently group and sort imports within idlelib modules.

2016-08-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: Patch 2 has minor revisions to hyperparser, mainmenu, pyshell, and adds material to README.txt. -- Added file: http://bugs.python.org/file44288/import-27891-2.diff ___ Python tracker

[issue27891] Consistently group and sort imports within idlelib modules.

2016-08-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: Followup is #27892 -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue27891] Consistently group and sort imports within idlelib modules.

2016-08-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: Part of previous message should be 'at the top where it belongs'. With attached patch, each file compiles and (incomplete) tests pass. Will examine each with side-by-side diff. There might be artifacts from another patch left. -- keywords: +patch Ad

[issue27891] Consistently group and sort imports within idlelib modules.

2016-08-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: On 2002 Sept 14, the following was merged into editor.py (then EditorWindow.py) as part of the smart indenting code added to the bottom. import tokenize _tokenize del tokenize This now would usually be written "import tokenize as _tokenize". Stdlib modules w

[issue27891] Consistently group and sort imports within idlelib modules.

2016-08-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: This issue includes adding the idlelib import coding standard to idlelib.README. The delayed-import issue is #27893. A second followup will be to stop importing tkinter modules 'as' their Py 2 names. Change "from tkinter import font as TkFont" to "from tkinte

[issue27891] Consistently group and sort imports within idlelib modules.

2016-08-29 Thread Terry J. Reedy
New submission from Terry J. Reedy: PEP 8 suggests separately grouping stdlib, dependency, and local package imports. Within idlelib, idlelib imports are treated as local package imports. Tkinter is sometimes treated as a dependency, which makes its imports easy to notice, and I want to do t