Talk:Shift list elements to left by 3: Difference between revisions
Talk:Shift list elements to left by 3 (view source)
Revision as of 11:17, 20 March 2021
, 3 years ago→Pylint suggestions for current Python draft
(Pylint flags `list` as a predefined name) |
|||
Line 1:
===Pylint suggestions for current Python draft===
Pylint flags up (inter alia) the point that `list` is a predefined name (for the list constructor function) in Python. Perhaps worth using an alternative name, to avoid confusion ?
( That might also, on reflection, make it a little easier to extend those functions to allow for arguments of type `range(m, n)`, in addition to the arguments of type `list`, to which I think they are restricted at the moment. You would need the eponymous Python list() function to make the conversions from ranges ).
[[User:Hout|Hout]] ([[User talk:Hout|talk]]) 10:49, 20 March 2021 (UTC)
|