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

2013-04-17 Thread Roger Serwy
Roger Serwy added the comment: Hello Ger, Sure, I can explain. IDLE is driven by the Tk event loop. Calls to .update() flushes all pending events and expired .after callbacks. When close() gets called in PyShell, it places the finalization of the close (using close2()) into the Tk event

[issue17776] IDLE Internationalization

2013-04-18 Thread Roger Serwy
Roger Serwy added the comment: Extensions would need to be modified to use the gettext module. -- ___ Python tracker <http://bugs.python.org/issue17776> ___ ___

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

2013-04-19 Thread Roger Serwy
Roger Serwy added the comment: Good catch Terry! I've been testing using "python -m idlelib.idle" instead of importing it from an interactive prompt. I'll need to remember to consider that test vector in the future. I figured out why those messages are popping up. The T

[issue13495] IDLE: Regressions - Two ColorDelegator instances loaded

2013-04-19 Thread Roger Serwy
Roger Serwy added the comment: I will split the "good_load" flag bug into its own issue. While addressing a bug in #5492, another doubled-up ColorDelegator problem appeared, tracing back to #1586. The dual_delagators patch removes the code which loads the extra color delegators

[issue17798] IDLE: can not edit new file names when using -e

2013-04-19 Thread Roger Serwy
New submission from Roger Serwy: This is a split from #13495 as it is truly a separate issue. Here's a partial quote from msg151278: """ IDLE 3 no longer allows for editing of new files from the command line. For example: idle -e /tmp/newfile.py will momentarily fl

[issue13262] IDLE opens partially hidden

2013-04-19 Thread Roger Serwy
Roger Serwy added the comment: Why not change the initial window size from 80x40 to 80x38? -- ___ Python tracker <http://bugs.python.org/issue13262> ___ ___ Pytho

[issue17817] ¿Bug Python 2.7.4 and version 3.3.1?

2013-04-22 Thread Roger Serwy
Roger Serwy added the comment: Ricardo, you are correct that 2.7.4 and 3.3.1 have these bugs but they have been fixed, as shown by Serhiy. Unfortunately, these fixes won't be released for a while but they exist as patches and in version control. I am closing this issue as a duplica

[issue15809] IDLE console uses incorrect encoding.

2013-04-22 Thread Roger Serwy
Roger Serwy added the comment: Here's a tangentially related issue: #14326 IDLE doesn't handle pasting multi-line code properly (issue3559), IDLE2 will silently ignore code after the first executable statement. IDLE3 may give an error. Can't we just make IDLE's sh

[issue17822] Save on Close windows (IDLE)

2013-04-23 Thread Roger Serwy
Roger Serwy added the comment: IDLE crashing is due to issue13582. We should maybe focus on that issue in the near future as it has become a common theme in many bug reports. -- ___ Python tracker <http://bugs.python.org/issue17

[issue17822] Save on Close windows (IDLE)

2013-04-23 Thread Roger Serwy
Roger Serwy added the comment: I clicked submit too soon. The attached patch inhibits closing of the Editor when the dialog box appears. It also sets the parent argument so that Tkinter on Windows actually presents a modal dialog box. What's happening is the the dialog box enters a nest

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

2013-04-23 Thread Roger Serwy
Roger Serwy added the comment: The Options menu will become populated as soon as other extensions get included into IDLE, such as issue6143. -- ___ Python tracker <http://bugs.python.org/issue17

[issue17838] Can't assign a different value for sys.stdin in IDLE

2013-04-25 Thread Roger Serwy
Roger Serwy added the comment: Are you running with or without a subprocess? -- ___ Python tracker <http://bugs.python.org/issue17838> ___ ___ Python-bugs-list m

[issue17838] Can't assign a different value for sys.stdin in IDLE

2013-04-26 Thread Roger Serwy
Roger Serwy added the comment: If we remove .close() then we'll need to then have an alternative way to allow "exit()" and "quit()" to actually close IDLE. The RPC proxy already transfers exceptions between the subprocess and the front-end, so we could catch the

[issue17721] Help button on preference window doesn't work

2013-04-26 Thread Roger Serwy
Changes by Roger Serwy : -- nosy: +terry.reedy ___ Python tracker <http://bugs.python.org/issue17721> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17838] Can't assign a different value for sys.stdin in IDLE

2013-04-28 Thread Roger Serwy
Roger Serwy added the comment: I agree with Serhiy that the patch should be updated to better explain why the extra reference to stdin was being held. The attached patch provides that update in case anyone considers applying it in the future. Terry, are you suggesting that the code should

[issue17864] IDLE won't run

2013-04-29 Thread Roger Serwy
Roger Serwy added the comment: This looks like a duplicate of issue8231. -- nosy: +roger.serwy type: crash -> behavior ___ Python tracker <http://bugs.python.org/issu

[issue17642] IDLE add font resizing hot keys

2013-04-29 Thread Roger Serwy
Roger Serwy added the comment: Abhishek, Alejandro, welcome to IDLE development! If you can, please sign a contributor agreement. We have two patches to create this enhancement, both are good. I suggest that we figure out how to merge the solutions. The zoom-out binding should also include

[issue17721] Help button on preference window doesn't work

2013-04-30 Thread Roger Serwy
Roger Serwy added the comment: LGTM. -- stage: -> commit review ___ Python tracker <http://bugs.python.org/issue17721> ___ ___ Python-bugs-list mailing list Un

[issue17838] Can't assign a different value for sys.stdin in IDLE

2013-05-02 Thread Roger Serwy
Roger Serwy added the comment: Keeping the sys.stdin reference alive and then reassigning sys.stdin prevents exit() and quit() from actually closing IDLE since site.py's code closes sys.stdin which then does not trigger PyShell's close() method. I updated Terry's patch to expl

[issue17838] Can't assign a different value for sys.stdin in IDLE

2013-05-03 Thread Roger Serwy
Roger Serwy added the comment: 3.2 still has the problem fixed in issue17585 for 3.3 and 3.4. This only applies if issue17585 patch gets applied to 3.2. -- ___ Python tracker <http://bugs.python.org/issue17

[issue15809] IDLE console uses incorrect encoding.

2013-05-04 Thread Roger Serwy
Roger Serwy added the comment: There is a problem. Adding the encoding comment to the top of the source causes off-by-one line errors in the traceback. Take as an example: >>> 1/0 Traceback (most recent call last): File "", line 2, in ZeroDivisionError: integer divisio

[issue17798] IDLE: can not edit new file names when using -e

2013-05-05 Thread Roger Serwy
Roger Serwy added the comment: I'm closing this issue as fixed. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.pyth

[issue13495] IDLE: Regressions - Two ColorDelegator instances loaded

2013-05-05 Thread Roger Serwy
Roger Serwy added the comment: I'm closing this issue as fixed. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.pyth

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

2013-05-05 Thread Roger Serwy
Roger Serwy added the comment: Terry, the SystemExit traceback from clicking cancel is expected given how Lib/site.py's Quitter first closes sys.stdin and then raises SystemExit. Closing sys.stdin causes the dialog, the raised exception just gets printed. We could change the behavior

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

2013-05-07 Thread Roger Serwy
Roger Serwy added the comment: I'm pinging this issue to see if anyone has had any problems with the Windows-specific workaround for highlighting the selection tags. Issue17511 depends on this fix. -- assignee: -> roger.serwy ___ Python

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

2013-05-08 Thread Roger Serwy
Roger Serwy added the comment: Welcome Phil! Your patch looks good and applied cleanly to the default branch and behaves as you specified. Your submission mechanics are good! You might want to look into signing a contributor's agreement: http://docs.python.org/devguide/coredev.html#s

[issue17838] Can't assign a different value for sys.stdin in IDLE

2013-05-12 Thread Roger Serwy
Roger Serwy added the comment: Georg, I need to clarify what I meant in msg188301. Issue9290 was applied to 3.2 which introduced the bug addressed in issue17585, whose fix then introduced issue17838. IDLE on the 3.2 branch doesn't handle exit() or quit() correctly. It needs both #1758

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

2013-05-12 Thread Roger Serwy
Roger Serwy added the comment: I'm waiting until after the next wave of maitenance releases before I apply this patch. If anyone feels strongly that it should be applied now, let me know. I applied the patch to the latest 2.7.4 64-bit release version of Python and it w

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

2013-05-13 Thread Roger Serwy
Roger Serwy added the comment: It won't make it in 2.7.5. Benjamin tagged the 2.7.5 release a couple of days ago. I'll apply this later tonight. -- stage: patch review -> commit review ___ Python tracker <http://bugs.pytho

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

2013-05-13 Thread Roger Serwy
Roger Serwy added the comment: On second thought, I'll wait until after the releases so that Misc/NEWS gets populated properly. -- ___ Python tracker <http://bugs.python.org/is

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

2013-05-13 Thread Roger Serwy
Roger Serwy added the comment: Adding 16123 as a dependency. Resolving sys.ps1 and sys.ps2 will likely be simpler when only considering one execution mode. -- dependencies: +IDLE - deprecate running without a subprocess nosy: +roger.serwy versions: +Python 2.7, Python 3.4

[issue17642] IDLE add font resizing hot keys

2013-05-13 Thread Roger Serwy
Roger Serwy added the comment: @Abhishek: I'd rather not require extensions to have a new method for resetting font sizes. Instead, a virtual event can be bound to a callback by the extension if it needs to know about a font change. @Alejandro: It looks like there's a bug in ZoomFon

[issue3559] Pasted \n not same as typed \n

2013-05-19 Thread Roger Serwy
Roger Serwy added the comment: The core problem is that IDLE only executes the shell buffer when the <> virtual event gets sent by physically pressing the Enter key. Pasting the clipboard contents with \n will not trigger the enter_callback function in Lib/idlelib/PyShell.py

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

2013-05-20 Thread Roger Serwy
Roger Serwy added the comment: I committed the Tk workaround for the Windows platform. I'm leaving this issue as pending with a resolution of later in case Tk developers address the bug report mentioned in msg185632. If anyone else wishes to close it, feel free. -- resol

[issue17511] Idle find function closes after each find operation

2013-05-20 Thread Roger Serwy
Roger Serwy added the comment: issue_17511_FindNext_rev1.patch keeps the find dialog open and changes the button from "Find" to "Find Next". The applied patch from #14146 corrects the selection tag highlighting issue. -- Added file: http://bugs.

[issue17658] pythonw.exe crashes on opening IDLE

2013-05-20 Thread Roger Serwy
Roger Serwy added the comment: Patrick, does removing PYTHONPATH from your environment variables fix this problem? -- nosy: +roger.serwy status: open -> pending ___ Python tracker <http://bugs.python.org/issu

[issue22107] tempfile module misinterprets access denied error on Windows

2015-02-16 Thread Roger Upole
Roger Upole added the comment: os.access doesn't check filesystem permissions, so the patch will not catch the condition that creates the problem. -- ___ Python tracker <http://bugs.python.org/is

[issue22107] tempfile module misinterprets access denied error on Windows

2015-02-17 Thread Roger Upole
Roger Upole added the comment: It doesn't actually do anything, so why do it at all? In order to distinguish why it failed, you might try checking if the file actually exists, and if it is a folder. -- ___ Python tracker <http://bugs.py

[issue26183] 2.7.11 won't clean install on Windows 10 x64

2016-01-22 Thread Roger Cook
New submission from Roger Cook: The Windows installer stops the installation and backs out on a clean system. Here is the relevant section of the log file (msiexec /i python-2.7.11.amd64.msi /l*v): MSI (s) (14:90) [15:13:32:577]: Executing op: ActionStart(Name=RemovePip,,) Action 15:13:32

[issue26183] 2.7.11 won't clean install on Windows 10 x64

2016-01-25 Thread Roger Cook
Roger Cook added the comment: Installing a VM and running it there, it installs. Is there a manual removal procedure to follow when the automated uninstall fails? -- resolution: -> not a bug status: open -> closed ___ Python tracker

[issue26504] tclErr: invalid command name "PyAggImagePhoto"

2016-03-07 Thread Roger Mosher
New submission from Roger Mosher: when trying to show a FigureCanvasTkAgg the program crashes. Debugging eventually leads me to TkAgg.blit method where we find the following line: tk.call( "PyAggImagePhoto", photoimage, id(data), colormode, id(

[issue26504] tclErr: invalid command name "PyAggImagePhoto"

2016-03-09 Thread Roger Mosher
Roger Mosher added the comment: It appears to be a problem with the Anaconda 3 distribution. See: https://groups.google.com/a/continuum.io/forum/#!topic/anaconda/xssOnleIPFw for a discussion. -- status: open -> closed ___ Python tracker &l

<    2   3   4   5   6   7