[issue23218] Modernize the IDLE Find/Replace/Find in Files dialogs

2016-11-05 Thread Al Sweigart
Al Sweigart added the comment: *Bump* Just wanted to bring attention to this issue. We could keep "Regular expression" instead of "Regex" for the label (Sublime Text and other editors have "Regular expression") I think Mark's p

[issue28524] Set default argument of logging.disable() to logging.CRITICAL

2016-11-05 Thread Al Sweigart
Al Sweigart added the comment: Setting up different configurations for dev/prod is a bit more complicated than I'd like for most projects. I'd instead just call logging.disable(logging.CRITICAL). The entire point of this is just for the convenience of being able to disable logging messages

[issue28524] Set default argument of logging.disable() to logging.CRITICAL

2016-10-25 Thread Al Sweigart
Al Sweigart added the comment: As a general indicator, I did a google search for "logging.disable(logging.XXX)" for the different levels. The number of results passing ERROR, WARN, DEBUG, and INFO are under a couple dozen each. But the number of results for "logging.disable(l

[issue28524] Set default argument of logging.disable() to logging.CRITICAL

2016-10-24 Thread Al Sweigart
Al Sweigart added the comment: > How about logger.disabled = True. This seems to violate "there should be one and only one way to do it". What happens when logging.disabled is True but then logging.disable(logging.NOTSET) is called? I could see this being a gotcha. Since log

[issue28524] Set default argument of logging.disable() to logging.CRITICAL

2016-10-24 Thread Al Sweigart
Al Sweigart added the comment: xiang.zhang: The use case I've found is that I often have logging enabled while writing code, and then want to shut it off once I've finished. This might not be everyone's use case, but this is a backwards-compatible change since it's currently a required

[issue28524] Set default argument of logging.disable() to logging.CRITICAL

2016-10-24 Thread Al Sweigart
New submission from Al Sweigart: As a convenience, we could make the default argument for logging.disable()'s lvl argument as logging.CRITICAL. This would make disabling all logging messages: logging.disable() ...instead of the more verbose: logging.disable(logging.CRITICAL) This one-line

[issue27615] IDLE's debugger steps into PyShell.py for calls to print() et al

2016-07-25 Thread Al Sweigart
New submission from Al Sweigart: Currently if the user "steps into" a print(), input(), sys.stdout.write() or other stdio-related call with the Source checkbox checked, it brings up PyShell.py. This is often confusing for beginner programmers (the target audience of IDLE) and

[issue24990] Foreign language support in turtle module

2015-09-03 Thread Al Sweigart
Al Sweigart added the comment: Good idea. I'll bring it up on the python-ideas list. -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue24990] Foreign language support in turtle module

2015-09-02 Thread Al Sweigart
Al Sweigart added the comment: I volunteer to produce the patch. I know Bryson's "Teach Your Kids to Code" book (which features Python's turtle module) hasn't been translated to other languages yet. It would be nice to get this committed sooner rather than later. I'm ope

[issue24990] Foreign language support in turtle module

2015-09-02 Thread Al Sweigart
New submission from Al Sweigart: I'd like to propose adding foreign language names for the names in the turtle module. This would effectively take this code: import turtle t = turtle.Pen() t.pencolor('green') t.forward(100) ...and have this code in French be completely

[issue24826] ability to integrate editor, shell, debugger in one window

2015-08-08 Thread Al Sweigart
Al Sweigart added the comment: Is this a duplicate of https://bugs.python.org/issue9262 Either way, there's some good discussion there and also on https://bugs.python.org/issue24750 (ctrl-f for tabbed) -- nosy: +Al.Sweigart ___ Python tracker rep

[issue24799] IDLE should detect changes to open files by other processes

2015-08-05 Thread Al Sweigart
New submission from Al Sweigart: Many IDEs will check for changes to their opened files made by other programs. This is usually done with a quick check when the IDE's window gets focus. A dialog will tell the user the file has changed on disk and ask if they want to reload it. This dialog

[issue24225] IDLE test filenames don't match script filenames.

2015-05-19 Thread Al Sweigart
Changes by Al Sweigart asweig...@gmail.com: Added file: http://bugs.python.org/file39428/idletest_renaming.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24225

[issue24225] IDLE test filenames don't match script filenames.

2015-05-19 Thread Al Sweigart
Al Sweigart added the comment: The idle_renaming.patch file is for the file renamings under idlelib The idletest_renaming.patch file is for the file renamings under idlelib/idle_test The idle_updating_imports.patch file is for the content updates (mostly for import statements) due

[issue24225] IDLE test filenames don't match script filenames.

2015-05-19 Thread Al Sweigart
Al Sweigart added the comment: (I can reformat these patch files if that helps.) -- Added file: http://bugs.python.org/file39429/idle_updating_imports.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24225

[issue24225] IDLE test filenames don't match script filenames.

2015-05-19 Thread Al Sweigart
Al Sweigart added the comment: For reference, here's all the files and their new filenames: aboutDialog.pyabout_dialog.py AutoComplete.pyautocomplete.py AutoCompleteWindow.pyautocomplete_window.py AutoExpand.pyautoexpand.py Bindings.pybindings.py CallTips.pycalltips.py

[issue24225] IDLE test filenames don't match script filenames.

2015-05-19 Thread Al Sweigart
Al Sweigart added the comment: Serhiy: I completely understand. My first instinct is to look at mass renamings and dismiss it as cosmetic changes for the sake of cosmetic changes. However, there are several problems that this fix corrects: 1) It makes it obvious which identifiers are modules

[issue24225] IDLE test filenames don't match script filenames.

2015-05-18 Thread Al Sweigart
New submission from Al Sweigart: From the idlelib/idle_test/README.txt file: The idle_test subdirectory should contain a test_xyz.py for each, where 'xyz' is lowercased even if xyz.py is not. However, this means the test file names are inconsistent with the scripts they test. Of the 20 test_

[issue23961] IDLE autocomplete window does not automatically close when selection is made

2015-04-18 Thread Al Sweigart
Al Sweigart added the comment: I should clarify: I'm referring to the Show Completion feature. The repro steps are (on Windows 7 64-bit, Python 3.5) 1. Type pri 2. Press Ctrl+Space or click Edit Show Completions. The autocomplete window appears. 3. Press Tab. The text updates from pri

[issue23964] Update README documentation for IDLE tests.

2015-04-18 Thread Al Sweigart
Al Sweigart added the comment: I'll add a note about running the human-mediated tests to section 0. Running python -m test.test_idle for 64-bit 3.4.3 on Windows 7 works fine for me (Ran 142 tests in 0.605s OK) I'll take out the indented code. You make a good point about copy/paste. I've

[issue15786] IDLE code completion window can hang or misbehave with mouse

2015-04-18 Thread Al Sweigart
Al Sweigart added the comment: Additionally, pressing tab after the autocomplete window has appeared should not just update the text but also close the autocomplete window. The repro steps are (on Windows 7 64-bit, Python 3.5): 1. Type pri 2. Press Ctrl+Space or click Edit Show Completions

[issue15786] IDLE code completion window can hang or misbehave with mouse

2015-04-17 Thread Al Sweigart
Changes by Al Sweigart asweig...@gmail.com: -- nosy: +Al.Sweigart ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15786 ___ ___ Python-bugs-list

[issue23977] Enhancing IDLE's test_delegator.py unit test

2015-04-16 Thread Al Sweigart
New submission from Al Sweigart: As part of trying to understand the IDLE codebase, I'm taking a look at IDLE's unit tests. -Added more specific messages when test_delegator.py's assertions fail. -Added detail to the comments. -Added an explicit test of the resetcache() method (which before

[issue23964] Update README documentation for IDLE tests.

2015-04-15 Thread Al Sweigart
Changes by Al Sweigart asweig...@gmail.com: -- type: - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23964 ___ ___ Python-bugs-list

[issue23964] Update README documentation for IDLE tests.

2015-04-15 Thread Al Sweigart
New submission from Al Sweigart: It took me a while to read through the idle_test documentation to figure out how to run the test. Similar to the Profiler documentation, I've added Instant User's Manual section at the top of the file, as well as edited the text and formatting a bit

[issue23937] IDLE start maximized

2015-04-15 Thread Al Sweigart
Al Sweigart added the comment: It is egregious for apps to assume that they are the only thing running I would agree for most apps, but I tend to think of IDEs as something that is generally run full screen. I'll note that Eclipse starts maximized, while PyCharm starts windowed. Though both

[issue23961] IDLE autocomplete window does not automatically close when selection is made

2015-04-14 Thread Al Sweigart
New submission from Al Sweigart: All autocomplete features (for example, Eclipse Android Studio) cause the autocomplete window to disappear when a selection is made. When tab is pressed in IDLE, the window does not disappear. IDLE should be changed so that the window goes away when tab

[issue23961] IDLE autocomplete window does not automatically close when selection is made

2015-04-14 Thread Al Sweigart
Al Sweigart added the comment: Edit: Looking into it further, this behavior was originally for when the Show Completions dropdown wasn't being displayed. In that case, pressing tab would complete only up to the first ambiguous completion. For example, typing os.ge and pressing tab would

[issue23954] Pressing enter/return or clicking IDLE's autocomplete does not select the option

2015-04-14 Thread Al Sweigart
New submission from Al Sweigart: Currently, when you press Ctrl+Space or select Edit Show Completions, a dropdown menu appears and lets you select an autocomplete option. If you press Tab, the highlighted option in the dropdown is selected and your typing autocompletes. However, pressing

[issue23937] IDLE start maximized

2015-04-13 Thread Al Sweigart
Al Sweigart added the comment: +1 to this idea. In classroom settings when I look over the shoulder of students, usually they're working with IDLE or an editor in a much smaller window. When I point out how to maximize it, they always enjoy the additional space. It seems like a minor thing

[issue23922] turtle.py and turtledemo use the default tkinter icon

2015-04-12 Thread Al Sweigart
New submission from Al Sweigart: The turtle.py and turtledemo scripts launch windows that have the default tkinter icon. Instead, they should make use of the IDLE icon (which are already in the idlelib/Icons folder) -- components: IDLE messages: 240564 nosy: Al.Sweigart priority

[issue23922] turtle.py and turtledemo use the default tkinter icon

2015-04-12 Thread Al Sweigart
Al Sweigart added the comment: On my system (Windows 7) it shows up with a blue feather icon, which I is the generic Tk icon. The reason I suggest the IDLE icon is 1) we already have it and 2) it's the python logo on top of a generic sheet of paper icon so it fits well enough imo, and 3) I'm

[issue23546] Windows, 'Edit with IDLE', and multiple installed versions

2015-04-11 Thread Al Sweigart
Changes by Al Sweigart asweig...@gmail.com: -- title: Windows, 'Edit withIDLE', and multiple installed versions - Windows, 'Edit with IDLE', and multiple installed versions ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23546

[issue18704] IDLE: Integrate external code analysis tools

2015-04-11 Thread Al Sweigart
Al Sweigart added the comment: -1 on adding PEP8 checks. PEP8 is a guideline, and having IDLE present them as warnings or errors elevates their importance. Also, this would involve adding the pep8 dependency to the standard library. A linter might be a good idea, but not a style checker

[issue17776] IDLE Internationalization

2015-04-11 Thread Al Sweigart
Al Sweigart added the comment: Someone should do a more refined search with an re that excludes '_' preceded or followed by an identifier char, to skip '__xyz__' or '_x' or 'y_'. I've run this regex over all the .py and .pyw files in idlelib: [^_'a-zA-Z0-9]_[^a-zA-Z0-9_] The only possible

[issue23218] Modernize the IDLE Find/Replace/Find in Files dialogs

2015-01-18 Thread Al Sweigart
Changes by Al Sweigart asweig...@gmail.com: Added file: http://bugs.python.org/file37760/idle_find_ui_redesign2.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23218

[issue23218] Modernize the IDLE Find/Replace/Find in Files dialogs

2015-01-18 Thread Al Sweigart
Changes by Al Sweigart asweig...@gmail.com: Added file: http://bugs.python.org/file37759/idle_grep_compare2.png ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23218

[issue23218] Modernize the IDLE Find/Replace/Find in Files dialogs

2015-01-18 Thread Al Sweigart
Al Sweigart added the comment: I've made some minor updates: Adding colons to the labels and right-justifying them. These updates can be seen in the second comparison screenshot. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org

[issue23181] Unicode code point should be two words in documentation

2015-01-13 Thread Al Sweigart
Changes by Al Sweigart asweig...@gmail.com: -- versions: +Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23181 ___ ___ Python-bugs-list

[issue23180] Rename IDLE's Windows menu item to Window

2015-01-11 Thread Al Sweigart
Al Sweigart added the comment: Added another patch for the documentation changes for the menu renaming. -- Added file: http://bugs.python.org/file37679/idle_window_doc_rename.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org

[issue23218] Modernize the IDLE Find/Replace/Find in Files dialogs

2015-01-10 Thread Al Sweigart
New submission from Al Sweigart: Various changes to modernize the user interface of the Find, Replace, and Find in Files dialogs: - Got rid of the close button, since it is redundant. - Moved the buttons below the text fields, to make better use of screen real estate. - Shorten the titles

[issue23218] Modernize the IDLE Find/Replace/Find in Files dialogs

2015-01-10 Thread Al Sweigart
Changes by Al Sweigart asweig...@gmail.com: -- keywords: +patch Added file: http://bugs.python.org/file37666/idle_find_ui_redesign.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23218

[issue23216] IDLE grep/find/replace source code needs docstrings

2015-01-10 Thread Al Sweigart
New submission from Al Sweigart: The following IDLE files need docstrings for their methods: GrepDialog.py SearchEngine.py SearchDialogBase.py SearchDialog.py ReplaceDialog.py -- components: IDLE files: idle_docstrings.diff keywords: patch messages: 233807 nosy: Al.Sweigart priority

[issue23220] IDLE does not display \b backspace correctly.

2015-01-10 Thread Al Sweigart
Al Sweigart added the comment: For clarification, this happens on Windows 7. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23220 ___ ___ Python

[issue23180] Rename IDLE's Windows menu item to Window

2015-01-10 Thread Al Sweigart
Al Sweigart added the comment: Will do, re marking IDLE issues for 2.7, 3.4, and 3.5 only. Thanks for the heads up. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23180

[issue23220] IDLE does not display \b backspace correctly.

2015-01-10 Thread Al Sweigart
New submission from Al Sweigart: IDLE cannot display the \b backspace character correctly. From IDLE's interactive shell: print('hello\b\b\b\b\bHELLO') helloâ—™HELLO Whereas from cmd: print('hello\b\b\b\b\bHELLO') HELLO -- messages: 233828 nosy: Al.Sweigart priority

[issue23216] IDLE grep/find/replace source code needs docstrings

2015-01-10 Thread Al Sweigart
Changes by Al Sweigart asweig...@gmail.com: -- versions: +Python 2.7, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23216

[issue23218] Modernize the IDLE Find/Replace/Find in Files dialogs

2015-01-10 Thread Al Sweigart
Changes by Al Sweigart asweig...@gmail.com: -- versions: +Python 2.7, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23218

[issue23220] IDLE does not display \b backspace correctly.

2015-01-10 Thread Al Sweigart
Changes by Al Sweigart asweig...@gmail.com: -- versions: +Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23220 ___ ___ Python-bugs-list

[issue23205] Unit test needed for IDLE's GrepDialog.py's findfiles()

2015-01-10 Thread Al Sweigart
Al Sweigart added the comment: I checked with a couple grep programs and they use depth first. Which makes sense, since you'd want the return order to be something like: /a/spam.txt /a/aa/spam.txt /a/bb/spam.txt /x/spam.txt /y/spam.txt /z/spam.txt ...instead of the bread-first: /a/spam.txt

[issue23205] Unit test needed for IDLE's GrepDialog.py's findfiles()

2015-01-09 Thread Al Sweigart
New submission from Al Sweigart: GrepDialog.py's findfiles() method lacks a unit test. The comments in the unit test stub in test_grep.py correctly notes that since findfiles() method does not rely on the GrepDialog class, it can be made into a function. The attached patch does the following

[issue23184] Unused imports, variables, file in IDLE

2015-01-08 Thread Al Sweigart
Al Sweigart added the comment: *more transparent, that is. Not opaque. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23184 ___ ___ Python-bugs

[issue23184] Unused imports, variables, file in IDLE

2015-01-08 Thread Al Sweigart
Al Sweigart added the comment: I've updated the patch. I've removed the EditorWindow deletion. Importing that and using it as a class variable instead of using an assignment statement wasn't picked up. (Is there a more opaque way to do this import?) I've left the RemoteDebugger.py change

[issue7676] IDLE shell shouldn't use TABs

2015-01-08 Thread Al Sweigart
Al Sweigart added the comment: There are three pieces of user-specified configuration: (1) the number of spaces for a tab set in IDLE's config, (2) the sys.ps1 value, and (3) the sys.ps2 value. Currently IDLE's shell is ignoring (1) while the editor is not. IDLE's shell is ignoring (3) while

[issue7676] IDLE shell shouldn't use TABs

2015-01-08 Thread Al Sweigart
Changes by Al Sweigart asweig...@gmail.com: -- nosy: +Al.Sweigart ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7676 ___ ___ Python-bugs-list

[issue19102] Add tests for CLI of the tabnanny module

2015-01-08 Thread Al Sweigart
Al Sweigart added the comment: Since tabnanny is also a module in the standard library (it is imported by the idle code), wouldn't moving it to lib/test/test_tools make it un-importable? This would be a good case for leaving it where it is. -- nosy: +Al.Sweigart

[issue23184] Unused imports, variables, file in IDLE

2015-01-07 Thread Al Sweigart
New submission from Al Sweigart: The IDLE code base has several unused imports and local variables. The testcode.py file seems to have been accidentally checked in. These changes were found through a lint program, not by hand. All idle unit tests pass after these changes

[issue23184] Unused imports, variables, file in IDLE

2015-01-07 Thread Al Sweigart
Changes by Al Sweigart asweig...@gmail.com: -- type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23184 ___ ___ Python-bugs-list

[issue23181] Unicode code point should be two words in documentation

2015-01-07 Thread Al Sweigart
New submission from Al Sweigart: According to http://unicode.org/glossary/ codepoint is incorrect and should be changed to code point. -- assignee: docs@python components: Documentation files: code_point_patch.diff keywords: patch messages: 233568 nosy: Al.Sweigart, docs@python

[issue17776] IDLE Internationalization

2015-01-06 Thread Al Sweigart
Changes by Al Sweigart asweig...@gmail.com: -- nosy: +Al.Sweigart ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17776 ___ ___ Python-bugs-list

[issue17760] No i18n of IDLE's interface in french

2015-01-06 Thread Al Sweigart
Changes by Al Sweigart asweig...@gmail.com: -- nosy: +Al.Sweigart ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17760 ___ ___ Python-bugs-list

[issue2704] IDLE: Patch to make PyShell behave more like a Terminal interface

2015-01-06 Thread Al Sweigart
Changes by Al Sweigart asweig...@gmail.com: -- nosy: +Al.Sweigart ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2704 ___ ___ Python-bugs-list

[issue23180] Rename IDLE's Windows menu item to Window

2015-01-06 Thread Al Sweigart
New submission from Al Sweigart: Currently IDLE's top-level menu item is Windows on Windows Linux but is specifically changed to Window on OS X to match mac's look and feel. See https://hg.python.org/cpython/rev/1b3b6b1982aa The singular Window is the standard menu name on all platforms

[issue23158] IDLE's help.txt corrent typo

2015-01-03 Thread Al Sweigart
New submission from Al Sweigart: There is a typo in IDLE's help.txt file: into the corrent number of spaces -- messages: 233379 nosy: Al.Sweigart priority: normal severity: normal status: open title: IDLE's help.txt corrent typo type: behavior versions: Python 3.4, Python 3.5, Python

[issue23158] IDLE's help.txt corrent typo

2015-01-03 Thread Al Sweigart
Al Sweigart added the comment: I've attached a simple typo fix for this issue. -- keywords: +patch Added file: http://bugs.python.org/file37590/patch.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23158

[issue23158] IDLE's help.txt corrent typo

2015-01-03 Thread Al Sweigart
Changes by Al Sweigart asweig...@gmail.com: -- components: +IDLE ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23158 ___ ___ Python-bugs-list

[issue17583] IDLE HOWTO

2015-01-03 Thread Al Sweigart
Changes by Al Sweigart asweig...@gmail.com: -- nosy: +Al.Sweigart ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17583 ___ ___ Python-bugs-list

[issue14944] Setup Usage documentation for pydoc, idle 2to3

2015-01-03 Thread Al Sweigart
Changes by Al Sweigart asweig...@gmail.com: -- nosy: +Al.Sweigart ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14944 ___ ___ Python-bugs-list

[issue22628] Idle: Tree lines are spaced too close together.

2015-01-03 Thread Al Sweigart
Changes by Al Sweigart asweig...@gmail.com: -- nosy: +Al.Sweigart ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22628 ___ ___ Python-bugs-list