0

In this line

def onFaceDetected(self, *_args):

from this tutorial, what is the meaning of *_args as a parameter to a Python module's method?

I've seen lots of explanations for just an asterisk or just an underscore, but not both.

Mathias
  • 309
  • 3
  • 12
Ellburrito
  • 127
  • 11
  • 1
    The underscore is just part of the name, no special meaning here at all. The `*` syntax doesn't dictate a name, you could use `*foobar` or `*__super_sekret` for all Python cares. – Martijn Pieters Jul 02 '15 at 20:14
  • 1
    In this case I'm guessing the author wanted to convey that the extra arguments are being ignored. – Martijn Pieters Jul 02 '15 at 20:16

0 Answers0