Re: [Tutor] Request for guidance about a python syntax

2011-12-19 Thread Ganesh Borse
Hi, That's amazing. Thanks for sharing this information. Regards On Tue, Dec 20, 2011 at 2:31 AM, Jerry Hill wrote: > On Mon, Dec 19, 2011 at 12:10 PM, Peter Otten <__pete...@web.de> wrote: > >> Close, but % and * have the same operator precedence. Therefore the >> expression >> >> "%dH" % nfram

Re: [Tutor] Request for guidance about a python syntax

2011-12-19 Thread Jerry Hill
On Mon, Dec 19, 2011 at 12:10 PM, Peter Otten <__pete...@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

Re: [Tutor] Request for guidance about a python syntax

2011-12-19 Thread Peter Otten
Jerry Hill wrote: > On Mon, Dec 19, 2011 at 10:54 AM, Ganesh Borse > wrote: > >> I could know the use of unpack_from, but I could not understand the "fmt" >> part, i.e *"%dH" % nframes * nchannels*. >> Can you pls help me know, what is the purpose of two "%" signs in this >> statement? >> >> > T

Re: [Tutor] Request for guidance about a python syntax

2011-12-19 Thread Jerry Hill
On Mon, Dec 19, 2011 at 10:54 AM, Ganesh Borse wrote: > I could know the use of unpack_from, but I could not understand the "fmt" > part, i.e *"%dH" % nframes * nchannels*. > Can you pls help me know, what is the purpose of two "%" signs in this > statement? > > That's python's string formatting.

[Tutor] Request for guidance about a python syntax

2011-12-19 Thread Ganesh Borse
Dear Tutors, I am new to python. I am trying to understand (& use) the python implementation of goertzel implementation provided on http://www.black-aura.com/blog/2011/12/10/python-implementation-of-the-goertzel-algorithm-dtmf-decoding/ . This python program uses unpack_from() function to unpack