On Feb 28, Peter Otten wrote:
> Are you using Python 2.x? Then you cannot redefine print. Instead you have
> to redirect stdout. The following example should run as a cgi script:
>
> #!/usr/bin/env python
> import cgi
> import sys
> from cStringIO import StringIO
...
That works! Except for Py3 I
Gnarlodious wrote:
> Yeah, I just spent about 2 hours trying everything I could think of...
> without success. Including your suggestions. Guess I'll have to skip
> it. But thanks for the ideas.
>
> -- Gnarlie
Are you using Python 2.x? Then you cannot redefine print. Instead you have
to redirec
Yeah, I just spent about 2 hours trying everything I could think of...
without success. Including your suggestions. Guess I'll have to skip
it. But thanks for the ideas.
-- Gnarlie
--
http://mail.python.org/mailman/listinfo/python-list
On Sun, 27 Feb 2011 08:55:10 -0800, Gnarlodious wrote:
> Using the doctest module, I get three different outputs:
>
> 1) From the Terminal shell, I see a full report:
> python ~/Sites/Sectrum/Filter.py -v
Can we assume that Filter.py, whatever that is, runs doctest.testmod()?
> 2) From the