[Pywikipedia-l] Two minor problems in replace.py (attn xqt)

Bináris wikiposta at gmail.com
Sat Feb 26 10:30:30 UTC 2011


2011/2/25 Merlijn van Deen <valhallasw at arctus.nl>

> Of course, the
> >>> 'a' if append else 'w'
>
> is nicer, but has only been supported for python 2.5+.
>
Yet another variant: *pywikibot.iif(append,'a','w')*

I have just found this function in wikipedia.py. :-)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wikimedia.org/pipermail/pywikipedia-l/attachments/20110226/c07e5aed/attachment-0001.htm 


More information about the Pywikipedia-l mailing list