Alister via Python-list at 2018/6/13 PM 08:43 wrote:
IMHO, there is no reason to check the *args has to appear at last in
positional argument list in a function call because of there is no
"unknown number of parameters" at the time of unpacking. It should be
alright to write line 19
      action(*args, progress)

Anyone wanting to write such code should be banned form ever accessing a
computer.

    Won't it be too hard to this guy:-)

if you know how many arguments are going to be passed to match the *args
part of this function then they should be assigned known variables
otherwise the code will soon become an unmanageable mess.

    I think it's depend on the situation.

this is why the language specifications states it should only appear
after all known positional arguments have been declared

    To a function call, where the spec is?

--Jach

---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus

--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to