mediawiki-utilities / python-mwapi

Simple Python Wrapper around MediaWiki API
http://pythonhosted.org/mwapi
MIT License
30 stars 11 forks source link

Adds continuation param to get() and post(). #22

Closed halfak closed 8 years ago

halfak commented 8 years ago

Implements automatic continuation of result JSON docs if the continuation param is True.

halfak commented 8 years ago

Note that I chose to implement continuation on top of get() and post() methods. This means that the return value of these function is different depending on the value of a parameter. This may be undesirable, so consider it in your review.

FWIW, it seems like this is the best option to me. It seems that the two return types (either a JSON dict or a generator of JSON dicts) is intuitive.