Using a reserved name
list is a reserved keyword and should not be used for a method name.
Maybe use to_list? or items?
The affected methods are:
- Collection#list
- Inputs#list
- Jobs#list
Where is it noted that it is a reserved keyword? All the Python docs I can find don't have it (they have others).
Pydev warns saying it is an assignment built-in symbol: list Maybe it's just wrong and think you're overwriting the list() function?
Yeah, I'm unconvinced. It may very well change as we change our object model to something more descriptive, but I won't guarantee it.
I am reluctant to make a breaking change for this one. We chose "list" because it is the term used by the REST API for the functionality. In retrospect we might have chosen a different term, but I don't think its worth a breaking change at this point.
This doesn't appear to do any actual harm other than confusing pylint and incorrectly color coding the method as a keyword in vi.
(leaving the issue open for now pending additional feedback).
I have decided not to change this. Pylint complains, but the name does no harm and I dont want to take a breaking change for this and it the best mapping to the term used in the underlying REST API.