Feat: locale-module by Yaminyam · Pull Request #4081 · RustPython/RustPython
@fanninpm Interesting. Does __file__ attribute existence different by it is builtin or not?
I usually check sys.builtin_module_names
>>> import sys
>>> sys.builtin_module_names
('_abc', '_ast', '_codecs', '_collections', '_functools', '_imp', '_io', '_locale', '_operator', '_signal', '_sre', '_stat', '_string', '_symtable', '_thread', '_tracemalloc', '_warnings', '_weakref', 'atexit', 'builtins', 'errno', 'faulthandler', 'gc', 'itertools', 'marshal', 'posix', 'pwd', 'sys', 'time', 'xxsubtype')
>>> '_locale' in sys.builtin_module_names
True
Yes, so this belongs in vm crate.