yield equivalent in C/JavaScript?

Robin Becker robin at jessikat.fsnet.co.uk
Sun Jun 30 07:53:27 EDT 2002


In article <7xelepnk84.fsf at ruckus.brouhaha.com>, Paul Rubin <phr-
n2002b at NOSPAMnightsong.com> writes
>Robin Becker <robin at jessikat.fsnet.co.uk> writes:
>> However the content.gz data has to be exactly compatible with gzip. My
>> experiments with Python-2.1/zlib on freeBSD give me a compressed string
>> that's slightly too long for some reason. As an example gzip --> 14099
>> bytes while zlib.compress-->15008 bytes.
>> 
>> Anyone know what I need to do to make zlib work properly in this
>> context? Or should I really be using the gzip module?
>
>You're probably better off using mod_gzip (an apache module that
>compresses the output automatically) rather than trying to compress
>from Python.  Note that gzip encoding doesn't work so well in some IE
>versions.
Unfortunately I don't think the server uses apache, but maybe it can be
persuaded to do it automatically.

The IE stuff seems to rely too much on the URL extension so provided it
thinks it's htm or html IE 5.x seems OK.
-- 
Robin Becker



More information about the Python-list mailing list