[issue41285] memoryview does not support subclassing

2020-07-15 Thread Michiel de Hoon
Michiel de Hoon added the comment: You are correct, this is indeed a duplicate of #13797. My apologies for not finding this issue before opening a new one. If there are no objections, I will close this issue as a duplicate. -- ___ Python tracker

[issue41285] memoryview does not support subclassing

2020-07-15 Thread Michiel de Hoon
Michiel de Hoon added the comment: Thank you, I have posted an explanation in the "Ideas" category of discuss.python.org. -- ___ Python tracker <https://bugs.python.o

[issue41285] memoryview does not support subclassing

2020-07-12 Thread Michiel de Hoon
New submission from Michiel de Hoon : Currently memoryview does not support subclassing: >>> class B(memoryview): pass ... Traceback (most recent call last): File "", line 1, in TypeError: type 'memoryview' is not an acceptable base type Subclassing memoryview can be

[issue33749] pdb.Pdb constructor stdout override required to disable use_rawinput

2018-06-03 Thread Michiel
Michiel added the comment: Based on code inspection, this affects 2.7 - current master -- versions: +Python 2.7, Python 3.4, Python 3.5, Python 3.7, Python 3.8 ___ Python tracker <https://bugs.python.org/issue33

[issue33749] pdb.Pdb constructor stdout override required to disable use_rawinput

2018-06-03 Thread Michiel
New submission from Michiel : It looks like there's possibly a typo/small bug in the pdb.Pdb code. If I supply the stdin argument to the constructor, and provide e.g. a io.StringIO object, then I expect commands to be read from there. This however doesn't happen. If I additionally supply

[issue23237] Interrupts are lost during readline PyOS_InputHook processing (reopening)

2015-10-25 Thread Michiel de Hoon
Michiel de Hoon added the comment: Anything I can do to help this patch move forward? -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue23237] Interrupts are lost during readline PyOS_InputHook processing (reopening)

2015-06-05 Thread Michiel de Hoon
Michiel de Hoon added the comment: I tried the patch hook-interrupt.3.6.patch ; as far as I can tell it is working fine. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23237

[issue23237] Interrupts are lost during readline PyOS_InputHook processing (reopening)

2015-06-03 Thread Michiel de Hoon
Michiel de Hoon added the comment: I am uploading an updated version of the patch. I'd be happy to submit a patch to the documentation also, but wasn't able to find it on Mercurial. Can somebody please point me to the right repository for the documentation? -- Added file: http

[issue23237] Interrupts are lost during readline PyOS_InputHook processing (reopening)

2015-05-30 Thread Michiel de Hoon
Michiel de Hoon added the comment: Vadmium, thank you for carefully looking at this patch. Polling PyErr_CheckSignals() directly in the tkinter EventHook loop works in the #if defined(WITH_THREAD) || defined(MS_WINDOWS) block, as there Tcl_DoOneEvent(TCL_DONT_WAIT) exits immediately. However

[issue23237] Interrupts are lost during readline PyOS_InputHook processing (reopening)

2015-02-16 Thread Michiel de Hoon
Changes by Michiel de Hoon mdeh...@users.sourceforge.net: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23237 ___ ___ Python-bugs

[issue23237] Interrupts are lost during readline PyOS_InputHook processing (reopening)

2015-01-23 Thread Michiel de Hoon
Michiel de Hoon added the comment: I am attaching a patch for this bug for Python 2.7. -- keywords: +patch nosy: +mdehoon Added file: http://bugs.python.org/file37832/issue23237.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org

[issue3180] Interrupts are lost during readline PyOS_InputHook processing

2015-01-13 Thread Michiel de Hoon
Michiel de Hoon added the comment: As it happens, we just ran into the same bug. To reproduce this issue, run from Tkinter import * Tk() Then Ctrl-C will not generate a KeyboardInterrupt. At first glance, the solution suggested by the original poster seems good. Can this issue by reopened

[issue23237] Interrupts are lost during readline PyOS_InputHook processing (reopening)

2015-01-13 Thread Michiel de Hoon
New submission from Michiel de Hoon: This bug was previously reported in http://bugs.python.org/issue3180 but was closed after seven years for being out of date. Still, the bug remains: Interrupts are lost during readline PyOS_InputHook processing. To reproduce the bug, try from Tkinter

[issue3180] Interrupts are lost during readline PyOS_InputHook processing

2015-01-13 Thread Michiel de Hoon
Michiel de Hoon added the comment: I have opened a new issue 23237 for this bug; please see http://bugs.python.org/issue23237 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3180

[issue19157] ipaddress.IPv6Network.hosts function omits network and broadcast addresses

2014-02-10 Thread Michiel
Michiel added the comment: Hey Peter, Cool, thanks for the feedback! Looks like my email replies didn't get attached to the bug tracker.. I've just signed the form. Regarding the .broadcast* question, I think that's probably best handled in a separate issue, but I think there are two other

[issue19157] ipaddress.IPv6Network.hosts function omits network and broadcast addresses

2013-10-03 Thread Michiel
New submission from Michiel: (See also: http://stackoverflow.com/q/19159168/1298153. This is my first bug submission) Contrary to IPv4, IPv6 does not have a concept of network and broadcast addresses. It looks like the same code is used to generate the hosts for both IPv4 and IPv6, resulting

[issue16765] Superfluous import in cgi module

2012-12-25 Thread Michiel Holtkamp
Michiel Holtkamp added the comment: Thanks, I will do that next time. Happy holidays everyone! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16765

[issue16765] Superfluous import in cgi module

2012-12-24 Thread Michiel Holtkamp
New submission from Michiel Holtkamp: The standard module cgi.py from Python 2.x imports urllib, but urllib is not used. This causes a little bit of extra memory usage and a small increase in load time. It's not much, but it was enough for me to notice when I was profiling my program. I

[issue16765] Superfluous import in cgi module

2012-12-24 Thread Michiel Holtkamp
Michiel Holtkamp added the comment: Fair enough, I think I'm using 2.7 only. I wasn't sure about the patch format, so I added a unified diff. If you require a different format, please let me know. -- keywords: +patch Added file: http://bugs.python.org/file28420/patch-python2.7

[issue16726] expat ParseFile expects bytes, not string

2012-12-19 Thread Michiel de Hoon
New submission from Michiel de Hoon: The expat parser in xml.parsers.expat has a Parse method and a ParseFile method. The Parse method parses a string, however the ParseFile method wants bytes. This is a minimal example of the Parse method: import xml.parsers.expat p

[issue16723] io.TextIOWrapper on urllib.request.urlopen terminates prematurely

2012-12-18 Thread Michiel de Hoon
New submission from Michiel de Hoon: I am trying to use io.TextIOWrapper to wrap a handle returned by urllib.request.urlopen. Reading line-by-line from the wrapped handle terminates prematurely. As an example, consider this script: import urllib.request import io url = http://www.python.org

[issue11878] No SOAP libraries available for Python 3.x

2011-04-19 Thread Michiel Van den Berghe
New submission from Michiel Van den Berghe michiel@gmail.com: There doesn't seem to exist a SOAP library for Python 3.x. Several different third party libraries exist for the 2.x releases, but none of these are being ported to 3.x. None of these modules are easily ported using 2to3 due

[issue5863] bz2.BZ2File should accept other file-like objects. (issue4274045)

2011-03-14 Thread Michiel de Hoon
Michiel de Hoon mdeh...@users.sourceforge.net added the comment: Would it be possible to add an open() function to the bz2 module? Currently gzip has such a function, but bz2 does not: import gzip gzip.open function open at 0x781f0 import bz2 bz2.open Traceback (most recent call last

[issue8868] Framework install does not behave as a framework

2010-06-01 Thread Michiel de Hoon
New submission from Michiel de Hoon mdeh...@users.sourceforge.net: (The discussion for this bug started on the pythonmac-sig mailing list; see http://mail.python.org/pipermail/pythonmac-sig/2010-May/022362.html) When I try to install Python as a framework: ./configure --enable-framework make

[issue8868] Framework install does not behave as a framework

2010-06-01 Thread Michiel de Hoon
Michiel de Hoon mdeh...@users.sourceforge.net added the comment: The patch fixes the problem on Mac OS X 10.4. I'll try on 10.5 tomorrow. Thanks! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8868

[issue8868] Framework install does not behave as a framework

2010-06-01 Thread Michiel de Hoon
Michiel de Hoon mdeh...@users.sourceforge.net added the comment: The patch solves the problem also on Mac OS X 10.5 (I tried 32-bits and 64-bits with the current python in trunk, after applying the patch). Thanks again! -- ___ Python tracker rep

[issue2995] Idle, some Linuxes, cannot position Cursor by mouseclick

2009-01-21 Thread Michiel Overtoom
Michiel Overtoom mot...@xs4all.nl added the comment: I experience the same, on FreeBSD 7.0-REL, with tkinter compiled to use Tk8.5 instead of Tk8.4. Tkinter compiled for Tk8.4 doesn't have the problem. Moving the mouse over the text widget changes the cursor to the I-beam as expected

[issue3205] bz2 iterator fails silently on MemoryError

2008-06-26 Thread Michiel de Hoon
New submission from Michiel de Hoon [EMAIL PROTECTED]: PyMem_Malloc is called in the Util_ReadAhead function in bz2module.c. The code checks if PyMem_Malloc returns NULL, but in that case no MemoryError is raised. So, if in the following code: input = bz2.BZ2File(myfile.txt.bz2) for line