-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using named tuples #22
Comments
Bump. |
This is an excellent suggestion. Sorry for the late answer, this got lost and stuck between my actual intention to release other stuff containing already this part. Although, if any PR would pop in and that it pass the basic requirements, I'll accept it with pleasure. Sorry again for this overly late answer anyway. |
Great. If and when I get the time to do this, I'll shoot a PR. |
If someone else is interested in doing this, please do. |
Hi @vaab, should this issue be considered closed? |
Closing since it looks like it got solved. |
Currently, All attributes and methods of
Color
return tuples or strings. It should be relatively simple to return namedtuples instead of simple tuples.Why?
Namedtuple makes your tuples _self-document. You can easily understand what is going on by having a quick glance at your code._1
The text was updated successfully, but these errors were encountered: