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 string into array
of ints, with the following statement:
frames = struct.unpack_from(*"%dH" % nframes * **nchannels*, frames)

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?

Thanks for your help in advance.

Best Regards,
banes
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to