Quantcast
Channel: Cython cast PyObject* to object without increasing reference counter - Stack Overflow
Browsing all 2 articles
Browse latest View live

Answer by michitux for Cython cast PyObject* to object without increasing...

In short: no. Variables typed as Python objects always use reference counters. However depending on what you actually want to do there might be various ways to avoid reference counting. For example if...

View Article



Cython cast PyObject* to object without increasing reference counter

I understand that when I'm make casting like: <object> p, where p is PyObject* reference counter is increased. Is it possible to cast PyObject* to object without increasing reference counter?

View Article
Browsing all 2 articles
Browse latest View live




Latest Images