We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
next
These docs show a collector of next:
https://github.com/glyph/automat/blame/master/docs/about.rst#L427-L430
...but I don't believe that can ever work, I think it needs to be itemgetter(0).
itemgetter(0)
Given the common use of "return the first result of the output methods", perhaps this could be added to automat/__init__.py:
automat/__init__.py
from operator import itemgetter first = itemgetter(0)
...and then, obviously, add it to __all__?
__all__
For the docs, perhaps Sybil could be used to test these examples to ensure they are functional and correct?
The text was updated successfully, but these errors were encountered:
Thanks @cjw296 ! Want to make a pR?
Sorry, something went wrong.
653080e
Merge pull request #132 from glyph/129-next-to-itemgetter
99ab71e
Fix #129: Fix docs to remove invalid next
No branches or pull requests
These docs show a collector of
next
:https://github.com/glyph/automat/blame/master/docs/about.rst#L427-L430
...but I don't believe that can ever work, I think it needs to be
itemgetter(0)
.Given the common use of "return the first result of the output methods", perhaps this could be added to
automat/__init__.py
:...and then, obviously, add it to
__all__
?For the docs, perhaps Sybil could be used to test these examples to ensure they are functional and correct?
The text was updated successfully, but these errors were encountered: