According with you, why this /for /doesn't work:
for arg in pywikibot.handleArgs(): genFactory.handleArg(arg)
in my python script?
Error message is: "name 'genFactory' is not defined"
I've:
import wikipedia as pywikibot
surely it's a small detail that escapes me... but I cannot find it. :(
Tnx, Marco
you must import pagegenerators too and genFactory must become a GeneratorFactory class e.g
import wikipedia as pywikibot import pagegenerators as pg
genFactory = pg.GeneratorFactory() for arg in pywikibot.handleArgs(): genFactory.handleArg(arg)
regards xqt
----- Original Nachricht ---- Von: Gnumarcoo gnumarcoo@gmail.com An: Pywikipedia discussion list pywikipedia-l@lists.wikimedia.org Datum: 21.05.2012 17:11 Betreff: [Pywikipedia-l] handleArgs
According with you, why this /for /doesn't work:
for arg in pywikibot.handleArgs(): genFactory.handleArg(arg)
in my python script?
Error message is: "name 'genFactory' is not defined"
I've:
import wikipedia as pywikibot
surely it's a small detail that escapes me... but I cannot find it. :(
Tnx, Marco
Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l