We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0acce07 commit 106f5f7Copy full SHA for 106f5f7
vm/src/stdlib/imp.rs
@@ -72,6 +72,11 @@ fn imp_init_frozen(name: PyStringRef, vm: &VirtualMachine) -> PyResult {
72
}
73
74
75
+fn imp_is_frozen_package(_name: PyStringRef, _vm: &VirtualMachine) -> bool {
76
+ // TODO: Support frozen package.
77
+ false
78
+}
79
+
80
pub fn make_module(vm: &VirtualMachine) -> PyObjectRef {
81
let ctx = &vm.ctx;
82
let module = py_module!(vm, "_imp", {
@@ -85,6 +90,7 @@ pub fn make_module(vm: &VirtualMachine) -> PyObjectRef {
85
90
"exec_builtin" => ctx.new_rustfunc(imp_exec_builtin),
86
91
"get_frozen_object" => ctx.new_rustfunc(imp_get_frozen_object),
87
92
"init_frozen" => ctx.new_rustfunc(imp_init_frozen),
93
+ "is_frozen_package" => ctx.new_rustfunc(imp_is_frozen_package),
88
94
});
89
95
96
module
0 commit comments