PyObjectPtr: no RC even through function pointers#3307
Conversation
|
I'd prefer a lifetime to be attached to the type, to avoid use after free. Is there any reason there can't be one? |
|
Alternatively, my vision for single-indirection borrowed pyobject was a that |
d8a9c34 to
770ef8e
Compare
|
@coolreader18 Thanks! lifetime is really helpful advice. I didn't understand the |
|
Just |
|
@coolreader18 yes, that sounds great |
|
@coolreader18 looks good |
|
mm, it has problem |
|
@coolreader18 could you help it please? |
|
@youknowone ok! I think the main issue was the |
|
Could we remember to document these central types? The PR includes two additional public facing types that will inevitably confuse folks trying to contribute/understand to the/the codebase. |
|
|
|
Renamed a few types not to expose |
|
@DimitrisJim I agree they must be documented better. |
|
Yea, I'm planning on making some follow-up PRs |
it will enhance performance for type slots by removing double dereference, hopefully.
it also can be used like deferred rc in limited cases