| Xqt created this task. Xqt added a project: Pywikibot-core. Herald added subscribers: pywikibot-bugs-list, Aklapper. |
TASK DESCRIPTION
Currently we haven't seen this problem but api.Requests.init is potential dangerous. At the end of the initializer method self.site.Version is called under some conditions. This could lead to an infinite loop. Try the following:
pwb.py Shell >>> import pywikibot as py >>> s = py.Site() >>> s.version() 1.31.0-wmf.29 exit()
now replace self.write in line 1456 with True:
pwb.py Shell >>> import pywikibot as py >>> s = py.Site() >>> s.version() ... <very huge traceback> ... RecursionError: maximum recursion depth exceeded
TASK DETAIL
EMAIL PREFERENCES
To: Xqt
Cc: Aklapper, pywikibot-bugs-list, Xqt, Magul, Tbscho, MayS, Mdupont, JJMC89, Avicennasis, jayvdb, Dalba, Masti, Alchimista, Rxy
Cc: Aklapper, pywikibot-bugs-list, Xqt, Magul, Tbscho, MayS, Mdupont, JJMC89, Avicennasis, jayvdb, Dalba, Masti, Alchimista, Rxy
_______________________________________________ pywikibot-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
