matej_suchanek created this task. matej_suchanek added projects: Pywikibot, Pywikibot-Wikidata. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper.
TASK DESCRIPTION - Calling `ItemPage.get` shouldn't be necessary. When the programmer asks for eg. `ItemPage.claims`, it should first take a look if the entity has been loaded, and if not, load it. - When the entity is loaded using `ItemPage.get`, all data is also initialized. This creates potentially many unused objects in the memory (claims with values and sitelinks with site objects T226157 <https://phabricator.wikimedia.org/T226157>). Let's only initialize those data attributes which the programmer cares about. - However, `ItemPage.get` is supposed to return a dictionary with all the data initialized. For backwards compatibility, it should become a "view" which will encapsulate all the above. TASK DETAIL https://phabricator.wikimedia.org/T245809 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: matej_suchanek Cc: Aklapper, matej_suchanek, pywikibot-bugs-list, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Ricordisamoa, Masti, Alchimista, Rxy
_______________________________________________ pywikibot-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
