1

In Python, what is the difference between "*largs" and "*args" or "*kwargs" as an argument?

Thank you in advance.

Mr. Rapido
  • 11
  • 1
  • 3
    nothing if they all start by one `*`. `kwargs` is generally used for the keywords so it's often `**kwargs` – Jean-François Fabre Jun 06 '18 at 19:51
  • 4
    `*kwargs` is especially useful if you want to lose friends and alienate people. – wim Jun 06 '18 at 19:52
  • The name after the `*` is just the name of the parameter that will contain a list of all of the extra arguments. I'm not sure why someone would call it `largs` instead of `args`, and `kwargs` is downright misleading, but ultimately you can call it whatever you want. (In the same way you can define a method with `lself` or `this` or `rockmeamadeus` as the first argument instead of `self` if you really want to, but you shouldn't.) – abarnert Jun 06 '18 at 19:52
  • 1
    [*largs](http://memory-alpha.wikia.com/wiki/Larg_(Captain))? – wim Jun 06 '18 at 19:54

0 Answers0