"Valhallasw" posted a comment on pywikipedia.r10063.
URL: http://www.mediawiki.org/wiki/Special:Code/pywikipedia/10063#c32599

Commit summary for pywikipedia.r10063:

featured.py need to identify the "#" sortkey (bug #3511935)

Valhallasw's comment:

Ah, now I understand it. I can't find a quick way to get chr working for 
non-ASCII stuff either. Maybe we could instead do this:

for article in cat.articles():
    if article.startswith(hide):
        continue
    yield article

which does do some more queries to the site (but not that many), but it's 
clearer to read and it also works for non-ascii stuff.


_______________________________________________
MediaWiki-CodeReview mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-codereview

Reply via email to