mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-19 19:10:17 +00:00
...
This commit is contained in:
parent
348bb2b7a5
commit
9c173fdada
@ -202,7 +202,7 @@ void VM__dtor(VM* self) {
|
||||
// destroy all objects
|
||||
ManagedHeap__dtor(&self->heap);
|
||||
// clear frames
|
||||
// ...
|
||||
while(self->top_frame) VM__pop_frame(self);
|
||||
NameDict__dtor(&self->modules);
|
||||
c11__foreach(py_TypeInfo, &self->types, ti) py_TypeInfo__dtor(ti);
|
||||
c11_vector__dtor(&self->types);
|
||||
|
@ -1,7 +1,11 @@
|
||||
class A:
|
||||
def __init__(self, a, b):
|
||||
def __init__(self, a, __b):
|
||||
self.a = a
|
||||
self.b = b
|
||||
self.__b = __b
|
||||
|
||||
@property
|
||||
def b(self):
|
||||
return self.__b
|
||||
|
||||
def add(self):
|
||||
return self.a + self.b
|
||||
|
Loading…
x
Reference in New Issue
Block a user