<div>Hi,<br></div><div><br></div><div>Noticed one of my scripts failing because I tried to instantiate a category named &quot;Wikipedia:Globalt perspektiv-samtliga&quot; (it&#39;s in Swedish Wikipedia, here&#39;s the actual category: <a href="http://sv.wikipedia.org/wiki/Kategori:Wikipedia:Globalt_perspektiv-samtliga">http://sv.wikipedia.org/wiki/Kategori:Wikipedia:Globalt_perspektiv-samtliga</a>)</div>
<div><br></div><div>This fails:</div><div>    myCat = pywikibot.Category(mySite, &quot;Wikipedia:Globalt perspektiv-samtliga&quot;);</div><div><br></div><div>The error is:</div><div>    ValueError: &#39;Wikipedia:Globalt perspektiv-samtliga&#39; is not in the category namespace!</div>
<div><br></div><div>Creating it as a page with namespace set to 14 results in:</div><div>    &gt;&gt;&gt; myPage = pywikibot.Page(mySite, &#39;Wikipedia:Globalt perspektiv-samtliga&#39;, ns=14);<br>    &gt;&gt;&gt; print myPage.title();<br>
    Wikipedia:Globalt perspektiv-samtliga<br>    &gt;&gt;&gt; print myPage.namespace();<br>    4<br><br></div><div>The title&#39;s namespace overrides the given option, which itsn&#39;t what I would expect.  However, if I add the category namespace prefix to the title (localised to Swedish it&#39;s &quot;Kategori:Wikipedia:Globalt perspektiv-samtliga&quot;), I get the right namespace and such.</div>
<div><br></div><div>Not sure if this is a bug or a feature, so I figured I&#39;d post a note here and see if anyone had any views on it, rather than just file the bug in SF.</div><div><br></div><div><br></div><div>Cheers,</div>
<div>Morten</div><div><br></div>