The 'core' user-config.py might include debug_log.append("") , to set debug.
However if this same user-config is used for compat, it creates a NameError.
compat$ python pwb.py shell Traceback (most recent call last): File "pwb.py", line 50, in <module> import userlib File "userlib.py", line 13, in <module> import wikipedia as pywikibot File "wikipedia.py", line 172, in <module> from pywikibot.support import * File "pywikibot/support.py", line 15, in <module> from exceptions import * File "exceptions.py", line 14, in <module> import config File "config.py", line 606, in <module> exec open(_filename, 'r').read() File "<string>", line 15, in <module> NameError: name 'debug_log' is not defined
There are probably other core only variables which are not supported in compat.