refactoring code with starred pythonic idiom (#4666)

* refactoring code with starred pythonic idiom

refactoring code with starred pythonic idiom which is more pythonic, concise, readable and efficient; how do think this change which has practical value?

* removing step
This commit is contained in:
zzj 2022-02-11 21:53:00 +08:00 committed by GitHub
parent dbc71bd1a4
commit adfa60ead5
Failed to generate hash of commit

View file

@ -365,7 +365,7 @@ class Parser(ThreeSixParser):
kwarg=p[9],
defaults=[],
)
self._set_regular_args(p0, p[1], p[2], p[3], p[4])
self._set_regular_args(p0, *p[1:5])
self._set_var_args(p0, p[6], None)
p[0] = p0