Message343859
> Could someone create a buffer object which still allows the underlying memory to be written? Sure. But I can use ctypes to modify byte code today as well with something like "ctypes.cast(id(f.__code__.co_code) + 32, ctypes.POINTER(ctypes.c_char)) [0] = 101"
You are comparing apple and orange.
Breanking memory inside immutable object by ctypes is far different from mutating mutable memory.
It introduce more weakness and complexity into code object.
At least, you need to demonstrate the benefit.
When importing module, there are many objects are created. Why avoiding decref only for co_code make much difference? |
|
Date |
User |
Action |
Args |
2019-05-29 03:15:14 | methane | set | recipients:
+ methane, dino.viehland, eric.snow |
2019-05-29 03:15:14 | methane | set | messageid: <1559099714.39.0.790387848404.issue36839@roundup.psfhosted.org> |
2019-05-29 03:15:14 | methane | link | issue36839 messages |
2019-05-29 03:15:14 | methane | create | |
|