Re: [Web-SIG] HTML parsing - get text position and font size

2009-01-12 Thread Dirkjan Ochtman
2009/1/12 Girish Redekar : > is still tedious as font sizes in html/css can be expressed in multiple > methods (like tags, sizes in pixels, relative sizes, default larger > size for header etc). One can get down and code each of these cases, but I > was hoping someone has already (and reliably) wo

Re: [Web-SIG] Shortening execution time of Python script

2009-09-09 Thread Dirkjan Ochtman
On Wed, Sep 9, 2009 at 12:52, David Shi wrote: > What actions can I try to reduce the execution time? This has absolutely nothing to do with the interests of the Web-SIG. Please send more general Python questions to http://mail.python.org/mailman/listinfo/python-list. Cheers, Dirkjan __

Re: [Web-SIG] wsgi.errors and close method

2010-03-30 Thread Dirkjan Ochtman
On Tue, Mar 30, 2010 at 11:28, Manlio Perillo wrote: > Note however, that Mercurial has fixed the problem: So, as the guy who inherited Mercurial's hgweb WSGI application (or rather, made it much more WSGI-compliant), I should say that, yes, I tried pretty hard to get all our code so that it woul

Re: [Web-SIG] wsgi.errors and close method

2010-03-30 Thread Dirkjan Ochtman
On Tue, Mar 30, 2010 at 11:44, Manlio Perillo wrote: > Did you managed to remove usage of the write callable? Yes, I think we haven't been using that for a few versions now. Cheers, Dirkjan ___ Web-SIG mailing list Web-SIG@python.org Web SIG: http://w

Re: [Web-SIG] wsgi and generators (was Re: WSGI and start_response)

2010-04-10 Thread Dirkjan Ochtman
On Sat, Apr 10, 2010 at 15:04, Chris Dent wrote: > On Thu, 8 Apr 2010, P.J. Eby wrote: >> This is also a good time for people to learn that generators are usually a >> *very bad* way to write WSGI apps - yielding is for server push or sending >> blocks of large files, not tiny strings.  In general

Re: [Web-SIG] WSGI and start_response

2010-04-13 Thread Dirkjan Ochtman
On Tue, Apr 13, 2010 at 13:13, Graham Dumpleton wrote: > There is no such thing as a WSGI 2.0 PEP and there is no proper > concensus either on what it should look like. Thus if you see anything > claiming to implement WSGI 2.0, then it isn't and you should only view > it as an experimental proposa

Re: [Web-SIG] WSGI and start_response

2010-04-13 Thread Dirkjan Ochtman
On Tue, Apr 13, 2010 at 13:39, Graham Dumpleton wrote: > WSGI 2.0 isn't about Python 3.X, it is about removing start_response(). Okay, so it is orthogonal, right? > Python 3.X support can be catered for by clarifications in the WSGI > 1.0 specification and to a degree how Python 3.X is implement

Re: [Web-SIG] WSGI and start_response

2010-04-13 Thread Dirkjan Ochtman
On Tue, Apr 13, 2010 at 14:01, Graham Dumpleton wrote: > They are not simplications. They are clarifications or just describing > existing practice. They are not necessarily mod_wsgi specific. Sorry, I didn't mean to imply they were mod_wsgi specific, and they definitely look sane/like an improve

Re: [Web-SIG] WSGI and start_response

2010-04-13 Thread Dirkjan Ochtman
On Tue, Apr 13, 2010 at 14:46, Graham Dumpleton wrote: > The last attempt was to have WSGI 1.1 as clarifications and Python 3.X. > > And when I say 'last attempt', yes there have been people who have > stepped up to try and get this to happen in the past. I think you > would be the 3rd time, exclu

Re: [Web-SIG] WSGI and start_response

2010-04-14 Thread Dirkjan Ochtman
On Thu, Apr 15, 2010 at 01:35, Graham Dumpleton wrote: > If that isn't done, we will be here in another year still arguing > about whether some aspect of the specification should be changed or > removed based on some individuals perceived need. I agree, WSGI 1.1 should be more like HTML5 in that

Re: [Web-SIG] WSGI and start_response

2010-04-15 Thread Dirkjan Ochtman
On Thu, Apr 15, 2010 at 11:09, Manlio Perillo wrote: > Ehm, the purpose of WSGI 2.0 is precisely to remove start_response and > write callable with it... Right, there you go! Cheers, Dirkjan ___ Web-SIG mailing list Web-SIG@python.org Web SIG: http://

[Web-SIG] Draft PEP: WSGI 1.1

2010-04-15 Thread Dirkjan Ochtman
ay Interface 1.1 Version: $Revision$ Last-Modified: $Date$ -Author: Phillip J. Eby +Author: Dirkjan Ochtman , +Graham Dumpleton Discussions-To: Python Web-SIG Status: Draft Type: Informational Content-Type: text/x-rst -Created: 07-Dec-2003 -Post-History: 07-Dec-2003, 08-Aug-2004, 20-Aug-2

Re: [Web-SIG] Emulating req.write() in WSGI

2010-07-06 Thread Dirkjan Ochtman
On Tue, Jul 6, 2010 at 12:50, Graham Dumpleton wrote: > In the code example I posted I never had a 'return' statement in same > function as 'yield'. You shouldn't be mixing the two. Well, you can still use bare "return" as a way of raising StopIteration. Cheers, Dirkjan

Re: [Web-SIG] PEP 444 (aka Web3)

2010-09-16 Thread Dirkjan Ochtman
On Thu, Sep 16, 2010 at 01:03, Chris McDonough wrote: > A PEP was submitted and accepted today for a WSGI successor protocol > named Web3: > > http://python.org/dev/peps/pep-0444/ > > I'd encourage other folks to suggest improvements to that spec or to > submit a competing spec, so we can get WSGI

Re: [Web-SIG] PEP 444 (aka Web3)

2010-09-16 Thread Dirkjan Ochtman
On Thu, Sep 16, 2010 at 13:32, Armin Ronacher wrote: > The motivation is that you can pass that to constructors of response objects > already in place. > > response_tuple = response.get_response_tuple() > response = Response(*response_tuple) > > The order "body", "status code", "headers" is what W

Re: [Web-SIG] PEP 444 (aka Web3)

2010-09-17 Thread Dirkjan Ochtman
On Thu, Sep 16, 2010 at 21:39, P.J. Eby wrote: > Or, to put it another way: splitting the spec into two 100% incompatible > versions is a bad idea for Python 3 adoption.  With a WSGI 1 addendum, we > should be able to make it possible to put the same apps and middleware on 2 > and 3 with just a de

Re: [Web-SIG] WSGI for HTTP/2.0 ?

2014-09-20 Thread Dirkjan Ochtman
On Sat, Sep 20, 2014 at 9:23 AM, Robert Collins wrote: > Well, thats certainly a challenge :). Whats the governance model here? > Is a PEP appropriate, and if so - that gives us a BFDL or BFDL > PEP-delegate to decide between bikeshed issues; and if its not a > bikeshed issue then resolving it is

Re: [Web-SIG] WSGI2: write callable?

2014-09-25 Thread Dirkjan Ochtman
On Fri, Sep 26, 2014 at 5:32 AM, Robert Collins wrote: > So I propose we drop the write callable, and include a queue based > implementation in the adapter for PEP- code. +1. Cheers, Dirkjan ___ Web-SIG mailing list Web-SIG@python.org Web SIG: htt

Re: [Web-SIG] WSGI: allowing short reads

2014-09-25 Thread Dirkjan Ochtman
On Fri, Sep 26, 2014 at 6:14 AM, Robert Collins wrote: > I don't think we need read1 (perhaps I'm wrong) but making read > consistent with the io library would be good, I think - particularly > for websockets. I would agree, but for websockets, I'd really want a per-frame generator or something.

Re: [Web-SIG] Changes for WSGI 1.1

2016-02-17 Thread Dirkjan Ochtman
On Wed, Feb 17, 2016 at 12:51 PM, Cory Benfield wrote: > Please let me know what you think! I reviewed all the pull requests and they look good to me, save one tiny nit that I left a comment for. Cheers, Dirkjan ___ Web-SIG mailing list Web-SIG@python