[3.11] gh-60346: Improve handling single-dash options in ArgumentParser.parse_known_args() (GH-114180)#115674
Conversation
…r.parse_known_args() (pythonGH-114180) (cherry picked from commit e47ecbd) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
|
Noting that adding a What is the patch version of 3.11 that this was introduced in? 3.11.9? |
|
Yes, in 3.11.9. You perhaps can just check the length of the tuple. I think a named tuple is an overhead for a deeply internal API. It is just a way to return multiple values from a function. Perhaps we could consider an idea of adding more general public API to solve your problem. For example, the ability to add hidden aliases or to transform options before comparison, so |
|
This change also broke |
(cherry picked from commit e47ecbd)
Co-authored-by: Serhiy Storchaka storchaka@gmail.com