News for hackers. Stuff that matters.
Re:Python finally offloads some batteries by akvadrako on Friday March 18, 2022 @04:12AM (#30719712)
Argparse is also broken. It's not possible to create an argument that captures all remaining arguments even though the docs say it is.

There has been an open bug for this for many years.

Re:Python finally offloads some batteries by jwilk on Friday March 18, 2022 @04:46AM (#30719896)
Link to the bug?
Re:Python finally offloads some batteries by akvadrako on Friday March 18, 2022 @05:06AM (#30719981)
https://bugs.python.org/issue17050

Apparently after 7 years they decided it can't be fixed and updated the docs.

Re:Python finally offloads some batteries by jwilk on Friday March 18, 2022 @01:45PM (#30725237)
I'm baffled with the resolution of this bug. Removing the docs doesn't help anybody.

In my experience, argparse.REMAINDER works reasonably well, and apparently I'm not alone; there's >100 packages in Debian that use it:

https://codesearch.debian.net/search?q=%5Cbargparse%5B.%5DRE...