An error when i switched from python v2.6.6 => v3.2.3

Joel Goldstick joel.goldstick at gmail.com
Thu Mar 7 19:57:18 CET 2013


On Thu, Mar 7, 2013 at 1:51 PM, rh <richard_hubbe11 at lavabit.com> wrote:

> On Thu, 7 Mar 2013 07:57:33 -0800 (PST)
> Νίκος Γκρ33κ <nikos.gr33k at gmail.com> wrote:
> >
> > I found it! I have placed 'htmltemp' within the os.system() call.
> > Otherwise, os.system() returns a return value (int) which python then
> > tries to concatenate with htmltemp (string).
> >
> > os.system( 'python metrites.py > %s' % htmltemp )
>
> Can also do
> sterrs = 'errorsout'
> os.system( 'python metrites.py > {0} 2> {1}'.format(htmltemp,sterrs))
>
> It's more 3ish, or 3ist or 3like.
> >
> > :-)
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>

The content type situation is discussed here
http://stackoverflow.com/questions/9145517/executing-a-python-script-in-apache2

-- 
Joel Goldstick
http://joelgoldstick.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20130307/950c52fd/attachment.html>


More information about the Python-list mailing list