<br><br><div class="gmail_quote">2011/2/25 Merlijn van Deen <span dir="ltr"><<a href="mailto:valhallasw@arctus.nl">valhallasw@arctus.nl</a>></span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="gmail_quote"><div></div><div>Of course, the</div><div>>>> 'a' if append else 'w'</div>
<div><br></div><div>is nicer, but has only been supported for python 2.5+.</div></div></blockquote>Yet another variant: <b><span style="font-family: courier new,monospace;">pywikibot.iif(append,'a','w')</span></b><br>
<br>I have just found this function in wikipedia.py. :-)<br>
</div>