From 528b1774377004570885f947ab159943d6d8baf0 Mon Sep 17 00:00:00 2001 From: Jeong YunWon Date: Wed, 30 Sep 2020 15:12:56 +0900 Subject: [PATCH] __name__ of getset descriptor --- vm/src/obj/objgetset.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/vm/src/obj/objgetset.rs b/vm/src/obj/objgetset.rs index f60c6d3be..3e6f079a6 100644 --- a/vm/src/obj/objgetset.rs +++ b/vm/src/obj/objgetset.rs @@ -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) {