https://bugzilla.wikimedia.org/show_bug.cgi?id=55229
--- Comment #5 from Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com --- Yes, you are correct it's a bad design. However, this is what happens when software grows ;-)
If you can fix it, you are vey welcome to submit a patch. For now, you could use the setSite() workaround, which should be OK (but ugly) as long as you're running a single-threaded app.
>>> wikipedia.getSite() wikipedia:en >>> wikipedia.setSite(wikipedia.getSite('nl', 'wikipedia') >>> wikipedia.getSite() wikipedia:nl
you can get the site from a page object: >>> p = wikipedia.Page(wikipedia.getSite(), 'nl:test') >>> p.site() wikipedia:nl