Re: [Python-Dev] Are undocumented exceptions considered bugs?

2013-03-23 Thread Devin Jeanpierre
On Sat, Mar 23, 2013 at 11:21 AM, Nick Coghlan wrote: > In this specific case, the error message is > confusing-but-not-really-wrong, due to the "two-types-in-one" nature > of Python 2.x strings - 8-bit strings are used as both text sequences > (generally not containing NUL characters) and also as

Re: [Python-Dev] wsgi validator with asynchronous handlers/servers

2013-03-23 Thread PJ Eby
On Sat, Mar 23, 2013 at 3:05 PM, Luca Sbardella wrote: > The pseudocode above does yields bytes before start_response, but they are > not *body* bytes, they are empty bytes so that the asynchronous wsgi server > releases the eventloop and call back at the next eventloop iteration. > > I'm I misint

Re: [Python-Dev] PEP 405 (venv) - why does it copy the DLLs on Windows

2013-03-23 Thread Tim Delaney
On 23 March 2013 23:55, Antoine Pitrou wrote: > On Sat, 23 Mar 2013 12:57:02 + > Richard Oudkerk wrote: > > > Also, couldn't hard links be used instead of copying? (This will fail > > if not on the same NTFS partition, but then one can copy as a fallback.) > > Hard links are generally hard

Re: [Python-Dev] wsgi validator with asynchronous handlers/servers

2013-03-23 Thread Benjamin Peterson
Hi, The people who best understand WSGI are to be found on the Web-SIG: http://mail.python.org/mailman/listinfo/web-sig 2013/3/23 Luca Sbardella : > Hi, > > I have an asynchronous wsgi application handler which yields empty bytes > before it is ready to yield the response body and, importantly, to

[Python-Dev] wsgi validator with asynchronous handlers/servers

2013-03-23 Thread Luca Sbardella
Hi, I have an asynchronous wsgi application handler which yields empty bytes before it is ready to yield the response body and, importantly, to call start_response. Something like this: def wsgi_handler(environ, start_response): body = generate_body(environ) body = maybe_async(bo

Re: [Python-Dev] Are undocumented exceptions considered bugs?

2013-03-23 Thread Nick Coghlan
On Sat, Mar 23, 2013 at 4:05 AM, Stefan Bucur wrote: > Hi, > > I'm not sure this is the right place to ask this question, but I thought I'd > give it a shot since it also concerns the Python standard library. It's the right place to ask :) > I'm writing an automated test case generation tool for

Re: [Python-Dev] PEP 405 (venv) - why does it copy the DLLs on Windows

2013-03-23 Thread Paul Moore
On 23 March 2013 12:55, Antoine Pitrou wrote: > On Sat, 23 Mar 2013 12:57:02 + > Richard Oudkerk wrote: > >> On 23/03/2013 10:06am, Paul Moore wrote: >> >> One example of a non-system-wide installation is a source build of Python. >> >> PEP 405 venvs created from a source build should work in

Re: [Python-Dev] PEP 405 (venv) - why does it copy the DLLs on Windows

2013-03-23 Thread Antoine Pitrou
On Sat, 23 Mar 2013 12:57:02 + Richard Oudkerk wrote: > On 23/03/2013 10:06am, Paul Moore wrote: > >> One example of a non-system-wide installation is a source build of Python. > >> PEP 405 venvs created from a source build should work in the same way as > >> venvs > >> created using an inst

Re: [Python-Dev] PEP 405 (venv) - why does it copy the DLLs on Windows

2013-03-23 Thread Richard Oudkerk
On 23/03/2013 10:06am, Paul Moore wrote: One example of a non-system-wide installation is a source build of Python. PEP 405 venvs created from a source build should work in the same way as venvs created using an installed Python. Thanks. I hadn't thought of that case. However, I'm still not ent

[Python-Dev] Are undocumented exceptions considered bugs?

2013-03-23 Thread Stefan Bucur
Hi, I'm not sure this is the right place to ask this question, but I thought I'd give it a shot since it also concerns the Python standard library. I'm writing an automated test case generation tool for Python programs that explores all possible execution paths through a program. When applying th

Re: [Python-Dev] PEP 405 (venv) - why does it copy the DLLs on Windows

2013-03-23 Thread Paul Moore
On 23 March 2013 01:08, Vinay Sajip wrote: > Paul Moore gmail.com> writes: > >> I don't understand what this is saying - can someone clarify the >> reason behind this statement? What is different about a >> "non-system-wide installation" that causes this issue (I assume >> "non-system-wide" means

Re: [Python-Dev] cpython (2.7): Issue #17508: Handled out-of-order handler configuration correctly.

2013-03-23 Thread Vinay Sajip
Antoine Pitrou pitrou.net> writes: >> Issue #17508: Handled out-of-order handler configuration correctly. > Could you explain what "out-of-order handler configuration" means? In logging, a MemoryHandler buffers records and has a reference to another handler - the "target" - which does the actu