add datetime module

This commit is contained in:
FinBird 2023-06-02 01:11:06 +08:00 committed by GitHub
parent c5592d3742
commit eee1f8011f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1316,7 +1316,7 @@ inline void VM::post_init(){
add_module_random(this); add_module_random(this);
add_module_base64(this); add_module_base64(this);
for(const char* name: {"this", "functools", "collections", "heapq", "bisect"}){ for(const char* name: {"this", "functools", "collections", "heapq", "bisect", "datetime"}){
_lazy_modules[name] = kPythonLibs[name]; _lazy_modules[name] = kPythonLibs[name];
} }