mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-22 17:12:55 +08:00
9d4aa3c38c
fix format can not markSweep after deinit root support markRoot if not root add clang-format fix path enable compile-commonds on to support clangd set markSweep not default use no_gc object for function frame only gc for tinyobj, not pikaobj restore add gc chain when init pikaObj add clang-format in docker set for default formatter to clang-format all Object is GC_ROOT on create only enable mark sweep to collect after OUT markSweep after deinit __pikaMain more mark sweep collect
10 lines
100 B
Python
10 lines
100 B
Python
class Tree:
|
|
parent = None
|
|
child = []
|
|
|
|
|
|
a = Tree()
|
|
b = Tree()
|
|
a.child.append(b)
|
|
b.parent = a
|