Shadowing built in names
Open
- Dominant language
- Python
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
For example:
https://github.com/DoReCo/multitool/blob/6791f54616f7f1df2b7349b05c93275c678e857a/conversion_data/interface/Collection.py#L69
In the Python language `list` is a built in name that will create a list data type. When you create a method that has `list` as a parameter name the semantics of using `list` inside that method changes from the default and thereby makes it harder for other people to understand what that code does. Using a different variable name would likely be a better option.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.