Lokal_Profil created this task.
Lokal_Profil added a subscriber: Lokal_Profil.
Lokal_Profil added projects: pywikibot-core, Pywikibot-Wikidata.
Herald added subscribers: pywikibot-bugs-list, StudiesWorld, Aklapper.

TASK DESCRIPTION
  The fact that `Claim.target_equals()` does `WbTime` comparison based only on 
year is counter-intuitive to me.
  
  I would suggest making this take precision `target.precision` into account 
and demanding that `target.precision < pywikibot.WbTime.PRECISION['year']` but 
would like to check what the original choice for comparing on year was.
  
  Alternatively (or additionally) having a built in comparison where both 
target and value are `WbTime` would be useful. The method I use myself compares 
year, month, day etc. based on the relevant precision (so that `2010-01-01` and 
`2010-00-00` are equal but only if precision is `year` on both).

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

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

To: Lokal_Profil
Cc: Aklapper, StudiesWorld, Lokal_Profil, pywikibot-bugs-list, Ricordisamoa, 
jayvdb



_______________________________________________
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to