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
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
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 memoryvi
Michiel de Hoon added the comment:
Anything I can do to help this patch move forward?
--
___
Python tracker
<http://bugs.python.org/issue23237>
___
___
Python-bug
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
<http://bugs.python.org/issue23
Michiel de Hoon added the comment:
I am not sure if I follow. With the patch to _tkinter.c, interrupts seem to
work correctly with all three variations of PyOS_InputHook.
--
___
Python tracker
<http://bugs.python.org/issue23
Michiel de Hoon added the comment:
Patch for Modules/_tkinter.c.
To be used together with issue23237.version2.patch.
--
Added file: http://bugs.python.org/file39616/_tkinter.c.patch
___
Python tracker
<http://bugs.python.org/issue23
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
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
Changes by Michiel de Hoon :
--
nosy: +haypo
___
Python tracker
<http://bugs.python.org/issue23237>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
<http://bugs.python.org/issue23
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
<http://bugs.python.org/issue3
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
>>> fro
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.
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.ex
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 = "
Michiel de Hoon 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
>>> import bz2
>>> bz2.open
Traceback (most recent call last):
Michiel de Hoon 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
<http://bugs.python.org/issue8
Michiel de Hoon added the comment:
The patch fixes the problem on Mac OS X 10.4. I'll try on 10.5 tomorrow.
Thanks!
--
___
Python tracker
<http://bugs.python.org/i
New submission from Michiel de Hoon :
(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
make install
then Python
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("myfi
21 matches
Mail list logo