[Tutor] Request for guidance about a python syntax
Jerry Hill
malaclypse2 at gmail.com
Mon Dec 19 19:31:45 CET 2011
On Mon, Dec 19, 2011 at 12:10 PM, Peter Otten <__peter__ at web.de> wrote:
> Close, but % and * have the same operator precedence. Therefore the
> expression
>
> "%dH" % nframes * nchannels
>
> is evaluated as
>
> (%dH" % nframes) * nchannels
>
>
Thanks Peter, that's exactly correct. Maybe this will teach me not to post
things without actually trying them in the interactive interpreter.
--
Jerry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20111219/1fc14028/attachment.html>
More information about the Tutor
mailing list