Expose PyGetSet in builtins

This commit is contained in:
Noah committed 2020-10-16 20:49:20 -05:00
1 parent b0f9589471
commit 79d5872942
2 files changed
+2 -1

No files matched your search

+1 -1
View File
@@ -502,7 +502,7 @@ impl ToTokens for GetSetNursery {
class.set_str_attr(
#name,
::rustpython_vm::pyobject::PyObject::new(
::rustpython_vm::builtins::getset::PyGetSet::#constructor(#name.into(), &Self::#getter #setter),
::rustpython_vm::builtins::PyGetSet::#constructor(#name.into(), &Self::#getter #setter),
ctx.types.getset_type.clone(), None)
);
}
+1
View File
@@ -29,6 +29,7 @@ pub use function::PyFunction;
pub(crate) mod generator;
pub use generator::PyGenerator;
pub(crate) mod getset;
pub use getset::PyGetSet;
pub(crate) mod int;
pub use int::{PyInt, PyIntRef};
pub(crate) mod iter;