[Pywikipedia-l] remove all methods for backward-compatibility in rewrite branch and add wrapper classes?

Liangent liangent at gmail.com
Tue May 5 05:03:18 UTC 2009


currently, some old methods still remain in the rewrite branch, for
backward-compatibility.

but i think as a *rewrite* version, such methods can be removed, or
replaced with new methods and properties,
to make new code cleaner.

also, for convinence, we can provide some simple wrapper classes, which map
old methods to new ones.
and put them in some package such as pywikibot.wrappers.*. for example,
pywikibot.wrappers.Page.
try to make them have the same interfaces as old version (trunk version?).
and this may make porting old scripts easier (just by writing from pywikibot
import wrappers as wikipedia etc.).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wikimedia.org/pipermail/pywikipedia-l/attachments/20090505/044ff5e7/attachment.htm 


More information about the Pywikipedia-l mailing list