Xqt created this task.
Xqt added a subscriber: Xqt.
Xqt added a project: pywikibot-core.
Herald added subscribers: pywikibot-bugs-list, Aklapper.

TASK DESCRIPTION
  The result type of Page.namespace() depends on the namespace itself. For 
article namspace it is the number 0. For all other namespaces it returns a 
Namespace object. Looks like a breaking change.
  
  sample:
  ```
  >>> import pwb, pywikibot as py
  >>> s = py.Site()
  >>> p = py.Page(s, 'Hauptseite')
  >>> p.namespace()
  0
  >>> p = py.Page(s, 'Wikipedia:Hauptseite')
  >>> p.namespace()
  Namespace(id=4, custom_name=u'Wikipedia', canonical_name=u'Project', 
aliases=[u'WP'], case=u'first-letter', subpages=u'')
  
  ```

TASK DETAIL
  https://phabricator.wikimedia.org/T104864

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Xqt
Cc: Aklapper, Xqt, pywikibot-bugs-list, jayvdb, Malyacko, P.Copp



_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to