[issue17614] IDLE - quickly closing a large file triggers a traceback

2013-04-02 Thread Roger Serwy
Changes by Roger Serwy : -- resolution: -> fixed stage: commit review -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

[issue17614] IDLE - quickly closing a large file triggers a traceback

2013-04-02 Thread Roger Serwy
Roger Serwy added the comment: Updated patch based on Ezio's comments. Thank you, Ezio! Senthil, I wish I had a Mac to test against. I am able to trigger the bug on Win7 with 3.3. Without objection, I will commit the patch in the upcoming hours. -- assignee: -> roger.ser

[issue17613] IDLE "AttributeError: 'NoneType' object has no attribute 'index'" from Delegator.py

2013-04-01 Thread Roger Serwy
Roger Serwy added the comment: On 04/02/2013 12:57 AM, Ned Deily wrote: > 2. Roger, is this issue new to 2.7.4, 3.2.4, or 3.3.1? No, this bug has been baked into IDLE since the beginning. See line 215 http://hg.python.org/cpython/file/30713d5288df/Lib/idlelib/ColorDelegator.py > How lik

[issue17614] IDLE - quickly closing a large file triggers a traceback

2013-04-01 Thread Roger Serwy
Roger Serwy added the comment: I forgot to specify that the race condition gets triggered by pressing Alt-F4 the moment the IDLE editor window appears. I am reliably reproducing the error using the Konsole terminal under Arch Linux. -- ___ Python

[issue17613] IDLE "AttributeError: 'NoneType' object has no attribute 'index'" from Delegator.py

2013-04-01 Thread Roger Serwy
Roger Serwy added the comment: Is there an automatic nosy-list adder routine in the bug-tracker that I should know about? Georg and Larry were re-added to nosy even after I removed them. (I'm sorry for the spam.) -- ___ Python tracker

[issue17613] IDLE "AttributeError: 'NoneType' object has no attribute 'index'" from Delegator.py

2013-04-01 Thread Roger Serwy
Roger Serwy added the comment: Removing Geoge and Larry from nosy. I'm not sure how they got added. I didn't click on anything in the Nost List box. Ned, did you mean to add Benjamin to the nosy list? -- ___ Python tracker <http://bu

[issue16887] IDLE - tabify/untabify applied when clicking Cancel

2013-04-01 Thread Roger Serwy
Roger Serwy added the comment: Todd, Tabify/Untabify are functions to deal with the great tabs vs. spaces debate (though PEP8 says that spaces are the way to go). The tabify function needs a minimum of 2 spaces before it replaces it with a tab. Its implementation in Lib/idlelib

[issue17535] IDLE: Add an option to show line numbers along the left side of the editor window, and have it enabled by default.

2013-04-01 Thread Roger Serwy
Roger Serwy added the comment: I received permission from UIUC to relicense IdleX code used for contributions into Python. -- ___ Python tracker <http://bugs.python.org/issue17

[issue17614] IDLE - quickly closing a large file triggers a traceback

2013-04-01 Thread Roger Serwy
Roger Serwy added the comment: Like #17613, the root cause is a call to .update() in Lib/idlelib/PyShell.py .restore_file_breaks(). The attached patch fixes the issue. -- keywords: +patch stage: -> patch review Added file: http://bugs.python.org/file29651/issue17614.pa

[issue17614] IDLE - quickly closing a large file triggers a traceback

2013-04-01 Thread Roger Serwy
New submission from Roger Serwy: Using the bigfile.py generation program from #17613 triggers the following traceback: Traceback (most recent call last): File "/usr/bin/idle", line 5, in main() File "/usr/lib/python3.3/idlelib/PyShell.py", line 1431, in main if

[issue17614] IDLE - quickly closing a large file triggers a traceback

2013-04-01 Thread Roger Serwy
Roger Serwy added the comment: I misworded the first sentence. It should have read: "Using bigfile.py as generated by the program in #17613 can trigger the following traceback when quickly closing the editor." Other large files can be used to trigger the bug as well, like Lib/

[issue17613] IDLE "AttributeError: 'NoneType' object has no attribute 'index'" from Delegator.py

2013-04-01 Thread Roger Serwy
Roger Serwy added the comment: It's a "race condition" due to ColorDelegator calling .update() in its recolorize method. The call to .update() flushes pending events, including callbacks into Python code that can change out the ColorDelegator in the Percolator chain. Here

[issue6698] IDLE no longer opens only an edit window when configured to do so

2013-03-31 Thread Roger Serwy
Roger Serwy added the comment: Will do, Terry! :-) -- ___ Python tracker <http://bugs.python.org/issue6698> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue14254] IDLE - shell restart or closing during readline does not exit nested event loop

2013-03-31 Thread Roger Serwy
Roger Serwy added the comment: I just re-applied the patch to a clean 2.7 and 3.4 branch and didn't see that exception raised. Are you sure that the patch applied cleanly? -- ___ Python tracker <http://bugs.python.org/is

[issue6698] IDLE no longer opens only an edit window when configured to do so

2013-03-31 Thread Roger Serwy
Roger Serwy added the comment: Terry, I read over the revision in r71126 and it looked like the behavior change was an unintended consequence of applying an ephemeral ports patch. That and Todd's reasoning of the correct behavior being inferrable from the configuration dialog convinc

[issue6698] IDLE no longer opens only an edit window when configured to do so

2013-03-31 Thread Roger Serwy
Roger Serwy added the comment: Thanks Todd for the review! If you have time, could you open a new issue to deal with the enhancements discussed here? -- resolution: -> fixed stage: patch review -> committed/rejected status: open -&g

[issue14254] IDLE - shell restart or closing during readline does not exit nested event loop

2013-03-31 Thread Roger Serwy
Roger Serwy added the comment: I reworked the patch to fix the cursor problem. The new code, hopefully, is simpler to understand and harder to break. Essentially, all code paths that terminate the subprocess must also call stop_readline which exits that nested event loop if needed

[issue14254] IDLE - shell restart or closing during readline does not exit nested event loop

2013-03-31 Thread Roger Serwy
Roger Serwy added the comment: Ned, I can confirm the behavior you are seeing. I am trying to trace down why this spurious '\n' gets inserted. -- ___ Python tracker <http://bugs.python.o

[issue5492] Error on leaving IDLE with quit() or exit() under Linux

2013-03-31 Thread Roger Serwy
Roger Serwy added the comment: I found the root cause of the original error. Entering "exit()" at the shell raises SystemExit which gets written to the shell's text widget. The call to actually write the text passes through .write() in Lib/idlelib/OutputWindow.py, which ca

[issue14254] IDLE - shell restart or closing during readline does not exit nested event loop

2013-03-31 Thread Roger Serwy
Roger Serwy added the comment: Closing the shell window while in the nested event loop for readline fails to exit the nested event loop. I updated the title to reflect the broader problem with readline's handling of the nested event loop. The rev1 patch causes the nested event loop to

[issue6698] IDLE no longer opens only an edit window when configured to do so

2013-03-31 Thread Roger Serwy
Roger Serwy added the comment: We can fix the "bug" as-is and then open a separate enhancement issue for Tal's suggestions. I place bug in quotes because the correct behavior is not documented. -- assignee: -> roger.serwy nosy: +Todd.Rovito stage: -> patch revi

[issue8900] IDLE crashes when using keyboard shortcuts to open a file.

2013-03-31 Thread Roger Serwy
Roger Serwy added the comment: I am closing this issue as being fixed. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.o

[issue15964] SyntaxError in asdl when building 2.7 with system Python 3

2013-03-31 Thread Roger Serwy
Roger Serwy added the comment: I use Arch Linux which has /usr/bin/python as 3.3.0. I can confirm that "touch Include/Python-ast.h Python/Python-ast.c" fixes the problem. But would it have been simpler just to convert the print statements to functions so that asdl_c.py would work w

[issue8900] IDLE crashes when using keyboard shortcuts to open a file.

2013-03-31 Thread Roger Serwy
Roger Serwy added the comment: I changed the title to better reflect the original bug report. @Bruce: I did review Guilherme's patch a while ago in #10079. The editor window bug can be found in #6698. These are on my todo-list, especially now that PEP434 has been acc

[issue17585] IDLE - regression with exit() and quit()

2013-03-31 Thread Roger Serwy
Roger Serwy added the comment: I agree with Antoine that fileno checking code should be removed. I dug deeper into why that was introduced in the first place. 00b136b7da84 introduced the warning "Trying to close unclosable fd!" 86358b43c8bb intoduced the change to site.py about n

[issue17585] IDLE - regression with exit() and quit()

2013-03-31 Thread Roger Serwy
Roger Serwy added the comment: I would also argue that the fileno_close.patch ought to be applied to the 3.2.4 and 3.3.1 release candidates. The changes in #9290 were applied only two months ago. -- versions: +Python 3.2 ___ Python tracker <h

[issue17585] IDLE - regression with exit() and quit()

2013-03-31 Thread Roger Serwy
Roger Serwy added the comment: Antoine, it does affect 2.7 since sys.stdin.close() doesn't call PyShell's close method. #9290 introduced this regression. I accept some responsibility because my manual testing of those patches in #9290 didn't include trying the exit() and quit(

[issue17585] IDLE - regression with exit() and quit()

2013-03-31 Thread Roger Serwy
Roger Serwy added the comment: Terry, I agree that the original patch introduces a buggy fileno and it "knows" too much about the internals of site.py which could change. The attached patch modifies site.py, similar to how Nick Coghlan split the two function calls in a single try/ex

[issue16887] IDLE - tabify/untabify applied when clicking Cancel

2013-03-31 Thread Roger Serwy
Roger Serwy added the comment: If there are no objections, I will apply this patch after 2013-04-05. -- assignee: -> roger.serwy versions: -Python 3.2 ___ Python tracker <http://bugs.python.org/issu

[issue17585] IDLE - regression with exit() and quit()

2013-03-31 Thread Roger Serwy
Roger Serwy added the comment: I agree that site.py's Quitter exception logic has a flaw as described on the email from python-dev. But I disagree that the problem of IDLE not exiting is due to site.py. Even if you fix site.py (which I did), calling sys.stdin.close() won't close

[issue17585] IDLE - regression with exit() and quit()

2013-03-31 Thread Roger Serwy
New submission from Roger Serwy: This issue is a split from #5492, where Terry noticed a serious regression that "quit()" and "exit()" no longer work in IDLE. Before #9290, the PyShell object itself was stdin and it didn't have a "fileno" method. The code

[issue6649] idlelib/rpc.py missing exit status on exithook

2013-03-30 Thread Roger Serwy
Roger Serwy added the comment: Thanks for the patch, Guilherme! -- resolution: -> fixed stage: -> committed/rejected status: open -> closed versions: +Python 3.3, Python 3.4 -Python 2.6, Python 3.1 ___ Python tracker <http://bug

[issue17506] Improve IDLE news handling

2013-03-30 Thread Roger Serwy
Roger Serwy added the comment: This is related to #17221. I agree that news items need to be consolidated in both Misc/NEWS and Lib/idlelib/NEWS.txt. -- nosy: +roger.serwy ___ Python tracker <http://bugs.python.org/issue17

[issue6649] idlelib/rpc.py missing exit status on exithook

2013-03-30 Thread Roger Serwy
Changes by Roger Serwy : -- assignee: -> roger.serwy type: -> behavior ___ Python tracker <http://bugs.python.org/issue6649> ___ ___ Python-bugs-list

[issue17583] IDLE HOWTO

2013-03-30 Thread Roger Serwy
Roger Serwy added the comment: I agree that improving IDLE's docs would make it easier to learn and use. There is a tangentially related issue: #16893. -- assignee: -> docs@python components: +Documentation nosy: +docs@python, roger.serwy versions: +Python 2.7, Py

[issue14146] IDLE: source line in editor doesn't highlight when debugging

2013-03-30 Thread Roger Serwy
Roger Serwy added the comment: It's definitely a "bug" with Tk. Whenever the Text widget loses focus, the selection highlighting goes away. The following example code brings up a focused text box with selected text. Clicking the button switches focus to the button itself and t

[issue6143] IDLE - an extension to clear the shell window

2013-03-28 Thread Roger Serwy
Roger Serwy added the comment: The ClearWindow.py extension as included in the IdleX package contains a more recent version that allows undo with full color tag restoration. -- assignee: -> roger.serwy versions: +Python 2.7, Python 3.3, Python

[issue1442493] IDLE shell window gets very slow when displaying long lines

2013-03-28 Thread Roger Serwy
Roger Serwy added the comment: @Raymond, see issue6143 for an (outdated) extension to clear the shell window with a hotkey. -- nosy: +roger.serwy ___ Python tracker <http://bugs.python.org/issue1442

[issue3938] Clearing globals; interpreter -- IDLE difference

2013-03-28 Thread Roger Serwy
Changes by Roger Serwy : -- nosy: +roger.serwy ___ Python tracker <http://bugs.python.org/issue3938> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17511] Idle find function closes after each find operation

2013-03-28 Thread Roger Serwy
Roger Serwy added the comment: (I didn't realize that the patch is identical to the one submitted on issue13586). The issue with the found text not being highlighted is Windows-specific. Issue13630 discusses that particular problem and it has the same root cause as issue14146. Changin

[issue17535] IDLE: Add an option to show line numbers along the left side of the editor window, and have it enabled by default.

2013-03-24 Thread Roger Serwy
Roger Serwy added the comment: The file uploaded in 2010 falls under my PSF contributor agreement which has the Apache V2.0 license. The updates to the code in the latest version of IdleX fall under the NCSA license. -- ___ Python tracker <h

[issue17535] IDLE: Add an option to show line numbers along the left side of the editor window, and have it enabled by default.

2013-03-24 Thread Roger Serwy
Roger Serwy added the comment: Todd, the LineNumbers.py extension from the IdleX project contains work-arounds for interacting cleanly with the Code Context extension. It also has a hack for dealing with the shortcomings of the Percolator/Delegator ordering. There are other shortcomings in

[issue17511] Idle find function closes after each find operation

2013-03-23 Thread Roger Serwy
Roger Serwy added the comment: I can confirm this behavior. The attached preliminary patch allows the Find dialog to remain open, and is the same for 2.x and 3.x. Until PEP434 gets resolved, I won't be able to apply the patch for earlier versions of IDLE. For what it's worth, t

[issue17532] IDLE: Always include "Options" menu on MacOSX

2013-03-23 Thread Roger Serwy
New submission from Roger Serwy: Presently, the "Options" menu gets eliminated if IDLE runs as an OSX app. This behavior was introduced in 2006 in revision 654c380cf8b9. I guess that the original motivation for eliminating the Options menu since it usually only contained the "

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

2013-03-23 Thread Roger Serwy
Roger Serwy added the comment: Thanks, Todd, for reviewing and testing the extension! The Terminal.py extension patch provided here is outdated. There have been some minor tweaks and bug fixes that can be found in the IdleX project which works under 2.x and 3.x with the same code. (For

[issue16809] Tk 8.6.0 introduces TypeError. (Tk 8.5.13 works)

2013-03-20 Thread Roger Serwy
Roger Serwy added the comment: Serhiy, I applied your patch but I still get the same error. >From what I have found so far, the FromObj function in Modules/_tkinter.c >relies on cached values for different Tcl_ObjType, as given in the TkappObject >struct. From the comment: /*

[issue14146] IDLE: source line in editor doesn't highlight when debugging

2013-03-09 Thread Roger Serwy
Roger Serwy added the comment: I think it's a problem on Tk on Windows. The painting of the selection highlight goes away when a window loses focus. -- ___ Python tracker <http://bugs.python.org/is

[issue16123] IDLE - deprecate running without a subprocess

2013-02-21 Thread Roger Serwy
Roger Serwy added the comment: @Raymond: What is so broken about IDLE that requires using "-n" to fix it? Let's try to fix those problems rather than keeping up the maintenance burden of supporting two execution modes. -- ___ Python

[issue10365] IDLE Crashes on File Open Dialog when code window closed before other file opened

2013-02-04 Thread Roger Serwy
Roger Serwy added the comment: Patrick, see Issue8900. It described your problem. -- ___ Python tracker <http://bugs.python.org/issue10365> ___ ___ Python-bug

[issue7949] IDLE: problems with dark GTK or KDE color schemes

2013-01-16 Thread Roger Serwy
Roger Serwy added the comment: Updated the issue to reflect information from 16984. A screenshot was provided in that report. -- nosy: +sahin, serwy title: idle does not handle dark gtk color schemes -> IDLE: problems with dark GTK or KDE color schemes versions: +Python 2.7, Pyt

[issue16984] idle problem with dark color schemes in kde

2013-01-16 Thread Roger Serwy
Roger Serwy added the comment: This is a duplicate of issue7949, but for KDE instead of GTK. I will close this report in favor of the prior one. -- nosy: +serwy resolution: -> duplicate status: open -> closed superseder: -> idle does not handle dark gtk colo

[issue16829] IDLE on POSIX can't print filenames with spaces

2013-01-11 Thread Roger Serwy
Roger Serwy added the comment: @Serhiy IDLE places its default configuration files within the standard library. Any upgrade of Python can modify the contents of the standard library. Even if we do *nothing* to change Lib/idlelib/config-main.def, the next upgrade would overwrite an end users

[issue16829] IDLE on POSIX can't print filenames with spaces

2013-01-09 Thread Roger Serwy
Roger Serwy added the comment: See also issue12274. -- ___ Python tracker <http://bugs.python.org/issue16829> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16829] IDLE on POSIX can't print filenames with spaces

2013-01-09 Thread Roger Serwy
Roger Serwy added the comment: The attached patch changes %%s to %%r. This should handle file names containing quotes automatically. Ramchandra's point of using a subprocess instead would fix the issue as well. That would require changing "print_window" in Lib/idlelib/IOBindi

[issue16887] IDLE - tabify/untabify applied when clicking Cancel

2013-01-07 Thread Roger Serwy
New submission from Roger Serwy: Krystian RosiƄski notified me about an error with Tabify/Untabify. Clicking cancel still performs the operation because the _asktabwidth function in Lib/idlelib/EditorWindow.py always returns a number, regardless of cancel being clicked. This bug is visibly

[issue16819] IDLE b"" method completion incorrect

2012-12-31 Thread Roger Serwy
Changes by Roger Serwy : -- nosy: +serwy ___ Python tracker <http://bugs.python.org/issue16819> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16809] Tk 8.6.0 introduces TypeError. (Tk 8.5.13 works)

2012-12-31 Thread Roger Serwy
Roger Serwy added the comment: In Objects/unicodeobject.c in PyUnicode_FromObject, the call to PyUnicode_CheckExact fails when using 8.6.0 but works with 8.5.13. -- ___ Python tracker <http://bugs.python.org/issue16

[issue16829] IDLE on POSIX can't print filenames with spaces

2012-12-31 Thread Roger Serwy
Roger Serwy added the comment: I can confirm this bug for POSIX platforms. Changing the lpr command in config-main.def to quote the filename seems to fix the problem. print-command-posix=lpr "%%s" It might also be a problem on Windows, but I haven't tried it. --

[issue13657] IDLE doesn't support sys.ps1 and sys.ps2.

2012-12-30 Thread Roger Serwy
Changes by Roger Serwy : -- nosy: -serwy ___ Python tracker <http://bugs.python.org/issue13657> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16809] Tk 8.6.0 introduces TypeError. (Tk 8.5.13 works)

2012-12-28 Thread Roger Serwy
New submission from Roger Serwy: I am running Arch Linux with the latest Tcl/Tk 8.6.0 build with Python 2.7.3 and 3.3.0, and the latest 3.4.0a0 build from the repository. Running the attached script fails when calling pack_info(). Here's is the script's output: 8.6 Traceback (m

[issue12510] IDLE: calltips mishandle raw strings and other examples

2012-12-11 Thread Roger Serwy
Roger Serwy added the comment: I haven't had any serious problems with calltips on the dev branches for 2.7 and 3.4, except for issue16630. I think this issue can be closed as being completed in order to avoid further expanding its scope. Feel free to reopen if anyone disa

[issue16629] IDLE: Calltips test fails due to int docstring change

2012-12-11 Thread Roger Serwy
Roger Serwy added the comment: @Chris: Thanks for applying the patch. As for IDLE tests, there are no official tests. Issue15392 calls for the creation of a unit test framework. There are a few "tests" in some of IDLE, such as the ones in CallTips. Terry added much needed impro

[issue16629] IDLE: Calltips test fails due to int docstring change

2012-12-07 Thread Roger Serwy
Roger Serwy added the comment: So, is the original patch which fixes the original issue OK to apply? -- ___ Python tracker <http://bugs.python.org/issue16

[issue16629] IDLE: Calltips test fails due to int docstring change

2012-12-07 Thread Roger Serwy
Roger Serwy added the comment: The number of lines in the return value of get_argspec should be limited, otherwise the calltip window can become too large. For example, many functions in the numpy project have very long doc strings. -- ___ Python

[issue16630] IDLE: Calltip fails if __getattr__ raises exception

2012-12-06 Thread Roger Serwy
New submission from Roger Serwy: The calltip fails if __getattr__ raises an exception. Take as an example: Python 3.4.0a0 (default:0238cc842805+, Dec 6 2012, 19:17:04) [GCC 4.7.2] on linux Type "copyright", "credits" or "license()" for more informatio

[issue16629] IDLE: Calltips test fails due to int docstring change

2012-12-06 Thread Roger Serwy
New submission from Roger Serwy: Revision e4598364ea29 changed the docstring for "int", causing the CallTips test to fail in IDLE. The attached patch fixes the problem. -- components: IDLE files: calltips_test_update.patch keywords: easy, patch messages: 177063 n

[issue16622] IDLE crashes on parentheses

2012-12-06 Thread Roger Serwy
Roger Serwy added the comment: You only have an empty "recent-files.lst" file in your posted archive. From what I can tell, there is nothing in common with the other posted .idlerc that had these problems. Please do report if the crashes with open parens reoccurs and what was

[issue16622] IDLE crashes on parentheses

2012-12-06 Thread Roger Serwy
Roger Serwy added the comment: Steve, could you post the contents of your .idlerc directory? I wonder if "encoding = locale" is the culprit. -- ___ Python tracker <http://bugs.python.o

[issue16177] IDLE Crash on Open Parens

2012-12-05 Thread Roger Serwy
Roger Serwy added the comment: Added version 3.3 as reported in #16622. -- nosy: +Steve.OBrien versions: +Python 3.3 ___ Python tracker <http://bugs.python.org/issue16

[issue16622] IDLE crashes on parentheses

2012-12-05 Thread Roger Serwy
Roger Serwy added the comment: This looks like a duplicate of issue16177, but for version 3.3.0 instead of 2.7.3. I'm closing this in favor of the prior report. Steve, can you try the suggestion from msg172501 in #16177 ? -- resolution: -> duplicate status: open -> closed

[issue16622] IDLE crashes on parentheses

2012-12-05 Thread Roger Serwy
Roger Serwy added the comment: Steve, please verify that you are using the correct version of Tkinter with IDLE. See http://www.python.org/download/mac/tcltk/ -- nosy: +ned.deily, serwy ___ Python tracker <http://bugs.python.org/issue16

[issue16123] IDLE - deprecate running without a subprocess

2012-12-04 Thread Roger Serwy
Roger Serwy added the comment: Campbell, your example runs IDLE *with* a subprocess. The "use_subprocess" flag defaults to True. -- ___ Python tracker <http://bugs.python.o

[issue16547] IDLE raises an exception in tkinter after fresh file's text has been rendered

2012-11-27 Thread Roger Serwy
Roger Serwy added the comment: I was able to trigger this problem on 2.7 as well. Changing type to behavior as the core interpreter is not crashing. Lukas, the only way I can trigger the traceback is by closing the editor while the colorizer is still colorizing. Clicking randomly on the

[issue5066] IDLE documentation for Unix obsolete/incorrect

2012-11-26 Thread Roger Serwy
Roger Serwy added the comment: The original help.txt and the patched version still mixes tabs and spaces. This is a minor point, but perhaps all the tabs should be expanded. Also, the section on running IDLE without a subprocess should not be removed until version 3.5. See #16123

[issue16547] IDLE segfaults in tkinter after fresh file's text has been rendered

2012-11-26 Thread Roger Serwy
Roger Serwy added the comment: Lukas, thank you for your persistence in trying to resolve this issue. The Windows traceback is interesting. I am wondering if a "race" condition may be causing this bug. Callbacks from the Tcl interpreter eventloop back into Python may be ordered

[issue16547] IDLE segfaults in tkinter after fresh file's text has been rendered

2012-11-24 Thread Roger Serwy
Roger Serwy added the comment: On Mac, which version of Tk are you using? IDLE is known to have problems on Mac with Tk. See http://www.python.org/download/mac/tcltk/ You can disable colorization with the undocumented Ctrl+/ key combination. Does the crash still occur with the colorizer

[issue16504] IDLE - fatal error when opening a file with certain tokenizing errors

2012-11-23 Thread Roger Serwy
Roger Serwy added the comment: Serhiy, was msg176255 meant for issue16491? -- ___ Python tracker <http://bugs.python.org/issue16504> ___ ___ Python-bugs-list m

[issue16511] IDLE configuration file: blank height and width fields trip up IDLE

2012-11-20 Thread Roger Serwy
Roger Serwy added the comment: Changed from Crash to Behavior, as the interpreter is not crashing. Also undid my mistake of re-adding 2.6 and 3.1. -- type: crash -> behavior versions: -Python 2.6, Python 3.1 ___ Python tracker &l

[issue16511] IDLE configuration file: blank height and width fields trip up IDLE

2012-11-20 Thread Roger Serwy
Roger Serwy added the comment: Serhiy, I applied your patch and it works. However, the initial window size in IDLE Preferences->General are listed as "None" instead of a number. Perhaps if the userCfg has an invalid value then the defaultCfg should be returned? -- vers

[issue16511] IDLE configuration file: blank height and width fields trip up IDLE

2012-11-20 Thread Roger Serwy
Roger Serwy added the comment: This is still a bug with 2.7 and 3.4. I just tried leaving the width and height fields in config-main.cfg and IDLE had raised the error: _tkinter.TclError: expected integer but got "" The width and height keys in the text_options dic

[issue12274] "Print window" menu on IDLE aborts whole application

2012-11-18 Thread Roger Serwy
Changes by Roger Serwy : -- dependencies: +Create a unittest framework for IDLE ___ Python tracker <http://bugs.python.org/issue12274> ___ ___ Python-bugs-list m

[issue16504] IDLE - fatal error when opening a file with certain tokenizing errors

2012-11-18 Thread Roger Serwy
Roger Serwy added the comment: That's a good point. Attached is a revision to omit IndentationError. Thanks Serhiy. -- Added file: http://bugs.python.org/file28032/editor_token_error_rev1.patch ___ Python tracker <http://bugs.python.org/is

[issue16504] IDLE - fatal error when opening a file with certain tokenizing errors

2012-11-18 Thread Roger Serwy
Roger Serwy added the comment: I encountered this behavior while testing an extension that highlights tabs and trailing whitespace. The very first test file I wrote caused this crash. See the attached "sample_token_error.py". -- Added file: http://bugs.python.org

[issue16504] IDLE - fatal error when opening a file with certain tokenizing errors

2012-11-18 Thread Roger Serwy
New submission from Roger Serwy: IDLE's IndentSearcher class in EditorWindow.py can raise an uncaught IndentationError when opening a file. The attached patch fixes the problem by catching everything that the tokenize module can raise explicitly, namely IndentationError, TokenError

[issue1207589] IDLE: Right Click Context Menu

2012-11-02 Thread Roger Serwy
Roger Serwy added the comment: On IDLE Extensions: The public ecosystem of IDLE extensions is small, and even smaller are those that modify rmenu_specs. Changing it is trivial. However, existing users of the Squeezer extension under 2.7 will experience bugs, like triggering issue13582 on

[issue1207589] IDLE: Right Click Context Menu

2012-11-02 Thread Roger Serwy
Roger Serwy added the comment: In a strict sense, the patch does break backward compatibility for third-party IDLE extensions that modify the rmenu_specs contents. It is not a "private" value since it lacks an initial underscore in its name. But given how undocumented IDLE is, espe

[issue13659] Add a help() viewer for IDLE's Shell.

2012-10-31 Thread Roger Serwy
Roger Serwy added the comment: The attached patch ("issue13659.patch") adds a configuration option for selecting the output of help() as being in the shell or in the pager. It is an enhancement against 3.4. Another possibility involves adding a checkable menu item under "Opt

[issue16365] IDLE for Windows 8

2012-10-30 Thread Roger Serwy
Roger Serwy added the comment: I wonder if there is a bug in the Python installer on the new Windows 8 platform, though it is unlikely. I will leave this issue open for Windows 8 developers to comment. (I don't have Win8 for testing just yet.) Feel free to close. -- compo

[issue16365] IDLE for Windows 8

2012-10-30 Thread Roger Serwy
Roger Serwy added the comment: Can you launch Python from a command line and then launch IDLE from there? cd c:\python33 python After python starts, enter the following: import idlelib.idle -- nosy: +serwy ___ Python tracker <h

[issue15392] Create a unittest framework for IDLE

2012-10-25 Thread Roger Serwy
Roger Serwy added the comment: Issue7883 also has a test. -- ___ Python tracker <http://bugs.python.org/issue15392> ___ ___ Python-bugs-list mailing list Unsub

[issue15808] Possibility of setting custom key bindings for "Additional help sources" menu items

2012-10-24 Thread Roger Serwy
Changes by Roger Serwy : -- nosy: +serwy ___ Python tracker <http://bugs.python.org/issue15808> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue9890] Visual C++ Runtime Library Error is there a fix?

2012-10-23 Thread Roger Serwy
Roger Serwy added the comment: I'm closing this issue as a duplicate of #11288. -- resolution: -> duplicate status: open -> closed superseder: -> Python installed from MSI doesn't work ___ Python tracker <http://bug

[issue16233] IDLE: conceptual problems with *Class browser*

2012-10-22 Thread Roger Serwy
Roger Serwy added the comment: Attached is a quick patch to change the error message. -- keywords: +patch Added file: http://bugs.python.org/file27666/message_fix.patch ___ Python tracker <http://bugs.python.org/issue16

[issue16233] IDLE: conceptual problems with *Class browser*

2012-10-22 Thread Roger Serwy
Roger Serwy added the comment: Saving the shell to a file allows the class browser to function. However a class browser for a syntax-incorrect file due to prompts and stdout contents can also pose a conceptual problem. I suggest that the error message be modified to include a corrective

[issue15853] IDLE crashes selecting Preferences menu with OS X ActiveState Tcl/Tk 8.5.12.1

2012-10-22 Thread Roger Serwy
Roger Serwy added the comment: The patch works with 3.3.0 and 2.7.3 on Windows 7. +1 -- ___ Python tracker <http://bugs.python.org/issue15853> ___ ___ Python-bug

[issue16103] sys.stdin.readline 'unsupported' (IDLE 2.7.3, Win7, pythonw)

2012-10-16 Thread Roger Serwy
Roger Serwy added the comment: Terry, your idlelib directory is in an inconsistent state. IDLE 2.7.3 works well on Arch Linux. I rebuilt it from revision 70274d53c1dd. With and without a subprocess, IDLE's sys.stdin.readline works. Let's close this issue and focus on #9290. It'

[issue16103] sys.stdin.readline 'unsupported' (IDLE 2.7.3, Win7, pythonw)

2012-10-16 Thread Roger Serwy
Roger Serwy added the comment: I am running 2.7.3 from Apr 10, 2012, freshly installed. I still can not reproduce this problem when running IDLE with or without a subprocess. Is your PyShell.py file the original or was it modified by accident? It may be possible that run.py was modified as

[issue16200] Setting .posix=True for shlex object causes infinite loop in __next__

2012-10-15 Thread Roger Serwy
Roger Serwy added the comment: The shlex_posix_property.patch makes .posix a read/write property that changes .eof appropriately. -- Added file: http://bugs.python.org/file27580/shlex_posix_property.patch ___ Python tracker <http://bugs.python.

[issue10834] Python 2.7 x86 IDLE fails to run in Windows 7

2012-10-14 Thread Roger Serwy
Roger Serwy added the comment: Running "python -m test.test_asynchat" succeeds on Windows 7 with version 2.7.3. I'm closing this issue as it works for me. Feel free to re-open if you disagree. -- resolution: -> works for me stat

[issue16198] IDLE - tabbing in a string always brings up file completion window

2012-10-14 Thread Roger Serwy
Roger Serwy added the comment: > I think that maybe tabs within strings should always do the same as within > comments. Perhaps one way is enough. (I am guessing that other editors use > for this, so I can see the desire to use it.) There needs to be a way > to get tabbing with

<    1   2   3   4   5   6   >