[issue9156] socket._fileobject: read raises AttributeError when closed in another thread

2010-07-04 Thread Mathias Panzenböck
New submission from Mathias Panzenböck grosser.meister.mo...@gmx.net: When you open a socket._fileobject through sock.makefile('rb') or similar and you read blocking in one thread and close the file object from another thread the reading thread gets an AttributeError. This is because the close

[issue7949] idle does not handle dark gtk color schemes

2010-02-16 Thread Mathias Panzenböck
Mathias Panzenböck grosser.meister.mo...@gmx.net added the comment: I just noticed that the debugger also suffers from this problem. Doing a quick grep over the source reveals even more places that might cause problems (where only the bg or only the fg color is set). I think

[issue16423] urllib data URL recipe

2012-11-06 Thread Mathias Panzenböck
New submission from Mathias Panzenböck: I think it would be really helpful if urllib would support data URLs. However, I was told on the python-ideas mailing list that it would probably only added as recipe in the documentation. The attached patch adds such an recipe to the urllib.request

[issue9156] socket._fileobject: read raises AttributeError when closed in another thread

2012-11-09 Thread Mathias Panzenböck
Mathias Panzenböck added the comment: The problem is that the other thread is blocked, waiting for new client connections. A common pattern for very simple server applications (like you write during exercises at universities) is: 2 threads: 1. A server thread waiting for clients, maybe

[issue9156] socket._fileobject: read raises AttributeError when closed in another thread

2012-11-09 Thread Mathias Panzenböck
Mathias Panzenböck added the comment: Yeah, I don't remember anymore. It was so long ago. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9156

[issue16423] urllib data URL recipe

2012-11-15 Thread Mathias Panzenböck
Mathias Panzenböck added the comment: New patch. Instead of adding the data URL support to the doc as a recipe I added it to urllib.request directly. I think this is better and justified, because the old legacy URLopener had (some kind) of support for data URLs. OT: I think that the legacy

[issue16423] urllib data URL

2012-11-15 Thread Mathias Panzenböck
Changes by Mathias Panzenböck grosser.meister.mo...@gmx.net: -- components: +Library (Lib) -Documentation title: urllib data URL recipe - urllib data URL type: - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16423

[issue16423] urllib data URL

2012-11-17 Thread Mathias Panzenböck
Mathias Panzenböck added the comment: On 11/18/2012 12:36 AM, Antoine Pitrou wrote: Antoine Pitrou added the comment: A couple of comments: - the patch needs a test (and docs too) Will do (when I have time). - are you sure ignoring POSTed data is the right thing to do? Shouldn't we

[issue16423] urllib data URL

2012-11-17 Thread Mathias Panzenböck
Mathias Panzenböck added the comment: On 11/18/2012 12:36 AM, Antoine Pitrou wrote: - the patch needs a test (and docs too) - are you sure ignoring POSTed data is the right thing to do? Shouldn't we forbid it instead? Btw.: The file:// protocol handler also just ignores posted data, so I

[issue16423] urllib data URL

2012-11-17 Thread Mathias Panzenböck
Mathias Panzenböck added the comment: Ok, I've added a documentation and some tests. Is it ok this way? More tests? More/other documentation? -- Added file: http://bugs.python.org/file28017/urllib.request-data-url.patch ___ Python tracker rep

[issue16423] urllib data URL

2012-11-17 Thread Mathias Panzenböck
Changes by Mathias Panzenböck grosser.meister.mo...@gmx.net: Removed file: http://bugs.python.org/file28017/urllib.request-data-url.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16423

[issue16423] urllib data URL

2012-11-17 Thread Mathias Panzenböck
Changes by Mathias Panzenböck grosser.meister.mo...@gmx.net: Added file: http://bugs.python.org/file28018/urllib.request-data-url.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16423

[issue16423] urllib data URL

2012-11-17 Thread Mathias Panzenböck
Changes by Mathias Panzenböck grosser.meister.mo...@gmx.net: Removed file: http://bugs.python.org/file27994/urllib.request-data-url.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16423

[issue16423] urllib data URL

2012-11-24 Thread Mathias Panzenböck
Mathias Panzenböck added the comment: Great! Feels awesome to have my first bit of code contributed to the Python project. :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16423

[issue16423] urllib data URL

2012-11-24 Thread Mathias Panzenböck
Mathias Panzenböck added the comment: Will do (later today). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16423 ___ ___ Python-bugs-list

[issue16423] urllib data URL

2012-11-24 Thread Mathias Panzenböck
Mathias Panzenböck added the comment: Hmm, which of the two initial licenses should I choose? Which one do you rather want me to choose? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16423