wichert / lingua

Translation toolkit for Python
Other
45 stars 32 forks source link

Global variables in python extractor #80

Open ztane opened 8 years ago

ztane commented 8 years ago

This is quite a design flaw in python extractor. The KEYWORDS variable is global, and that global dictionary is updated on call to Python extractor with new values from options and not vice versa. This makes it impossible to use two python extractors at the same time with different keywords.