Skip to content

kindergarten-garden: improve example.py#1843

Merged
yawpitch merged 4 commits intoexercism:masterfrom
yawpitch:master
Jul 10, 2019
Merged

kindergarten-garden: improve example.py#1843
yawpitch merged 4 commits intoexercism:masterfrom
yawpitch:master

Conversation

@yawpitch
Copy link
Contributor

The example.py has a mutable default, improperly named constants, and incorrectly invokes name mangling on a "non-public" class attribute. It's also inefficient.

yawpitch added 3 commits July 10, 2019 13:44
Eliminate mutable default value and incorrect use of name mangling.
Minimize unused instance attributes and speed up performance.
Eliminate mutable default value and incorrect use of name mangling.
Minimize unused instance attributes and speed up performance.
@yawpitch yawpitch requested a review from a team as a code owner July 10, 2019 12:50
@cmccandless
Copy link
Contributor

This can be merged once the flake8 violation has been fixed:

$ flake8
./exercises/kindergarten-garden/example.py:27:80: E501 line too long (80 > 79 characters)
The command "flake8" failed and exited with 1 during .

@yawpitch
Copy link
Contributor Author

This can be merged once the flake8 violation has been fixed:

Sigh ... there's the issue with flake8 thinking 79 is 80. Fixed.

@yawpitch yawpitch merged commit 420a626 into exercism:master Jul 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants