[issue13028] python wastes linux users time by checking for dylib on each dynamic library load

2011-09-22 Thread Roger
New submission from Roger : instead it should check for linux once, store that linux is used and not even once check for dylib strace extract [pid 23025] stat64("//lib/libreadline.dylib", 0xbfd27c1c) = -1 ENOENT (No such file or directory) [pid 23025] stat64("//lib

[issue4703] Syntax error in sample code for enumerate in documentation.

2008-12-19 Thread Roger
New submission from Roger : Summary: Sample code for enumerate contains a syntax error. The same code reads: >>> for i, season in enumerate(['Spring', 'Summer', 'Fall', 'Winter')]: ... print(i, season) Where the parenthesis and square bra

[issue34226] cgi.parse_multipart() requires undocumented CONTENT-LENGTH in Python 3.7

2018-07-28 Thread roger
roger added the comment: working on this on europython -- nosy: +rogerduran ___ Python tracker <https://bugs.python.org/issue34226> ___ ___ Python-bugs-list m

[issue13081] Crash in Windows with unknown cause

2011-09-30 Thread Roger Libiez
New submission from Roger Libiez : While using the application found at: https://sourceforge.net/tracker/?group_id=199269 The following Windows error dump generates itself while processing a batch of 3D mesh files with it. I do not know the specifics about what process was underway or have

[issue13179] IDLE uses common tkinter variables across all editor windows

2011-10-14 Thread Roger Serwy
New submission from Roger Serwy : IDLE's EditorWindow.py relies on using FileList.py's "vars" dictionary to store Tkinter variables instead of using its own. As a consequence, toggling a checked menu item in one editor window toggles the menu item in ALL editor windows

[issue13039] IDLE editor: shell-like behaviour on line starting with ">>>"

2011-10-14 Thread Roger Serwy
Roger Serwy added the comment: Here's a patch. The smart_backspace_event code considers sys.ps1 even though it's not a PyShell instance. The "context_use_ps1" flag is already used to modify other behavior of the editor window when it is a PyShell instance, so it is ap

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

2011-10-14 Thread Roger Serwy
Roger Serwy added the comment: I see that Ezio added me to the nosy list. Here's a patch that identifies bogus escape characters at the end of the replvar string and appends an extra \ to fix it. -- keywords: +patch Added file: http://bugs.python.org/file23409/patch13052

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

2011-10-14 Thread Roger Serwy
Changes by Roger Serwy : -- nosy: +serwy ___ Python tracker <http://bugs.python.org/issue9150> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

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

2011-10-14 Thread Roger Serwy
Roger Serwy added the comment: I don't have the beep problem you describe under Linux using Python 3.2 (r32:88445, Mar 25 2011, 19:56:22). That may be a platform-specific bug. Here's a patch to use re.escape instead. A minor side effect of using re.escape is that it is not possi

[issue13179] IDLE uses common tkinter variables across all editor windows

2011-10-15 Thread Roger Serwy
Roger Serwy added the comment: For Code Context, the behavior is a bug since the menu item check can be changed independently of the actual status of Code Context. As far as I can tell, flist.vars mostly contains variables created by EditorWindow.py's "get_var_obj". A quick

[issue1053687] PyOS_InputHook not called in IDLE subprocess

2011-10-18 Thread Roger Serwy
Roger Serwy added the comment: This is related to http://bugs.python.org/issue989712 -- nosy: +serwy ___ Python tracker <http://bugs.python.org/issue1053

[issue13296] IDLE: __future__ flags don't clear on shell restart

2011-10-30 Thread Roger Serwy
New submission from Roger Serwy : The interactive interpreter in IDLE does not reset its compiler __future__ flags when you restart the shell. To verify this, type into the shell: >>> from __future__ import barry_as_FLUFL >>> 1 != 2 You'll get a syntax e

[issue5219] IDLE/Tkinter: edit win stops updating when tooltip is active

2011-10-30 Thread Roger Serwy
Roger Serwy added the comment: Attached is a patch against 3.2.2 which does proper after_cancel calls on the after calls to checkhide_event. -- Added file: http://bugs.python.org/file23558/patch5219.diff ___ Python tracker <http://bugs.python.

[issue13265] IDLE crashes when printing some unprintable characters.

2011-10-30 Thread Roger Serwy
Roger Serwy added the comment: I can reproduce the problem with Ubuntu 11.04 with Python 3.2. The WidgetRedirector calls tk_call with a tuple containing unencoded Unicode strings. Attached is a patch to encode all arguments if the argument has the "encode" attribute. This seems

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

2011-11-01 Thread Roger Serwy
New submission from Roger Serwy : This is a minor interface issue. The accelerator for opening the _Options menu in an editor conflicts with the F_ormat menu. I suggest changing the Options accelerator to "i" since Alt-t is for toggling tabs. (Perhaps the accelerator for <> s

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

2011-11-04 Thread Roger Serwy
Roger Serwy added the comment: Which platform are you running? On Linux (Ubuntu 11.10, Python 3.2, Tk 8.5), Alt-o does not toggle between Format and Options. The first Alt-o selects "Format" and the second Alt-o selects "Comment Out Region". Changing Format's ac

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

2011-11-04 Thread Roger Serwy
Roger Serwy added the comment: Alt-3 is comment-out region on Linux as well. The problem is that "o" is an accelerator for "Comment Out Region" under the Format menu. Pressing "Alt-o and o" under Linux is equivalent to "Alt-o and Alt-o". This togglin

[issue12988] IDLE on Win7 crashes when saving to Documents Library

2011-11-15 Thread Roger Serwy
Changes by Roger Serwy : -- nosy: +serwy ___ Python tracker <http://bugs.python.org/issue12988> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8793] IDLE crashes on opening invalid file

2011-11-15 Thread Roger Serwy
Roger Serwy added the comment: With IDLE 3.2 on Ubuntu 11.04, this is not a problem. An error box pops up: SyntaxError (unicode error) 'unicodeescape' codec can't decode bytes in position 0-3: truncated \xXX escape With IDLE 2.7.1 on Ubuntu 11.04, the console gives the err

[issue13495] IDLE: Regression - Two ColorDelegator instances loaded

2011-11-28 Thread Roger Serwy
New submission from Roger Serwy : Two instances of ColorDelegator are in the percolator chain. This is a regression from 2.x. The problem can be found in __init__ of EditorWindow in EditorWindow.py. Calling "io.loadfile" eventually calls "filename_change_hook"

[issue3573] IDLE hangs when passing invalid command line args (directory(ies) instead of file(s))

2011-11-29 Thread Roger Serwy
Roger Serwy added the comment: I can confirm that using "idle -e " still causes a hang on Windows using 3.2.2 and on Ubuntu using 2.7.1 and 3.2 The given patch fixes the problem on those platforms. -- nosy: +serwy ___ Python trac

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

2011-11-29 Thread Roger Serwy
Changes by Roger Serwy : -- nosy: +serwy ___ Python tracker <http://bugs.python.org/issue13504> ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2011-11-30 Thread Roger Serwy
Roger Serwy added the comment: +1 The proposed patch works as described. I do agree with Marco that IDLE does need some more QA. -- nosy: +serwy ___ Python tracker <http://bugs.python.org/issue13

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

2011-11-30 Thread Roger Serwy
Roger Serwy added the comment: #2704 covers point 1 (In the shell window, if you click anywhere but on the current line and move the cursor there, the window stops handling key strokes.) #3851 covers point 1.1) "Pressing the Home key moves the cursor before the >>> prompt, wh

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

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

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

2011-12-02 Thread Roger Serwy
Roger Serwy added the comment: I considered saving directly from the shell but then I ran into a use-case problem. Saving the shell window as an runnable script will also save any syntax errors that were entered. A user would then have to open an editor to correct these errors. A high-level

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

2011-12-03 Thread Roger Serwy
Roger Serwy added the comment: I have given this issue some further consideration, and realized that my "+1" recommendation was not correct. Starting the interactive python interpreter will automatically include [''] in sys.path. A fresh restart of IDLE's shell does

[issue13495] IDLE: Regression - Two ColorDelegator instances loaded

2011-12-04 Thread Roger Serwy
Roger Serwy added the comment: I attached a better patch that preserves the goals of the original code while not creating two color delegators. I traced down when the regression occurred (2007-09-06): (a4bd8a4805a8) 1. Fail gracefully if the file fails to decode when loaded. This patch (2008

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

2011-12-06 Thread Roger Serwy
Roger Serwy 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 <http://bugs.python.org/iss

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

2011-12-06 Thread Roger Serwy
Roger Serwy 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 "", line 1, in a

[issue7136] Idle File Menu Option Improvement

2011-12-07 Thread Roger Serwy
Roger Serwy 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.

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

2011-12-07 Thread Roger Serwy
Roger Serwy 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 <http://bugs.python.org/issue13

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

2011-12-08 Thread Roger Serwy
Roger Serwy 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 <http://bugs.py

[issue4691] IDLE Code Caching Windows

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

[issue7676] IDLE shell shouldn't use TABs

2011-12-08 Thread Roger Serwy
Roger Serwy 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.

[issue6321] Reload Python modules when running programs

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

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

2011-12-09 Thread Roger Serwy
Roger Serwy 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: +se

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

2011-12-09 Thread Roger Serwy
Roger Serwy added the comment: This is a duplicate of #4832. -- nosy: +serwy ___ Python tracker <http://bugs.python.org/issue10364> ___ ___ Python-bugs-list m

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

2011-12-10 Thread Roger Serwy
Roger Serwy 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 ___ Python

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

2011-12-11 Thread Roger Serwy
Roger Serwy 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

[issue13582] IDLE and pythonw.exe stderr problem

2011-12-11 Thread Roger Serwy
New submission from Roger Serwy : 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 for idle.pyw to

[issue13571] Backup files support in IDLE

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

[issue13582] IDLE and pythonw.exe stderr problem

2011-12-12 Thread Roger Serwy
Roger Serwy 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 Exception&q

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

2011-12-12 Thread Roger Serwy
Roger Serwy 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 <http://bu

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

2011-12-12 Thread Roger Serwy
Roger Serwy 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 ___ Python trac

[issue13582] IDLE and pythonw.exe stderr problem

2011-12-13 Thread Roger Serwy
Roger Serwy 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 these errors, but at

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

2011-12-13 Thread Roger Serwy
Roger Serwy 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. -- keywords

[issue9404] IDLE won't launch on XP

2011-12-13 Thread Roger Serwy
Roger Serwy added the comment: This is a duplicate of #4625. -- nosy: +serwy ___ Python tracker <http://bugs.python.org/issue9404> ___ ___ Python-bugs-list mailin

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

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

[issue13571] Backup files support in IDLE

2011-12-14 Thread Roger Serwy
Roger Serwy added the comment: Would you want to collaborate on writing an extension to do this? Check out IdleX. -- ___ Python tracker <http://bugs.python.org/issue13

[issue4832] idle filename extension

2011-12-14 Thread Roger Serwy
Roger Serwy 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 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'

[issue13582] IDLE and pythonw.exe stderr problem

2011-12-14 Thread Roger Serwy
Roger Serwy 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 <http://bugs.python.org/is

[issue13571] Backup files support in IDLE

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

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

2011-12-17 Thread Roger Serwy
Roger Serwy 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 to the Replace Dialog

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

2011-12-17 Thread Roger Serwy
Changes by Roger Serwy : -- components: +IDLE -Library (Lib), Windows nosy: +serwy versions: +Python 2.7, Python 3.2, Python 3.3 -Python 3.1 ___ Python tracker <http://bugs.python.org/issue8

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

2011-12-17 Thread Roger Serwy
Changes by Roger Serwy : Added file: http://bugs.python.org/file24016/find_keep_open.patch ___ Python tracker <http://bugs.python.org/issue13586> ___ ___ Python-bug

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

2011-12-18 Thread Roger Serwy
Roger Serwy 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 <http://bu

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

2011-12-19 Thread Roger Serwy
Roger Serwy 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 at the Sear

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

2011-12-20 Thread Roger Serwy
Roger Serwy 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 that are inclu

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

2011-12-20 Thread Roger Serwy
Roger Serwy added the comment: minor mistake - issue3559 "Pasted \n not same as typed \n" -- ___ Python tracker <http://bugs.python.org/issue10079> ___ ___

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

2011-12-20 Thread Roger Serwy
Roger Serwy 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 issue964437, bu

[issue12510] IDLE get_the_calltip mishandles raw strings

2011-12-21 Thread Roger Serwy
Roger Serwy 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

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

2011-12-21 Thread Roger Serwy
Roger Serwy added the comment: Is this still a problem? -- nosy: +serwy ___ Python tracker <http://bugs.python.org/issue9016> ___ ___ Python-bugs-list mailin

[issue6528] builtins colored as keyword at beginning of line

2011-12-21 Thread Roger Serwy
Roger Serwy 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/issue6528.patch

[issue8093] IDLE processes don't close

2011-12-21 Thread Roger Serwy
Roger Serwy 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 <http://bugs.python.org/issue8

[issue8820] IDLE not launching correctly

2011-12-21 Thread Roger Serwy
Roger Serwy added the comment: Is this still a problem with 2.7? -- nosy: +serwy ___ Python tracker <http://bugs.python.org/issue8820> ___ ___ Python-bugs-list m

[issue7883] CallTips.py _find_constructor does not work

2011-12-21 Thread Roger Serwy
Roger Serwy 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 <http://bugs.python.

[issue13078] Python Crashes When Saving Or Opening

2011-12-21 Thread Roger Serwy
Roger Serwy 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 <h

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

2011-12-21 Thread Roger Serwy
Roger Serwy added the comment: The large patch also contains the same patch in issue6649. -- ___ Python tracker <http://bugs.python.org/issue10079> ___ ___ Pytho

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

2011-12-21 Thread Roger Serwy
Roger Serwy added the comment: Is this still an issue? -- ___ Python tracker <http://bugs.python.org/issue9150> ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2011-12-21 Thread Roger Serwy
Roger Serwy added the comment: This issue was fixed in 500e48708470, as part of issue3851. -- nosy: +serwy ___ Python tracker <http://bugs.python.org/issue9

[issue13553] Tkinter doesn't set proper application name

2011-12-21 Thread Roger Serwy
Roger Serwy added the comment: Does IDLE appear as "Tk" in Gnome3? -- nosy: +serwy ___ Python tracker <http://bugs.python.org/issue13553> ___ ___

[issue694339] IDLE: Dedenting with Shift+Tab

2011-12-21 Thread Roger Serwy
Roger Serwy added the comment: I applied the patch and encountered a problem. MultiCall.py is replacing "" with "". When this happens, the logic for rebinding "<>" fails. event_info('<>') returns ('', '', 

[issue12930] reindent.py inserts spaces in multiline literals

2011-12-21 Thread Roger Serwy
Roger Serwy 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.py

[issue9925] Idle doesn't launch

2011-12-21 Thread Roger Serwy
Roger Serwy 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 <http://bugs.python.org/issue9

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

2011-12-21 Thread Roger Serwy
Roger Serwy added the comment: This bug is related to #1757057. -- ___ Python tracker <http://bugs.python.org/issue13532> ___ ___ Python-bugs-list mailin

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

2011-12-22 Thread Roger Serwy
Roger Serwy 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 <http://bugs.python.org/is

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

2011-12-22 Thread Roger Serwy
Roger Serwy 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 and not reschedule

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

2011-12-22 Thread Roger Serwy
Roger Serwy 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 the f

[issue9039] IDLE and module Doc

2011-12-22 Thread Roger Serwy
Roger Serwy added the comment: Is this still an issue? -- nosy: +serwy type: crash -> behavior ___ Python tracker <http://bugs.python.org/issue9039> ___ ___ Py

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

2011-12-22 Thread Roger Serwy
Roger Serwy 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 was fixed in e9c406a53972

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

2011-12-23 Thread Roger Serwy
Roger Serwy 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

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

2011-12-23 Thread Roger Serwy
Roger Serwy 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. As a consequence, bindings for

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

2011-12-23 Thread Roger Serwy
Roger Serwy 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 such that the s

[issue13644] Python 3 aborts with this code.

2011-12-23 Thread Roger Serwy
Roger Serwy added the comment: This is identical to issue6028 and may be related to issue3555. -- ___ Python tracker <http://bugs.python.org/issue13644> ___ ___

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

2011-12-24 Thread Roger Serwy
Roger Serwy added the comment: This is related to #13644. -- nosy: +serwy ___ Python tracker <http://bugs.python.org/issue7338> ___ ___ Python-bugs-list mailin

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

2011-12-27 Thread Roger Serwy
Roger Serwy 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(p

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

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

[issue12265] revamp argument errors

2011-06-05 Thread Roger Binns
Roger Binns added the comment: Is there any reason it doesn't show the function 'prototype' which is by far the most the useful piece of information and is also a form of documentation (plus fairly hard to work out). Convoluted technospeak is far harder to understand. Comp

[issue12265] revamp argument errors

2011-06-05 Thread Roger Binns
Roger Binns added the comment: Obviously the prototype can't be provided when it isn't known. But the pseudo-English text is trying to describe the prototype and is far less clear than the actual prototype. ie the developer communicated the prototype to Python in Python synta

[issue12823] Broken link in "SSL wrapper for socket objects" document

2011-08-23 Thread Roger Li
New submission from Roger Li : In http://docs.python.org/release/3.1.3/library/ssl.html You will find a link at the bottom named "Introducing SSL and Certificates using OpenSSL", it's a broken link. The server may be down or not exist, the only version I can find is http://web.

[issue9262] IDLE: Use tabbed shell and edit windows

2011-08-26 Thread Roger Serwy
Roger Serwy added the comment: Attached is an extension which provides tabbed windows for IDLE. It supports drag-and-drop reordering and separate windows. The implementation relies on monkey-patching a few subroutines and duck-typing for the toplevel window. The extension emulates each tab

[issue5150] IDLE to support reindent.py

2010-10-15 Thread Roger Serwy
Roger Serwy added the comment: I grabbed the core of reindent.py and put it into an extension, unmodified. The original reindent.py will emit Indentation Errors if they exist. ScriptBinding already has nice code to handle these problems by highlighting the error, placing the cursor at the

[issue6014] No shell prompt when a graphics window that was started from IDLE is closed

2010-10-15 Thread Roger Serwy
Roger Serwy added the comment: This issue can be closed. The natural language toolkit uses Tk for its GUI, the same as IDLE. Under Ubuntu 8.10, IDLE is launched from the menu without a subprocess. Running nltk as described without a subprocess causes this problem. Try launching IDLE without

[issue10181] get_shape0 in memoryobject.c not checked for error return

2010-10-23 Thread Roger Upole
New submission from Roger Upole : There are a number of places in memoryobject.c where get_shape0 is used without the return value being checked. If it fails, this leads to hanging exceptions and crashes. -- components: Interpreter Core messages: 119460 nosy: rupole priority: normal

[issue10181] get_shape0 in memoryobject.c not checked for error return

2010-11-02 Thread Roger Upole
Roger Upole added the comment: The culprit wrt copying Py_buffer structs seems mainly to be dup_buffer, which is called in memory_getbuf. This seems unnecessary in the case where there's an underlying object and it has returned the view thru its own tp_as_buffer. The underlying obje

[issue3605] Py_FatalError causes infinite loop

2010-11-02 Thread Roger Upole
Roger Upole added the comment: I know this has been closed, but I disagree with the fix. Py_FatalError is designed to give a clean exit with a readable error message when the state of the interpreter is known to be compromised. Calling *any* python functions or accessing *any* python

[issue10181] get_shape0 in memoryobject.c not checked for error return

2010-11-03 Thread Roger Upole
Roger Upole added the comment: While on the subject, the docs for PyMemoryView_FromBuffer state that the resulting memoryview takes ownership of the Py_buffer struct and is responsible for freeing any associated memory. It does not do so, which is not surprising. The absence of a standard

[issue11851] Flushing the standard input causes an error

2011-04-16 Thread Roger Binns
Roger Binns added the comment: I'm the APSW author. The reason why this apparent nonsense is done is due to using readline and completion. That requires being able to write to standard input when it is a terminal - something that Windows and Linux are happy to do. In any event I

  1   2   3   4   5   6   7   >