On Mon, Apr 11, 2011 at 8:46 PM, Purodha Blissenbach toolserver-l.wikipedia.org@publi.purodha.net wrote:
Krinkle wrote:
- Python
- Not sure how to pull this one off yet, as a work around it could make http request to the api in json (since Python supports that) but a way without making http calls would be preferred. I'm not a heavy Python developer (I've used it a couple of times to write simple ircbots (irclib) and wikibots (pywikibot), but that's about it). Any suggestions from python developers how they would like to have it delivered, let me know how you want it served and I'll see what I can do.
Count me in for supporting python, too. My experience is similar to yours, and I cannot start rightaway, but I think, getting the php implementation as a reference should have preceedence anyways.
Btw., I have been thinking about PLURAL implementations. It might be possible to automatically extract plural routines from MediaWikis LanguageZxx.php files, and wrapping them into a piece of code such as a big switch on language codes. Since the functions are pretty small, and there are not really many languages having their own PLURAL implementations, this might at least be a simple and effective start.
-- Greetings - Purodha
Toolserver-l mailing list (Toolserver-l@lists.wikimedia.org) https://lists.wikimedia.org/mailman/listinfo/toolserver-l Posting guidelines for this list: https://wiki.toolserver.org/view/Mailing_list_etiquette
Yes, you may "pack" some PLURALs. For instance, a lot of slavic languages have similar rule on plurals (three arguments and identical algorithm, at least in Belarusian, Russian and Ukrainian).