RPI2026F1 created this task.
RPI2026F1 added a project: Pywikibot.
Restricted Application added subscribers: pywikibot-bugs-list, Aklapper.
TASK DESCRIPTION
**Steps to replicate the issue** (include links if applicable):
>>> page = pywikibot.Page(site, "Wikidata:Requests for
deletions#FakeHeading")
>>> page.exists()
True
**What happens?**:
The documentation claims that it will return False if a heading is included
but the heading does not exist on the page. However, this behavior does not
happen.
**What should have happened instead?**:
Ideally, if the heading did not exist, it would return False. However, since
templates can add section headings, pywikibot would need to parse the generated
HTML to determine if the section header exists, or alternatively this line can
be removed from the documentation.
**Software version** (skip for WMF-hosted wikis like Wikipedia):
**Other information** (browser name/version, screenshots, etc.):
TASK DETAIL
https://phabricator.wikimedia.org/T334341
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: RPI2026F1
Cc: Aklapper, RPI2026F1, pywikibot-bugs-list, PotsdamLamb, Jyoo1011,
JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS,
Framawiki, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt,
jayvdb, Masti, Alchimista
_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]