No, the pattern with page.text is evil and will be exterminated. Like I stated in my previous email im in the process of making core not suck. defining several functions with the same name but different actions is a recipe for headache and problematic code. use of get_<item>() and set_<item>() functions should always be used. Not sure who's bright idea it was to use the current page.text approach, but it wasnt a good idea.
On Sat, Jun 7, 2014 at 2:43 PM, Ricordisamoa ricordisamoa@openmailbox.org wrote:
It seems to me that the current trend is to use the same attribute as both a getter and a setter, e.g. Page.text. Is this true? Should we convert Claim.getTarget() and .setTarget() to just "target" (which is already used internally)?
Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l