Message371103
>> But I wonder, was this situation discussed in the original bug/issue?
>Doesn't look like it:
I was looking at the wrong PR link. This has more discussion: https://github.com/python/cpython/pull/13305.
nargs is discussed but I'm not sure it was realized that the nargs=None and nargs="?" cases would act in the way seen here rather than acting like append.
Having a default nargs of "+" was suggested but that suggestion was not addressed.
> I suggest that the default nargs for extend should be "*" or "+" and an exception should be raised if nargs is given as "?".
I'm not convinced about that any more. Using append's behaviour is probably more reasonable for nargs=None and nargs="?". |
|
Date |
User |
Action |
Args |
2020-06-09 13:20:45 | Jonathan Haigh | set | recipients:
+ Jonathan Haigh, rhettinger, berker.peksag, paul.j3, Anthony Sottile, BTaskaya, strjan |
2020-06-09 13:20:45 | Jonathan Haigh | set | messageid: <1591708845.41.0.456186136262.issue40365@roundup.psfhosted.org> |
2020-06-09 13:20:45 | Jonathan Haigh | link | issue40365 messages |
2020-06-09 13:20:45 | Jonathan Haigh | create | |
|