jayvdb created this task. jayvdb claimed this task. jayvdb added subscribers: gerritbot, Legoktm, jayvdb, Ricordisamoa, pywikibot-bugs-list. jayvdb added a project: pywikibot-core. Herald added a subscriber: Aklapper.
TASK DESCRIPTION @Ricordisamoa has kept a -1 on the [[https://gerrit.wikimedia.org/r/#/c/216535/| pending patch]] for T68120 for a month. It is a slight extension from that task, but hopefully giving it a new task with a better explanation will break the deadlock, as other patches in Gerrit depend on that patchset. Here is what the current code does, as is explained in the docstring. ``` $ python Python 2.7.5 (default, Apr 10 2015, 08:09:05) [GCC 4.8.3 20140911 (Red Hat 4.8.3-7)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import pywikibot >>> s = pywikibot.Site('wikidata', 'wikidata').data_repository() >>> i = pywikibot.ItemPage(s, 'Q66') >>> i.get(True, False, 'foo') Traceback (most recent call last): File "<stdin>", line 1, in <module> File "pywikibot/page.py", line 3730, in get data = super(ItemPage, self).get(force=force, *args, **kwargs) TypeError: get() got multiple values for keyword argument 'force' >>> i.get(force=force, get_redirect=True, 'foo') File "<stdin>", line 1 SyntaxError: non-keyword arg after keyword arg ``` The errors are identical in Python 3. As far as I know, there is no way that `WikibasePage.get` could support passing `args` into `DataSite.loadcontent`. Is there some incantation where using `args` works and needs to be supported? TASK DETAIL https://phabricator.wikimedia.org/T115780 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: jayvdb Cc: pywikibot-bugs-list, Ricordisamoa, jayvdb, Legoktm, gerritbot, Aklapper _______________________________________________ pywikibot-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
