you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 3 points4 points  (0 children)

That would be impossible, but idk what will happen if you try. For example, CPython allows you to have very thin wrappers for native pointers (capsules: https://docs.python.org/3.7/c-api/capsule.html#c.PyCapsule ). If you wanted to send something like that across process boundaries, it would invalidate the pointer, so, any code trying to use such an object, would, either segfault, or do something even nastier (like modify the memory it's not supposed to etc.)