Patches item #3096196, was opened at 2010-10-27 08:30 Message generated for change (Comment added) made by xqt You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3096196...
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None
Status: Closed Resolution: Accepted
Priority: 5 Private: No Submitted By: lankier (lankier)
Assigned to: xqt (xqt)
Summary: Page.get(expandtemplates=True) fix
Initial Comment: Page.get() saves the result of a previous request. But it is incorrect for expandtemplates=True. Test:
import wikipedia site = wikipedia.getSite()
page = wikipedia.Page(site, 'Pop') txt1 = page.get(expandtemplates=False) txt2 = page.get(expandtemplates=True) print txt1 == txt2 # False, it`s Okay
page = wikipedia.Page(site, 'Pop') txt2 = page.get(expandtemplates=True) txt1 = page.get(expandtemplates=False) print txt1 == txt2 # True, it`s a bug
This patch fixes it
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2010-11-07 17:19
Message: done in r8706. thanks.
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3096196...