Pyolian: correctly define c_type as a property
authorDave Andreoli <dave@gurumeditation.it>
Fri, 11 Oct 2019 06:17:56 +0000 (08:17 +0200)
committerJongmin Lee <jm105.lee@samsung.com>
Sun, 13 Oct 2019 21:38:49 +0000 (06:38 +0900)
src/scripts/pyolian/eolian.py

index abb8e17..9ab6abd 100644 (file)
@@ -1137,7 +1137,8 @@ class Type(Object):
     def builtin_type(self):
         return Eolian_Type_Builtin_Type(lib.eolian_type_builtin_type_get(self))
 
-    def c_type_get(self):
+    @cached_property
+    def c_type(self):
         s = lib.eolian_type_c_type_get(self)
         ret = _str_to_py(s)
         lib.eina_stringshare_del(c_void_p(s))