Skip to content
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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

chuckoy
Copy link

@chuckoy chuckoy commented Apr 20, 2016

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.

Copy link

@5tefan 5tefan left a 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.

@chuckoy
Copy link
Author

chuckoy commented Apr 19, 2017

Did you mean it's documenting improvements that aren't in the code or that it's an improvement in the documentation?

@Harmon758 Harmon758 added the Documentation This is regarding the library's documentation label Apr 25, 2019
Copy link
Member

@Harmon758 Harmon758 left a 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)
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
.. 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.
Copy link
Member

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.

@Harmon758 Harmon758 added Need Follow-Up This needs to be followed up on to be actionable Stale This is inactive, outdated, too old, or no longer applicable labels Jun 7, 2019
@Harmon758 Harmon758 force-pushed the master branch 5 times, most recently from cf54e31 to d538993 Compare August 27, 2019 04:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation This is regarding the library's documentation Need Follow-Up This needs to be followed up on to be actionable Stale This is inactive, outdated, too old, or no longer applicable
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants