tatuylonen / wikitextprocessor

Python package for WikiMedia dump processing (Wiktionary, Wikipedia etc). Wikitext parsing, template expansion, Lua module execution. For data extraction, bulk syntax checking, error detection, and offline formatting.
Other
90 stars 23 forks source link

Run `mw.loadData()` in cloned environment #271

Closed xxyzz closed 3 months ago

xxyzz commented 3 months ago

As the Scribunto code and the GH issues(#90, #258) shows, mw.loadData() runs in a cloned environment so the caller env doesn't affect the code runs inside loadData.

I finally sort of understand this clone env problem...

kristian-clausal commented 3 months ago

Wonderful!!

xxyzz commented 3 months ago

I have tested the code on es edition dump file and there are no new Lua errors.