https://bugzilla.wikimedia.org/show_bug.cgi?id=71104
Bug ID: 71104 Summary: page.isRedirectPage() reports always False after page.isDisambig() Product: Pywikibot Version: core (2.0) Hardware: All OS: All Status: NEW Severity: normal Priority: Unprioritized Component: General Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: CommodoreFabianus@gmx.de Web browser: --- Mobile Platform: ---
When calling page.isDisambig() a page.isRedirectPage() followed after that is reporting it always false. Calling 'page.text' does 'fix' that so that it returns the actual value.
import pywikibot enwp = pywikibot.Site('en', 'wikipedia') page = pywikibot.Page(enwp, 'TBBT') page.isRedirectPage()
True
page = pywikibot.Page(enwp, 'TBBT') not page.isDisambig()
True
page.isRedirectPage()
False
page.text
'#REDIRECT [[The Big Bang Theory]]'
page.isRedirectPage()
True