Quixote 3 / SCGI 3 / Python 3 progress report

Robert Ladyman <[email protected]> Thu, 11 Dec 2014 21:29:56 +0000
Newsgroups gmane.comp.web.quixote.user
Organization File-Away Limited
Message-ID <[email protected]>
Just in case you think I had gone away...

I have run the quixote code through 2to3 and applied many of Patrik's changes 
(for which, many thanks). The code has been converted for use with Python 
3.4.0 and is working with simple_server and also a converted version of 
scgi_server. Tests pass (including with the python 3 "-bb"  "fail on byte/str 
comparison" option) although I removed the Sancho dependency in some of the 
tests (until I have time to re-write Sancho as well: I initially did so but 
stopped when I realised Sancho was part of a larger suite).

I took the liberty of naming this version Quixote 3 solely to indicate the use 
of Python 3: at the moment, the code ignores Python 2.x -  whether the code 
is developed in parallel or merged can be decided later, perhaps, or ideally 
subject to separate discussion.

For PTL files, there is a trivial "ptl2to3" for passing PTL files to the 2to3 
utility. Note well, the AST parser in uses Python 3 to process PTL files, so 
they will need to (perhaps) be converted as well.

In order to test scgi, I have had to convert that (and the C code as well) and 
have also numbered that code as version 3. It now works with SCGIMount in 
Apache2 and Python3, etc.

"python3 setup.py install" works with both Quixote and scgi

Remaining work:-
* Convert for cgi_server, fastcgi_server, medusa_server, mod_python_handler, 
twisted_server - where possible.
* PTL encoding handling
* Further tests (qx_testlib, qx_testserver, serve-via-wsgi, test-qpy, 
test-wsgi) to be converted.
* Test with multiply-encoded requests (e.g. utf-8 but with iso headers, etc.). 
I note something in DurusWorks regarding this.
* Form and form1 testing.
* Non-ASCII URLs

Regards,
RJL

P.S. as an aside, this site is rather useful:
http://sites.psu.edu/gotunicode/
-- 

Robert Ladyman
File-Away Limited, 30 Church Street, Newtyle
Perthshire, PH12 8TZ SCOTLAND
Registered in Scotland, Company Number SC222086
Tel: +44 (0) 1828 898 158
Mobile: +44 (0) 7732 771 649
http://www.file-away.co.uk