JJMC89 <jjmc89.wikime...@gmail.com> ezt írta (időpont: 2023. máj. 12., P,
1:12):

> There isn't a way to instantiate `Page` from an id.
>

But perhaps should be. Title is not always good for restoring the same page.

Your page id is 1. Sb. renames it – the actual article will have other
title with id 1, the redirect page the old title with new id. However, you
cannot be sure that the redirect leads to the old page at any time! While
manually check the logs is simply, to create an algorithm that finds the
original is very complicated.

The other case is deletion and recreation, that is not a big problem.

So I think page from id is a legal use case.
_______________________________________________
pywikibot mailing list -- pywikibot@lists.wikimedia.org
Public archives at 
https://lists.wikimedia.org/hyperkitty/list/pywikibot@lists.wikimedia.org/message/DVPQASBZZWETZ5BXFTS4PIJ5GO7SFQRH/
To unsubscribe send an email to pywikibot-le...@lists.wikimedia.org

Reply via email to