mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 18:59:04 +08:00
Merge pull request #2249 from youknowone/getset-name
__name__ of getset descriptor
This commit is contained in:
1 file changed
+3
-2
@@ -245,9 +245,10 @@ impl PyGetSet {
|
||||
}
|
||||
}
|
||||
|
||||
// TODO: give getset_descriptors names
|
||||
#[pyproperty(magic)]
|
||||
fn name(&self) {}
|
||||
fn name(&self) -> String {
|
||||
self.name.clone()
|
||||
}
|
||||
}
|
||||
|
||||
pub(crate) fn init(context: &PyContext) {
|
||||
|
||||
Reference in new issue
Block a user