[issue14200] Idle shell crash on printing non-BMP unicode character

2012-03-14 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: Andrew, I do admit that I have a lot to learn about Unicode support in Python, for instance with its error-handling and its corner cases. On Windows Vista, I do see that print() behaves differently than evaluating the expression

[issue14163] tkinter: problems with hello doc example

2012-03-14 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: The current tk_hello.py file works under Ubuntu 11.04 with the latest python build from the repository. It looks good to me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org

[issue14254] IDLE - shell restart during readline does not reset readline

2012-03-11 Thread Roger Serwy
New submission from Roger Serwy roger.se...@gmail.com: In PyShell.py, the readline method enters a nested event loop for handling input. If the shell is restarted, the nested event loop remains until after the first press of enter causes the enter_callback to quit the nested event loop

[issue14254] IDLE - shell restart during readline does not reset readline

2012-03-11 Thread Roger Serwy
Changes by Roger Serwy roger.se...@gmail.com: -- nosy: +ned.deily, terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14254 ___ ___ Python

[issue14200] Idle shell crash on printing non-BMP unicode character

2012-03-11 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: Attached is a patch to have the rpc marshal exceptions. When used with Martin's patch, IDLE returns '\U00010330' Traceback (most recent call last): File pyshell#3, line 1, in module '\U00010330' ValueError: character U+10330 is above

[issue13532] In IDLE, sys.stdout.write and sys.stderr can write any pickleable object

2012-03-11 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: Attached is a preliminary patch to solve this issue. It relies on rpc_marshal_exception.patch from issue14200. Does anyone know a good way to make the exception render as: must be str, not int instead of must be str, not class 'int

[issue12342] characters with ord above 65535 fail to display in IDLE

2012-03-11 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: I agree with Terry. The current behavior of raising ValueError will lead to problems in application code in the future if Tkinter gets fixed such that it can render Unicode properly beyond 0x

[issue14200] Idle shell crash on printing non-BMP unicode character

2012-03-11 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: I made a mistake in msg155410. The results in the message are WITHOUT unicodeerror.diff applied. When it is applied, the IDLE shell gives: '\U00010330' Traceback (most recent call last): File pyshell#1, line 1, in module '\U00010330

[issue14200] Idle shell crash on printing non-BMP unicode character

2012-03-11 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: Having had some time to work on it, the bug is in the unicodeerror.diff patch. If the string is empty then max(s) will raise a ValueError. This is easy to trigger by generating an exception at the python prompt, like 1/0. Attached

[issue14200] Idle shell crash on printing non-BMP unicode character

2012-03-11 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: Martin, I got your message after I submitted the last one. This issue does involve IDLE crashing, but it's not crashing due to non-BMP characters. That is a side-effect of a bigger issue with pythonw.exe. See Issue13582 for more information

[issue7163] IDLE suppresses sys.stdout.write() return value

2012-03-11 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: Attached is a patch against 3.3 to return the count. -- keywords: +patch Added file: http://bugs.python.org/file24792/issue7163.patch ___ Python tracker rep...@bugs.python.org http

[issue14200] Idle shell crash on printing non-BMP unicode character

2012-03-05 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: Hi Vlastimil, Can you repeat your test case while running IDLE from the command prompt and report the error you see? python -m idlelib.idle IDLE closes suddenly on Windows because IDLE uses pythonw.exe which has no stdout or stderr

[issue14163] tkinter: problems with hello doc example

2012-03-02 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: I tried your tk_hello.py code and it works on Python 3. The code for creating the QUIT button exceeds 80 columns. I'd insert a \n after the second argument: self.QUIT = tk.Button(self, text = QUIT, fg

[issue14163] tkinter: problems with hello doc example

2012-03-02 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: I tried your tk_hello.py code and it works on Python 3. The code for creating the QUIT button exceeds 80 columns. I'd insert a \n after the second argument: self.QUIT = tk.Button(self, text = QUIT, fg

[issue14163] tkinter: problems with hello doc example

2012-03-02 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: Ah, that's subtle. There's a comma at the end of that [text] line which is making the string a one-element tuple. Removing it fixes the issue. -- ___ Python tracker rep...@bugs.python.org http

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

2012-02-28 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: Is the Source check box in the Debug Control window checked? -- nosy: +serwy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14146

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

2012-02-28 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: I am not seeing this problem under Ubuntu, but I do see this problem on Vista. It looks like the sel tags get hidden when a window loses focus under Windows. -- ___ Python tracker rep

[issue13703] Hash collision security issue

2012-02-26 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: After pulling the latest code, random.py no longer works since it tries to import urandom from os on both 3.3 and 2.7. -- nosy: +serwy ___ Python tracker rep...@bugs.python.org http

[issue13703] Hash collision security issue

2012-02-26 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: It was a false alarm. I didn't recompile python before running it with the latest /Lib files. My apologies. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13703

[issue14111] IDLE Debugger should handle interrupts

2012-02-26 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: I can confirm the issue Larry's raises. Attached is a patch against 2.7 to enable Ctrl+C interrupts for the debugger. The patch opens up the possibility of making Go a toggle button, but that would require some more plumbing (not included

[issue14005] IDLE Crash when running/saving a file

2012-02-14 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: Try running IDLE from a command prompt and report the error message you see. Start a python shell session and run: import idlelib.idle -- nosy: +serwy ___ Python tracker rep

[issue964437] idle help is modal

2012-02-05 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: Those four lines are present just in case self.root is not initialized. Even if you short-circuit the behavior and set parent=self.top, the patch still works, only that closing the calling EditorWindow instance also closes the help dialog

[issue964437] idle help is modal

2012-02-05 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: I pulled the latest repo with the patch for 2.7. It works. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue964437

[issue13933] IDLE:not able to complete the hashlib module

2012-02-04 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: Attached is a patch against 3.3a0 to fix the problem. The cause of the bug is that a tuple can not be sorted and calling .sort was raising a silenced exception. The patch explicitly converts __all__ to a list. -- keywords: +patch

[issue964437] idle help is modal

2012-02-04 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: Attached is an updated version of Guilherme's patch against 3.3a0. It does make the help window non-modal. -- Added file: http://bugs.python.org/file24421/help_nonmodal_updated.patch ___ Python

[issue964437] idle help is modal

2012-02-04 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: I ran reindent and resubmitted the patch. The patch works fine on Ubuntu 11.04. One very subtle design issue with the patch is that the help window is tied to the calling EditorWindow instance. If the editor (or shell) closes, so does

[issue964437] idle help is modal

2012-02-04 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: Attached is a reworked patch to handle the nonmodal help dialog. It replaces the decorator _singledialog with a call to a singleton HelpDialog class. The class creates the textView widget using as its parent the root Tk window instance

[issue13926] pydoc - stall when requesting a list of available modules in the online help utility

2012-02-02 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: I tried this and while IDLE didn't crash, it stalled when running with and without a subprocess. I then tried running this from the regular python interpreter and it stalled there as well. This is not a problem with IDLE, but a problem

[issue13926] pydoc - stall when requesting a list of available modules in the online help utility

2012-02-02 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: Should calling modules automatically iterate over all submodules or should it return just a list of top level modules? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org

[issue13926] pydoc - stall when requesting a list of available modules in the online help utility

2012-02-02 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: You're right. The pkgutil.walk_packages method called from ModuleScanner seems to be importing the submodules. I should have said that in the last message. I'll try to be clearer. What should the correct behavior be when entering modules

[issue13506] IDLE sys.path does not contain Current Working Directory

2012-01-30 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: I tested your patch and it works. For the sake of completeness, here's what I did: Test 1: Start IDLE in shell mode and run import sys; print(sys.path). The first entry should be '' This is consistent with the behavior of the regular

[issue11437] IDLE crash on startup with typo in config-keys.cfg

2012-01-28 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: Attached is a patch against 3.3a0 to validate the active key set in the configuration handler. It validates each key binding and then presents a dialog with a list of incorrect keys if there are any. In developing this patch I found

[issue5707] IDLE will not load

2012-01-28 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: Amaury's patch has already been applied in (d31be8c9c8a2). GUO's description does cause an error. TclTk does not allow Control by itself to be bounded. This underlying cause for that error is addressed in #6739 I think this issue should

[issue13884] IDLE 2.6.5 Recent Files undocks

2012-01-28 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: Should tear-off menus still be a feature? This relates to the #13504 meta-issue, in particular entry 4) ANNOYANCE: Get rid of the detachable menus feature.. Attached is patch against 3.3a0 to disable tear-off menus. (It also makes

[issue13504] Meta-issue for Invent with Python IDLE feedback

2012-01-28 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: #13884 has a patch to address point 4) ANNOYANCE: Get rid of the detachable menus feature. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13504

[issue4765] IDLE fails to Delete Custom Key Set properly

2012-01-27 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: I am unable to reproduce this bug with the latest development versions in the 2.7 and 3.3 branches. Can someone verify this as well? -- ___ Python tracker rep...@bugs.python.org http

[issue13798] Pasting and then running code doesn't work in the IDLE Shell

2012-01-16 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: This is a duplicate of #3559. -- nosy: +serwy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13798

[issue13052] IDLE: replace ending with '\' causes crash

2012-01-16 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: I'm not aware of any formal tests for IDLE. Can you show me the docs for writing proper unit tests? I'll see if I can write one for this. -- ___ Python tracker rep...@bugs.python.org http

[issue13495] IDLE: Regressions - Two ColorDelegator instances loaded and -e no longer edits new files.

2012-01-14 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: There was another regression introduced by (a4bd8a4805a8). IDLE 3 no longer allows for editing of new files from the command line. For example: idle -e /tmp/newfile.py will momentarily flash an editor window before it is closed

[issue13675] IDLE won't open if it can't read recent-files.lst

2011-12-29 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: This is a duplicate of issue4625 and was fixed. The silently failing is part of issue13582. -- nosy: +serwy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13675

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

2011-12-27 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: If you're on Linux, run this as your first command in IDLE: import pydoc; pydoc.pager = lambda text: pydoc.tempfilepager(pydoc.plain(text), 'xterm -e less') If Windows: import pydoc; pydoc.pager = lambda text: pydoc.tempfilepager

[issue7338] recursive __attribute__ - Fatal Python error: Cannot recover from stack overflow.

2011-12-24 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: This is related to #13644. -- nosy: +serwy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7338

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

2011-12-23 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: This would make the IDLE shell interface more consistent with the original interpreter. Presently, the prompt is faked by showprompt in PyShell.py. It relies on sys from the IDLE gui process and not from the sys in the subprocess, so

[issue6092] Changed Shortcuts don't show up in menu

2011-12-23 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: This only applies to menu items from extensions (in this case, ScriptBinding.py). Other events (Copy, Cut, Paste, etc) update the menu shortcut properly. IDLE handles bindings for extensions separately from built-in functions

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

2011-12-23 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: Is that sensibly possible? Any line of code can change those, so IDLE would have to do the equivalent of idle.ps1,idle.ps2 = sys.ps1, sys.ps2 before every new ps1 statement prompt. It may be possible if the code gets refactored

[issue13644] Python 3 aborts with this code.

2011-12-23 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: This is identical to issue6028 and may be related to issue3555. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13644

[issue13644] Python 3 crashes (segfaults) with this code.

2011-12-22 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: With Python 2, I can inspect the error to see where it occurred using traceback. With Python 3, I'd need to use gdb. -- nosy: +serwy ___ Python tracker rep...@bugs.python.org http

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

2011-12-22 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: The attached patch fixes the problem. The close method does not need to wait for poll_subprocess rescheduling to stop. The subprocess will be killed, which would cause the socket to timeout. With closing=True, poll_subprocess will return

[issue13052] IDLE: replace ending with '\' causes crash

2011-12-22 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: issue13052.patch against 3.3a0 fixes the replace dialog. It also stops Replace All from closing the dialog. (What other application actually does this?) When 'Regular Expression' is not checked, the find and the replace dialogs treat

[issue9039] IDLE and module Doc

2011-12-22 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: Is this still an issue? -- nosy: +serwy type: crash - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9039

[issue13654] IDLE: Freezes and/or crash on SyntaxWarning... is used prior to global declaration

2011-12-22 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: I ran IDLE with a console and then ran your script against the latest release. The error message is due to a bug in idle_showwarning. Your script works with the development version, however. This is a duplicate of issue12438 which

[issue12510] IDLE get_the_calltip mishandles raw strings

2011-12-21 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: The attached patch fixes the bug. The bug occurs in get_entity which is used to get the object. Then get_argspec determines the calltip text. The calltip can be prevented for strings by having get_argspec check if the object has a __call__

[issue9016] IDLE won't launch (Win XP)

2011-12-21 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: Is this still a problem? -- nosy: +serwy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9016

[issue6528] builtins colored as keyword at beginning of line

2011-12-21 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: The attached patch excludes keywords from the builtin list and corrects the highlighting configuration panel. -- keywords: +patch nosy: +serwy versions: +Python 3.2, Python 3.3 -Python 3.1 Added file: http://bugs.python.org/file24072

[issue8093] IDLE processes don't close

2011-12-21 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: This issue should be closed since issue12540 fixes it. I verified that the bug exists with 3.1.4 on Vista. It does not exist with 3.2.2 on Vista. -- nosy: +serwy ___ Python tracker rep

[issue8820] IDLE not launching correctly

2011-12-21 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: Is this still a problem with 2.7? -- nosy: +serwy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8820

[issue7883] CallTips.py _find_constructor does not work

2011-12-21 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: The patch works for me as well against 3.3a0. Are there any cases where __init__.__func__ would work? -- nosy: +serwy versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http

[issue13078] Python Crashes When Saving Or Opening

2011-12-21 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: Is this still an issue? Ash, can you please run IDLE from the command line and report the error message from there? cd c:\python32 python -m idlelib.idle -- nosy: +serwy ___ Python tracker

[issue10079] idlelib for Python 3 with Guilherme Polo GSoC enhancements

2011-12-21 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: The large patch also contains the same patch in issue6649. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10079

[issue9150] IDLE should not save trailing whitespace after strip trailing whitespace has been used

2011-12-21 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: Is this still an issue? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9150 ___ ___ Python

[issue9201] IDLE: raises Exception TclError in a special case

2011-12-21 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: This issue was fixed in 500e48708470, as part of issue3851. -- nosy: +serwy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9201

[issue13553] Tkinter doesn't set proper application name

2011-12-21 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: Does IDLE appear as Tk in Gnome3? -- nosy: +serwy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13553

[issue694339] IDLE: Dedenting with Shift+Tab

2011-12-21 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: I applied the patch and encountered a problem. MultiCall.py is replacing Shift-Key-Tab with Shift-KeyPress-Tab. When this happens, the logic for rebinding PrevWindow fails. event_info('PrevWindow') returns ('Key-ISO_Left_Tab', 'Key

[issue12930] reindent.py inserts spaces in multiline literals

2011-12-21 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: I applied the patch and it failed against the attached tab_test.py file. For reference, every '\t' in the file is followed by Tab. -- nosy: +serwy Added file: http://bugs.python.org/file24074/tab_test.py

[issue9925] Idle doesn't launch

2011-12-21 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: This bug looks almost identical to issue4625 which was fixed. The only difference is the French localization aspect. -- nosy: +serwy ___ Python tracker rep...@bugs.python.org http

[issue13532] In IDLE, sys.stdout.write and sys.stderr can write any pickleable object

2011-12-21 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: This bug is related to #1757057. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13532

[issue10079] idlelib for Python 3 with Guilherme Polo GSoC enhancements

2011-12-20 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: I went through the changes in idlelib20101012_From_r32a3.patch. A lot of the changes are for using relative imports. Those changes aside, here is a list of issues that this patch covers. Most of these issues already have patches

[issue10079] idlelib for Python 3 with Guilherme Polo GSoC enhancements

2011-12-20 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: minor mistake - issue3559 Pasted \n not same as typed \n -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10079

[issue10079] idlelib for Python 3 with Guilherme Polo GSoC enhancements

2011-12-20 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: I checked the submitted patches from the issues against the large patch by eye. Guilherme's patches in these separate issues have the same contents: issue1207589, issue1612262, issue1721083, issue6699, issue3359. The large patch updates

[issue13630] IDLE: Find(ed) text is not highlighted while dialog box is open

2011-12-19 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: IDLE does have a color scheme configuration for found as listed in the highlighting config dialog and internally as the Tkinter Text tag hit. This looks like the stubs for functionality that never got implemented. Take a look

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

2011-12-18 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: You can trigger this error every time if you change .after(2*self.poll_interval, self.close2) to .after(1, self.close2) in PyShell.py -- nosy: +serwy ___ Python tracker rep...@bugs.python.org

[issue13586] IDLE: Replace selected not working/consistent with find

2011-12-17 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: On Linux using 2.7.1 and 3.2, the Replace dialog does not contain the selected text in the Find field. The find functionality that copies the selected text was introduced in 868ff0dfabd2 on 2002-11-06. Unfortunately it wasn't added

[issue8231] Unable to run IDLE without write-access to config directory

2011-12-17 Thread Roger Serwy
Changes by Roger Serwy roger.se...@gmail.com: -- components: +IDLE -Library (Lib), Windows nosy: +serwy versions: +Python 2.7, Python 3.2, Python 3.3 -Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8231

[issue13586] IDLE: Replace selected not working/consistent with find

2011-12-17 Thread Roger Serwy
Changes by Roger Serwy roger.se...@gmail.com: Added file: http://bugs.python.org/file24016/find_keep_open.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13586

[issue13571] Backup files support in IDLE

2011-12-15 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: Let's move this discussion to the IDLE-dev mailing list. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13571

[issue4625] IDLE won't open anymore, .idlerc unaccessible

2011-12-14 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: I just tested Ned's updated patches against 3.3a0 and 2.7 and they work as advertised. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4625

[issue13571] Backup files support in IDLE

2011-12-14 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: Would you want to collaborate on writing an extension to do this? Check out IdleX. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13571

[issue4832] idle filename extension

2011-12-14 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: I was unable to produce the crash that Pavel described in msg87703. Just adding defaultextension='' solves this issue for Windows and still preserves the correct behavior on Linux. Amaury's quote of tcl/tk documentation in msg87695

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

2011-12-14 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: William's explanation in msg123203 for the cause of the error and the solution for keeping a reference to flist is good. IDLE has only one instance of FileList while running anyways. Attached is a patch that behaves like William's

[issue13582] IDLE and pythonw.exe stderr problem

2011-12-14 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: I don't have a Mac to test against. Is there anything I need to do to improve the patch? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13582

[issue13582] IDLE and pythonw.exe stderr problem

2011-12-13 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: Here is a list of open issues that describe IDLE suddenly crashing, which can be traced back to pythonw.exe: #4765, #5707, #6257, #6739, #9404, #9925, #10365, #11437, #12274, #12988, #13052, #13071, #13078, #13153 This patch does not fix

[issue4625] IDLE won't open anymore, .idlerc unaccessible

2011-12-13 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: A quick test on Linux would be: chmod -w ~/.idlerc/recent-files.lst IDLE will give a traceback and not start. This should not be a fatal error. The provided patch will present an error dialog if the recent files list can not be written

[issue9404] IDLE won't launch on XP

2011-12-13 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: This is a duplicate of #4625. -- nosy: +serwy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9404

[issue13571] Backup files support in IDLE

2011-12-12 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: I rarely have IDLE crash on Linux. If you're experiencing these issues on Windows, see #13582. -- nosy: +serwy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13571

[issue13582] IDLE and pythonw.exe stderr problem

2011-12-12 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: You can try triggering bug #8900 quite simply. From a shell or an editor, press Ctrl+N and then Ctrl+O. Open a file and watch IDLE terminate abruptly. Also, see #12274. If you want to play with this problem further, try adding a raise

[issue7163] IDLE suppresses sys.stdout.write() return value

2011-12-12 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: If you add return len(s) to PseudoFile::write in PyShell.py, then it will work. However, this approach may not be the right thing to do. -- nosy: +serwy ___ Python tracker rep...@bugs.python.org

[issue13532] In IDLE, sys.stdout.write and sys.stderr can write any pickleable object

2011-12-12 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: The crash can be prevented by using #13582. The RPCProxy object would need to be subclassed so that it raises TypeError for the write method when it is not given a string. -- nosy: +serwy

[issue8900] IDLE crashes if Preference set to At Startup - Open Edit Window

2011-12-11 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: Attached is a patch to fix the bug. When selecting Open from the File Menu, ishanderrunning is empty. Unbind/Bind requests are handled synchronously. When pressing Ctrl+O, ishandlerrunning is no longer empty, and the actual bind/unbind

[issue13582] IDLE and pythonw.exe stderr problem

2011-12-11 Thread Roger Serwy
New submission from Roger Serwy roger.se...@gmail.com: Running IDLE on Windows typically uses pythonw.exe. Unfortunately any error messages written to stderr will cause IDLE to terminate abruptly without an error message. This is due to __stderr__ == None. Attached is a patch against 3.3a0

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

2011-12-10 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: Attached is a patch to correct the existing bug as-is. Should the behavior of IDLE be changed as Tal suggests? -- keywords: +patch nosy: +serwy Added file: http://bugs.python.org/file23911/issue6698.patch

[issue6699] IDLE: Warn user about overwriting a file that has a newer version on filesystem

2011-12-09 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: The patch won't apply against 3.3a0 because self.set_saved(1) became self.set_saved(True) in r70054 (da7a120c0478) After correcting this minor point, the patch works as expected. -- nosy: +serwy versions: +Python 3.3

[issue10364] IDLE: make .py default added extension on save

2011-12-09 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: This is a duplicate of #4832. -- nosy: +serwy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10364

[issue8515] idle Run Module (F5) does not set __file__ variable

2011-12-08 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: I've encountered this bug several times myself. I applied this patch and it corrects the issue. -- nosy: +serwy versions: +Python 2.7, Python 3.2, Python 3.3 -Python 2.6 ___ Python tracker rep

[issue4691] IDLE Code Caching Windows

2011-12-08 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: Given Amaury's last message, should this issue be closed as being resolved? -- nosy: +serwy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4691

[issue7676] IDLE shell shouldn't use TABs

2011-12-08 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: Here's a simple patch to fix this bug. The prompt causes the first level of indented code to use 8 spaces. Further indented code should use 4 spaces, but still uses 8 spaces likely due to the bug described in #8285. -- keywords

[issue6321] Reload Python modules when running programs

2011-12-08 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: Should this issue be closed? It is related to #4691. -- nosy: +serwy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6321

[issue7136] Idle File Menu Option Improvement

2011-12-07 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: This issue is mentioned as part of #13504 meta-issue. The attached patch extends Tal's original patch by also updating the help.txt documentation. -- nosy: +serwy Added file: http://bugs.python.org/file23878/issue7136.patch

[issue13319] IDLE: Menu accelerator conflict between Format and Options

2011-12-07 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: Attached is a patch to have Alt-i bring up the Options menu. -- keywords: +patch Added file: http://bugs.python.org/file23879/issue13319.patch ___ Python tracker rep...@bugs.python.org http

[issue8641] IDLE 3 doesn't highlights b, but u

2011-12-06 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: I applied the patch against the latest version in the repository and it works correctly. -- nosy: +serwy type: - behavior versions: +Python 3.2, Python 3.3 ___ Python tracker rep

[issue11838] IDLE: make interactive code savable as a runnable script

2011-12-06 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: This issue relates to #1178 A traceback does not necessarily mean that the last statement had the error. For example: a = lambda: 1/0 a() Traceback (most recent call last): File pyshell#1, line 1, in module

<    1   2   3   4   5   6   >