binbot added a comment.

  My 2 cents:
  Pywikibot does not have the mission to correct ambigiousness of MediaWiki.
  
  u.isAnonymous() should first examine isinstance(u, pywikibot.User).
  If it is instantiated as Page, it should act as Page.
  If it is instantiated as User, we should check the string after /. If it is a 
valid range (ie. isnumeric() and is between 1 and 32 for IPv4, and the 
appropriate range for IPv6), then handle it as user, and return True. Otherwise 
not.
  Bot owners have to have the knowledge to handle this properly.
  
  I think a numeric-titled subpage of an anon user page is very rare, and much 
less likely than a CIDR range.

TASK DETAIL
  https://phabricator.wikimedia.org/T135359

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: binbot
Cc: binbot, jayvdb, gerritbot, Aklapper, Zppix, pywikibot-bugs-list, Xqt, mevo, 
PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, 
Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, 
Avicennasis, mys_721tx, Masti, Alchimista
_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to