Skip to content

Conversation

@anntzer
Copy link
Contributor

@anntzer anntzer commented Feb 9, 2021

First commit: Don't dupe concat() definition; inline _compose().

The concat method can just directly reuse the free function
definition. (Also using string-joining was a bit overkill.)

Inlining _compose into __iter__ (its sole user) seems easier to
follow than having it defined nearly 50 lines away).

Second commit: Minor doc cleanups.

Punctuation. Use "cycler" instead of "Cycler" or "cycle" in sentences
slightly more consistently. Remove parameter descriptions that add no
information ("the second Cycler"). Remove unnecessary whitespace.

The `concat` method can just directly reuse the free function
definition.  (Also using string-joining was a bit overkill.)

Inlining `_compose` into `__iter__` (its sole user) seems easier to
follow than having it defined nearly 50 lines away).
Copy link
Member

@timhoffm timhoffm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes are intended to make the concat docstring match both the function and the method as good as possible.

Punctuation.  Use "cycler" instead of "Cycler" or "cycle" in sentences
slightly more consistently.  Remove parameter descriptions that add no
information ("the second Cycler").  Remove unnecessary whitespace.
@anntzer
Copy link
Contributor Author

anntzer commented Feb 9, 2021

yup, all agreed.

@QuLogic QuLogic merged commit 723d82b into matplotlib:master Apr 23, 2021
@anntzer anntzer deleted the cleanup branch April 23, 2021 23:37
@QuLogic QuLogic added this to the v1.0 milestone Oct 25, 2021
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.

3 participants