Merge pull request #2035 from youknowone/dictkey

Refactor DictKey
This commit is contained in:
Jeong YunWon
2020-08-04 02:45:05 +09:00
committed by GitHub
18 changed files with 126 additions and 137 deletions

View File

@@ -40,7 +40,7 @@ macro_rules! add_python_function {
// inserts the first function found in the module into the provided scope.
$scope.globals.set_item(
&def.obj_name,
def.obj_name.as_str(),
$vm.context().new_pyfunction(
vm::obj::objcode::PyCode::new(*def.clone()).into_ref(&$vm),
$scope.clone(),