objmodule should have a dict

This commit is contained in:
Aviv Palivoda
2019-06-08 11:05:45 +03:00
parent fe0284aa05
commit 375790e142

View File

@@ -11,6 +11,8 @@ pub struct PyModule {
pub type PyModuleRef = PyRef<PyModule>;
impl PyValue for PyModule {
const HAVE_DICT: bool = true;
fn class(vm: &VirtualMachine) -> PyClassRef {
vm.ctx.module_type()
}