SimpleHTTPServer send wrong Content-Length for text/* on Windows?

2008-02-26 Thread Christof Hoeke
hi, I noticed while trying a simple (but still very useful) server based on SimpleHTTP that it does report a wrong "Content-Length" for "text/*" files if Windows line-end "\r\n" is used. Most clients (e.g. browsers) do simply ignore a wrong Content-Length but there are programs that do care and

Javascript parser

2008-01-08 Thread Christof Hoeke
hello, is there any Javascript (not just JSON) parser for Python? I saw http://wwwsearch.sourceforge.net/python-spidermonkey/ which seems to be from 2003 and unmaintained and seems to be quite complicated to get to work anyway :( Using Rhino from Jython is not really an option as I'd like to wo

Re: state of XSLT2/XPath2 or XQuery in CPython

2007-12-26 Thread Christof Hoeke
Stefan Behnel wrote: > Christof Hoeke wrote: >> I was wondering if there is any way to use XSLT2 or maybe even XQuery >> with "normal" CPython. Using Saxon/XSLT2 with Jython is no problem (I >> have not tried Saxon.NET with IronPython but suspect no problem?) but I &

state of XSLT2/XPath2 or XQuery in CPython

2007-12-26 Thread Christof Hoeke
hi, I was wondering if there is any way to use XSLT2 or maybe even XQuery with "normal" CPython. Using Saxon/XSLT2 with Jython is no problem (I have not tried Saxon.NET with IronPython but suspect no problem?) but I could not find any way to use XSLT2 or XPath Features with CPython. All the usu