[issue9262] IDLE: Use tabbed shell and edit windows

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

[issue1474454] Allow PyArg_ParseTupleAndKeywords to unpack tuples

2008-06-15 Thread Roger Upole
Roger Upole <[EMAIL PROTECTED]> added the comment: This functionality is subsumed in patch 1691070 (which has since been applied), so this can be closed. ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.o

[issue3120] subprocess module truncates handles on AMD64

2008-06-15 Thread Roger Upole
New submission from Roger Upole <[EMAIL PROTECTED]>: HANDLEs are pointer sized values, but there are several places in _subprocess.c where it assumes they are the same size as longs which are still 4 bytes on win64. -- components: Windows messages: 68263 nosy: rupole severity:

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

2008-06-16 Thread Roger Serwy
Roger Serwy <[EMAIL PROTECTED]> added the comment: I rewrote the patch to better handle multi-line input. In rewriting the patch I realized that there can be many different ways to handle up/down key presses while the cursor is in the input region. Here is the behavior of this patch: For

[issue3143] development docs waste a lot of horizontal space on left nav bar

2008-06-24 Thread Roger Demetrescu
Changes by Roger Demetrescu <[EMAIL PROTECTED]>: -- nosy: +rdemetrescu ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3143> ___ __

[issue3240] IDLE environment corrupts string.letters

2008-06-29 Thread Roger Upole
New submission from Roger Upole <[EMAIL PROTECTED]>: The problem seems to stem from this line in IOBinding.py: locale.setlocale(locale.LC_CTYPE, "") >From the command prompt: Python 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)] on win32 Type

[issue3240] IDLE environment corrupts string.letters

2008-07-01 Thread Roger Upole
Roger Upole <[EMAIL PROTECTED]> added the comment: It introduces high characters that cause comparisons to fail under IDLE that succeed from the normal python prompt: Python 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)] on win32 Type "help", "cop

[issue3279] import of site.py fails on startup

2008-07-03 Thread Roger Upole
New submission from Roger Upole <[EMAIL PROTECTED]>: In pythonrun.c, initstdio injects 'open' into builtins. However, initsite is called before initstdio and site.py uses open. Running with -v, this traceback is printed: Traceback (most recent call last): File "j:\python

[issue3308] MinGW built extensions do not load (specified procedure cannot be found)

2008-07-06 Thread Roger Binns
New submission from Roger Binns <[EMAIL PROTECTED]>: My extension (apsw) builds and runs just fine on Linux, Mac and Windows for Python 2.3, 2.4 and 2.5. For Linux and Mac Python 2.6 beta 1 and Python 3.0 beta 1 also work just fine. However on Windows using MinGW and Python 2.6 beta

[issue3308] MinGW built extensions do not load (specified procedure cannot be found)

2008-07-06 Thread Roger Binns
Roger Binns <[EMAIL PROTECTED]> added the comment: I figured maybe it was something to do with MSVC 90 dlls. C:\apsw>dir \*msvc*90* /s Volume in drive C has no label. Volume Serial Number is F4A5-1661 Directory of C:\MinGW\lib 12/27/2007 08:23 AM 554,136 libmsvcr9

[issue3308] MinGW built extensions do not load (specified procedure cannot be found)

2008-07-06 Thread Roger Binns
Roger Binns <[EMAIL PROTECTED]> added the comment: I can't prove it since Python gives no further information than a procedure cannot be found, but using a bunch of other tools I think this may be due at least to the use of localtime() and it not being present in the msvcr90.dll but i

[issue3308] MinGW built extensions do not load (specified procedure cannot be found)

2008-07-06 Thread Roger Binns
Roger Binns <[EMAIL PROTECTED]> added the comment: I cleared all event categories, and then ran Python followed by the import (which fails). No events in any category appeared. ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue3308] MinGW built extensions do not load (specified procedure cannot be found)

2008-07-06 Thread Roger Binns
Roger Binns <[EMAIL PROTECTED]> added the comment: I didn't have a copy of depends.exe since it doesn't appear to come with MinGW. System is basically VirtualBox VM with fresh install of XP Pro SP2, upgraded to SP3 and TortoiseSVN, Firefox, Xemacs, MinGW and Python versions ins

[issue3308] MinGW built extensions do not load (specified procedure cannot be found)

2008-07-07 Thread Roger Binns
Roger Binns <[EMAIL PROTECTED]> added the comment: In MinGW's defense the MSVC 7 dll does include localtime. Since Python/distutils only says that MSVC 9 dll is being used at link time, how exactly is MinGW (or any other code) supposed to know that localtime should be provided som

[issue3308] MinGW built extensions do not load (specified procedure cannot be found)

2008-07-07 Thread Roger Binns
Roger Binns <[EMAIL PROTECTED]> added the comment: I will ask on the MinGW lists. I am still curious as to how MinGW is supposed to know which MSVC library will be used at compile time since distutils doesn't tell it until link time. As a seperate issue Python isn't too

[issue3308] MinGW built extensions do not load (specified procedure cannot be found)

2008-07-07 Thread Roger Binns
Roger Binns <[EMAIL PROTECTED]> added the comment: I guess you can close this now. Unfortunately SourceForge goes out of its way to not make an easy link for the MinGW mailing list but you can see the messages on 8th July 2008: http://sourceforge.net/mailarchive/forum.php?forum_name

[issue3120] subprocess module truncates handles on AMD64

2008-07-20 Thread Roger Upole
Roger Upole <[EMAIL PROTECTED]> added the comment: This fixes the problem I had on 64-bit Vista, and all of python's own tests still pass. ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.

[issue3438] PyCF_DONT_IMPLY_DEDENT can be used to activate the with statement

2008-07-24 Thread Roger Demetrescu
Changes by Roger Demetrescu <[EMAIL PROTECTED]>: -- nosy: +rdemetrescu ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3438> ___ __

[issue3453] PyType_Ready doesn't ensure that all bases are ready

2008-07-27 Thread Roger Upole
New submission from Roger Upole <[EMAIL PROTECTED]>: If a type's tp_base has not been initialized yet, PyType_Ready calls itself for tp_base. However, it doesn't do the same for members of tp_bases. The inheritance determinations assume that all bases are ready, in particula

[issue3453] PyType_Ready doesn't ensure that all bases are ready

2008-07-28 Thread Roger Upole
Roger Upole <[EMAIL PROTECTED]> added the comment: If that were the case, it wouldn't need to call PyType_Ready for tp_base either. From stepping thru the code, there are several places in the interpreter core that PyType_Ready is called for types whose tp_base has not been init

[issue3534] refactor.py can lose indentation for relative imports

2008-08-09 Thread Roger Upole
New submission from Roger Upole <[EMAIL PROTECTED]>: Here's an excerpt from the output when run with --verbose. @@ -138,7 +136,7 @@ def _MakeColorizer(self): ext = os.path.splitext(self.GetDocument().GetPathName()) - import formatter +fr

[issue3534] refactor.py can lose indentation for relative imports

2008-08-09 Thread Roger Upole
Roger Upole <[EMAIL PROTECTED]> added the comment: I was using 3.0b2. The output is correct with latest updates, sorry for the trouble. ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue3537] dict creation failure causes crash

2008-08-10 Thread Roger Upole
New submission from Roger Upole <[EMAIL PROTECTED]>: If the first item can't be inserted the interpreter will crash eventually. while 1: try: d = { 'a':a, 'b':'b', 'c':'

[issue3605] Py_FatalError causes infinite loop

2008-08-19 Thread Roger Upole
New submission from Roger Upole <[EMAIL PROTECTED]>: Py_FatalError calls PyErr_Occurred() which requires a current thread state. This mean that if the original error was a thread state error Py_FatalError is triggered again, ad infinitum. -- components: Interpreter Core messages:

[issue3453] PyType_Ready doesn't ensure that all bases are ready

2008-08-19 Thread Roger Upole
Roger Upole <[EMAIL PROTECTED]> added the comment: This doesn't address the discrepancy between tp_base and tp_bases. If multiple bases are used, it's no longer 'good practice', it's an absolute requirement. IMO, it should call PyType_Ready for all bases, o

[issue3605] Py_FatalError causes infinite loop

2008-08-19 Thread Roger Upole
Roger Upole <[EMAIL PROTECTED]> added the comment: Py_BEGIN_ALLOW_THREADS PyErr_SetString(PyExc_SystemError, "bork bork bork"); Py_END_ALLOW_THREADS ___ Python tracker <[EMAIL PROTECTED]> <http://

[issue3605] Py_FatalError causes infinite loop

2008-08-19 Thread Roger Upole
Roger Upole <[EMAIL PROTECTED]> added the comment: Well, you asked for a simple case. In practice, I'm dealing with much more complicated code that contains callbacks which may need to acquire or release the theadlock. This problem makes it very difficult to debug such code.

[issue3608] memoryview constructor has no deallocator

2008-08-19 Thread Roger Upole
New submission from Roger Upole <[EMAIL PROTECTED]>: When using PyMemoryView_FromMemory to create a new object, you have to pass in a preallocated buffer. However, there's no way to specify a routine to free the memory, and it leaks when the object is destroyed. --

[issue3608] memoryview constructor has no deallocator

2008-08-19 Thread Roger Upole
Roger Upole <[EMAIL PROTECTED]> added the comment: Well it existed up until a couple hours ago ;). Looks like it was recently changed to PyMemoryView_FromBuffer. However, it still has the same issue. ___ Python tracker <[EMAIL PROTECTE

[issue3608] memoryview constructor has no deallocator

2008-08-20 Thread Roger Upole
Roger Upole <[EMAIL PROTECTED]> added the comment: As background, what I need is an equivalent of PyBuffer_New(size), which creates an object that manages its own buffer memory, and is not based on another object at all. ___ Python tracker <[EMAIL

[issue3608] memoryview constructor has no deallocator

2008-08-20 Thread Roger Upole
Roger Upole <[EMAIL PROTECTED]> added the comment: Aha, thanks. I'll go that route for now. ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.

[issue3851] IDLE: Pressing "Home" on Windows places cursor before ">>>" instead of after. Solution offered.

2008-09-12 Thread Roger Serwy
Changes by Roger Serwy <[EMAIL PROTECTED]>: -- nosy: serwy severity: normal status: open title: IDLE: Pressing "Home" on Windows places cursor before ">>>" instead of after. Solution offered. ___ Pytho

[issue3851] IDLE: Pressing "Home" on Windows places cursor before ">>>" instead of after. Solution offered.

2008-09-12 Thread Roger Serwy
New submission from Roger Serwy <[EMAIL PROTECTED]>: Pressing "Home" on Windows XP in the PyShell window places the cursor before ">>>" instead of after it. On Linux, this behaves correctly. The problem is in PyShell.py in the home_callback(). At line 1064: i

[issue3906] lib2to3\main.py will not run

2008-09-18 Thread Roger Upole
New submission from Roger Upole <[EMAIL PROTECTED]>: On first try: File "H:\Python-3.0rc1\Lib\lib2to3\main.py", line 10, in from . import refactor ValueError: Attempted relative import in non-package And after changing that line to from lib2to3 import refactor it still d

[issue3946] PyObject_CheckReadBuffer crashes on memoryview object

2008-09-23 Thread Roger Upole
New submission from Roger Upole <[EMAIL PROTECTED]>: Sample code: PyObject *b=PyBytes_FromString("eh ?"); PyObject *mv=PyMemoryView_FromObject(b); PyObject_CheckReadBuffer(mv); >From following the chain of calls in PyObject_CheckReadBuffer, a few

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

2010-03-25 Thread Roger Serwy
Roger Serwy added the comment: Rather than change the core code of IDLE, I've attached an extension to achieve terminal-like behavior. It provides a toggle to enable/disable. However, this extension as-is only works on the 2.x series, although it can be modified slightly to work o

[issue3851] IDLE: Pressing "Home" on Windows places cursor before ">>>" instead of after. Solution offered.

2010-03-25 Thread Roger Serwy
Changes by Roger Serwy : -- status: open -> closed ___ Python tracker <http://bugs.python.org/issue3851> ___ ___ Python-bugs-list mailing list Unsubscri

[issue1525919] email package quoted printable behaviour changed

2007-12-06 Thread Roger Demetrescu
Roger Demetrescu added the comment: I am not sure if it is related, but anyway... MIMEText behaviour has changed from python 2.4 to 2.5. # Python 2.4 >>> from email.MIMEText import MIMEText >>> m = MIMEText(None, 'html', 'iso-8859-1') >>> m.se

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

2008-04-27 Thread Roger Serwy
New submission from Roger Serwy <[EMAIL PROTECTED]>: See attached diff file. Patching PyShell.py Version 1.2.1 PyShell ignores letter/number key presses when the cursor is not on the command line. Instead it should redirect any letter/number key presses to the command line. (C

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

2008-05-03 Thread Roger Serwy
Roger Serwy <[EMAIL PROTECTED]> added the comment: Hi Terry, The patch allows you to select previous output if your cursor leaves the command line area. Press the left arrow button at a new command line does this. Thank you for your feedback! - RDS Terry J. Reedy wrote: > Terry

[issue36723] Unittest Discovery for namespace subpackages dot notation fails

2019-08-19 Thread Roger Gammans
Roger Gammans added the comment: I think this is a duplicate of one (or both) of 35617, or 23882 . Both of those have unmerged proposed fixes. -- nosy: +rgammans ___ Python tracker <https://bugs.python.org/issue36

[issue35617] unittest discover does not work with implicit namespaces

2019-08-19 Thread Roger Gammans
Change by Roger Gammans : -- nosy: +rgammans ___ Python tracker <https://bugs.python.org/issue35617> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue23882] unittest discovery doesn't detect namespace packages when given no parameters

2019-08-19 Thread Roger Gammans
Change by Roger Gammans : -- nosy: +rgammans ___ Python tracker <https://bugs.python.org/issue23882> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45804] IDLE - faster shell writing

2021-11-13 Thread Roger Serwy
New submission from Roger Serwy : The shell provided by IDLE uses synchronous sys.stdout.write() calls between the subprocess and the front-end, leading to very slow writes. The provided patch proposes buffering the stdout/stderr streams in the subprocess and then sending a single update

[issue45804] IDLE - faster shell writing

2021-11-14 Thread Roger Serwy
Roger Serwy added the comment: All good questions, Terry! I do have a git clone of the cpython repo, but I haven't worked through the new commit/patch process since Mercurial. I'm a bit rusty. The buffering provided is for calls to `write`. It does not do any line buffering

[issue16776] Document PyCFunction_New and PyCFunction_NewEx functions

2020-02-10 Thread Roger Hurwitz
Roger Hurwitz added the comment: I am at PyCascades at the CPython sprint, and I will work on this issue to the best of my ability. -- nosy: +rogerhurwitz ___ Python tracker <https://bugs.python.org/issue16

[issue39594] Typo in documentation for os.times

2020-02-10 Thread Roger Hurwitz
Roger Hurwitz added the comment: Reviewing this as part of the CPython sprint at PyCascades. -- nosy: +rogerhurwitz ___ Python tracker <https://bugs.python.org/issue39

[issue39594] Typo in documentation for os.times

2020-02-10 Thread Roger Hurwitz
Change by Roger Hurwitz : -- keywords: +patch pull_requests: +17817 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18443 ___ Python tracker <https://bugs.python.org/issu

[issue38374] Remove weakref.ReferenceError entry from documentation

2020-02-10 Thread Roger Hurwitz
Roger Hurwitz added the comment: At PyCascades CPython sprint and reviewing this issue. -- nosy: +rogerhurwitz ___ Python tracker <https://bugs.python.org/issue38

[issue38374] Remove weakref.ReferenceError entry from documentation

2020-02-10 Thread Roger Hurwitz
Change by Roger Hurwitz : -- keywords: +patch pull_requests: +17826 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18452 ___ Python tracker <https://bugs.python.org/issu

[issue39765] asyncio loop.set_signal_handler() may not behave as expected

2020-02-26 Thread Roger Dahl
New submission from Roger Dahl : This is a ticket to document two ways in which the behavior of loop.set_signal_handler() may not match what the user expects. First, callbacks to handlers registered with loop.set_signal_handler() may be significantly delayed. I have a program where I&#x

[issue39765] asyncio loop.set_signal_handler() may not behave as expected

2020-02-26 Thread Roger Dahl
Change by Roger Dahl : -- keywords: +patch pull_requests: +18028 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18664 ___ Python tracker <https://bugs.python.org/issu

[issue39765] asyncio loop.add_signal_handler() may not behave as expected

2020-02-26 Thread Roger Dahl
Roger Dahl added the comment: > I'm sorry. but loop.set_signal_handler() method doesn't exist. Oops, fixed. > Assuming you mean loop.add_signal_handler() method, I would say that a > minute-long delay is a sign of long blocking calls in your program. During the delay

[issue23882] unittest discovery doesn't detect namespace packages when given no parameters

2020-07-19 Thread Roger Gammans
Roger Gammans added the comment: But namespace packages are still useful for what PEP420 envisages and they should be able to have runnable tests. For instance projectX/ - interfaces/ - proxyX.py - testX.py projectY/ - intefaces/ - proxyY.py

[issue41548] IDLE Window rendering on macOS Big Sur

2020-08-13 Thread Roger Meier
New submission from Roger Meier : macOS Big Sur, Public Beta (20A5343j) There is noticeable window flickering when the IDLE window is being resized manually. It sometimes become translucent, and sometimes the window frame isn't properly refreshed after resizing, but simply by switchi

[issue41548] IDLE Window rendering on macOS Big Sur

2020-08-13 Thread Roger Meier
Roger Meier added the comment: I have screen capture demonstrating the issue, which I posted here: https://groups.google.com/g/thonny/c/529A5zEsuWg/m/xHVCny8OBwAJ -- type: -> behavior ___ Python tracker <https://bugs.python.org/issu

[issue41548] Tk Window rendering on macOS Big Sur

2020-08-25 Thread Roger Meier
Roger Meier added the comment: The latest macOS Big Sur Public Beta (5, Build 20A5354i) fixes the issue with TK Window rendering. -- resolution: -> works for me ___ Python tracker <https://bugs.python.org/issu

[issue41907] Regression in IntFlag behaviour in f-string

2020-10-01 Thread Roger Taylor
New submission from Roger Taylor : An IntFlag member before 3.8.6 was converted to an integer in an f-string. After 3.8.6, the textual IntFlag class and member name are placed in the interpolated f-string instead of the integer. 3.8.3: f"... {X.F} ..." where X.F = 1 << 4 w

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

2012-01-14 Thread Roger Serwy
Roger Serwy 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. This is due to "good

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

2012-01-16 Thread Roger Serwy
Roger Serwy added the comment: This is a duplicate of #3559. -- nosy: +serwy ___ Python tracker <http://bugs.python.org/issue13798> ___ ___ Python-bugs-list m

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

2012-01-16 Thread Roger Serwy
Roger Serwy 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 <http://bugs.python.o

[issue4765] IDLE fails to "Delete Custom Key Set" properly

2012-01-27 Thread Roger Serwy
Roger Serwy 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 <http://bugs.python.org/issue4

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

2012-01-28 Thread Roger Serwy
Roger Serwy 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 that IDLE calls

[issue5707] IDLE will not load

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

[issue13884] IDLE 2.6.5 Recent Files undocks

2012-01-28 Thread Roger Serwy
Roger Serwy 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 modificati

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

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

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

2012-01-30 Thread Roger Serwy
Roger Serwy 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 regu

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

2012-02-02 Thread Roger Serwy
Roger Serwy 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 with pydoc itself.

[issue13927] Extra spaces in the output of time.ctime

2012-02-02 Thread Roger Caldwell
New submission from Roger Caldwell : Hi. I found this today and thought I would report. I could not find anywhere that it was expected behavior. When using time.ctime() to convert a date which only has 1 digit in the day position it returs a string with 2 spaces after the month vs one

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

2012-02-02 Thread Roger Serwy
Roger Serwy added the comment: Should calling "modules" automatically iterate over all submodules or should it return just a list of top level modules? -- ___ Python tracker <http://bugs.python.o

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

2012-02-02 Thread Roger Serwy
Roger Serwy 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"

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

2012-02-04 Thread Roger Serwy
Roger Serwy 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 Added file: http

[issue964437] idle help is modal

2012-02-04 Thread Roger Serwy
Roger Serwy 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 tracker

[issue964437] idle help is modal

2012-02-04 Thread Roger Serwy
Roger Serwy 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 the help window, even if

[issue964437] idle help is modal

2012-02-04 Thread Roger Serwy
Roger Serwy 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 instead of the

[issue964437] idle help is modal

2012-02-05 Thread Roger Serwy
Roger Serwy 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. I tested the patch

[issue964437] idle help is modal

2012-02-05 Thread Roger Serwy
Roger Serwy added the comment: I pulled the latest repo with the patch for 2.7. It works. -- ___ Python tracker <http://bugs.python.org/issue964437> ___ ___ Pytho

[issue14005] IDLE Crash when running/saving a file

2012-02-14 Thread Roger Serwy
Roger Serwy 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 <http://bugs.python.org/issue14

[issue13703] Hash collision security issue

2012-02-26 Thread Roger Serwy
Roger Serwy 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 <http://bugs.python.org/issue13

[issue13703] Hash collision security issue

2012-02-26 Thread Roger Serwy
Roger Serwy 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 <http://bugs.python.org/is

[issue14111] IDLE Debugger should handle interrupts

2012-02-26 Thread Roger Serwy
Roger Serwy 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 in

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

2012-02-28 Thread Roger Serwy
Roger Serwy added the comment: Is the "Source" check box in the Debug Control window checked? -- nosy: +serwy ___ Python tracker <http://bugs.python.o

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

2012-02-28 Thread Roger Serwy
Roger Serwy 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 <http://bugs.python.o

[issue14163] tkinter: problems with hello doc example

2012-03-02 Thread Roger Serwy
Roger Serwy 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 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 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 <http://bug

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

2012-03-05 Thread Roger Serwy
Roger Serwy 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. When Tkinter

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

2012-03-11 Thread Roger Serwy
New submission from Roger Serwy : 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 e

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

2012-03-11 Thread Roger Serwy
Changes by Roger Serwy : -- nosy: +ned.deily, terry.reedy ___ Python tracker <http://bugs.python.org/issue14254> ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2012-03-11 Thread Roger Serwy
Roger Serwy 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 "", line 1, in '\U00010330' ValueError: charact

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

2012-03-11 Thread Roger Serwy
Roger Serwy 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 "

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

2012-03-11 Thread Roger Serwy
Roger Serwy 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. -- ___ Python

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

2012-03-11 Thread Roger Serwy
Roger Serwy 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 "", line 1, in

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

2012-03-11 Thread Roger Serwy
Roger Serwy 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 is a revised

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

2012-03-11 Thread Roger Serwy
Roger Serwy 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. IDLE&#x

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

2012-03-11 Thread Roger Serwy
Roger Serwy 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 <http://bugs.python.org/issue7

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

2012-03-14 Thread Roger Serwy
Roger Serwy added the comment: Andrew, please reopen this issue. Your committed patch does not work if IDLE is not using the subprocess. >>> got_ahsa = "\N{GOTHIC LETTER AHSA}" >>> got_ahsa Traceback (most recent call last): File "", l

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

2012-03-14 Thread Roger Serwy
Roger Serwy added the comment: Attached is a patch to undo Andrew's and fixes the issue in a simple manner. The tcl_unicode_range.patch from Issue12342 has already been applied, so catching ValueError within IDLE is all that is now needed. -- Added file: http://bugs.pytho

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

2012-03-14 Thread Roger Serwy
Roger Serwy added the comment: Rather than raising a ValueError, would UnicodeEncodeError be more appropriate? I admit that this suggestion may be bike shedding. -- ___ Python tracker <http://bugs.python.org/issue12

[issue13153] IDLE crashes when pasting non-BMP unicode char on UCS-16 build

2012-03-14 Thread Roger Serwy
Roger Serwy added the comment: Issue13582 deals with the IDLE error feedback. -- nosy: +serwy ___ Python tracker <http://bugs.python.org/issue13153> ___ ___ Pytho

<    1   2   3   4   5   6   7   >