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
Add documentation for tweepy.parsers
#723
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks to be an improvement over what's already there.
Did you mean it's documenting improvements that aren't in the code or that it's an improvement in the documentation? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be in a new parsers.rst file rather than part of the documentation for API
.
Also, the descriptions are a little verbose and should probably be simplified to describe a user's perspective of the functionality for each parser rather than outlining all the internal logic.
|
||
Abstract method to be implemented by inheriting classes. Throws a ``NotImplementedError`` when not overriden. | ||
|
||
.. method:: Parser.parse(payload) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.. method:: Parser.parse(payload) | |
.. method:: Parser.parse_error(payload) |
|
||
Bases: :class:`Parser` | ||
|
||
An implementation of :class:`Parser`` used for parsing :class:`JSON` payloads. It tries to import the :class:`simplejson` library. If it fails, it imports the :class:`json` library. If that fails as well, it will try to import the :class:`simplejson` library from ``django.utils``. If that fails too, an :exc:`ImportError` is thrown. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This description needs to be updated as simplejson isn't used anymore.
cf54e31
to
d538993
Compare
I added some documentation for
tweepy.parsers
. Would appreciate it if someone reviewed what I wrote to see if it's correct and whether or not it'll render properly.