jayvdb created this task.
jayvdb added a subscriber: jayvdb.
jayvdb added a project: pywikibot-core.
Herald added subscribers: pywikibot-bugs-list, Aklapper.

TASK DESCRIPTION
  BasePage and subclasses use private attributes to store cached values.
  
  Currently there is no defined manner to clear all local state in a BasePage 
object, or that of subclasses.
  
  Historically the usual approach as been to delete the Page object & create a 
new one if necessary.  That works OK for bots which typically throw away Page 
objects immediately after use, but isnt a feasible approach when the library 
needs to clear the cached values of a object.
  
  There is a property deleter for `latest_revision_id` and `text`, which doesnt 
clear a few of the saved local state variables, but not all.

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

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

To: jayvdb
Cc: Aklapper, jayvdb, pywikibot-bugs-list



_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to