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
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
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
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
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
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
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
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
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
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
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
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
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
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
Mathias Panzenböck added the comment:
Will do (later today).
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16423
___
___
Python-bugs-list
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
16 matches
Mail list logo