exaloop / exaloop/codon

Weak reference support for codon native objects

Open
#726 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
16.8k
Forks
603
Avg merge
4d 23h
Merged PRs (30d)
6

Description

I'm trying to use codon to accelerate a python project. But I wonder if there is an alternative of python weakref / C++ weak_ptr for Codon native objects. It's a resource-management components requiring weak ref for: 1. non-owning observer; 2. breaking circular reference.

Does codon support this? In my case, the weak reference is used purely internally, inside the component. And only a few specified classes needs it. In CPython, I enable weakref support by adding `__weakref__` into `__slots__`.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.