mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 10:44:36 +08:00
Expose PyGetSet in builtins
This commit is contained in:
2 files changed
+2
-1
No files matched your search
@@ -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)
|
||||
);
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user