Hi,
*user vita *is an outdated but well-working name for user talk namespace in
Hungarian Wikipedia. If I write [[user vita:Bináris]], it takes me directly
to my talk page (which is now called *Szerkesztővita:Bináris*).
But for the code
s = u'user vita:Bináris'
p = pywikibot.Page(site,s)
print p.namespace()
the result is 0 instead of 3. Where is the error?
--
Bináris
I see in a couple of bots this construction:
def main(*args):
for arg in pywikibot.handleArgs(*args):
etc.
Now, if I write instead of this
def main():
for arg in pywikibot.handleArgs():
etc.
the result seems to be just the same. I tried with valid global and with
unique parameters as well.
So, what is the difference?
I know the theory that * means a variable width argument list, but if I omit
it, the behaviour does not change.
--
Bináris