During python runtime, can python inspect rust types wrapped by #[pyclass]? #3003
-
An example:
The Let's assume the neccessary is done to have this #[pyclass ] imported in a python script. Assume also no methods of Are there some fundamental guarantees that python runtime can never access the data of Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
There are no security boundaries between Python code and native extensions, c.f. |
Beta Was this translation helpful? Give feedback.
-
(As side remark, I think GitHub's dicussions feature would be much more suitable to such exploratory questions which do not describe a defect or enhancement proposal.) |
Beta Was this translation helpful? Give feedback.
There are no security boundaries between Python code and native extensions, c.f.
ctypes.string_at
which can be used to read arbitrary memory.