Message60670
Logged In: YES
user_id=699438
I don't know if this is a viable general-purpose fix. Keep in
mind that python tracks everything by references, and
reloading doesn't correct existing bindings. If you recompile it
is going to screw up existing function pointers in
PyCFunction objects. In the example below calling a() will
probably end up executing random code or generting a
memory fault.
>>> import select
>>> a = select.select
... imaginary recompile ...
>>> reload(select)
<module 'select' from 'C:\Python24\DLLs\select.pyd'>
>>> b = select.select
>>> id(a)
18165472
>>> id(b)
18165476
>>> a() #BOOM! |
|
Date |
User |
Action |
Args |
2008-01-20 09:57:31 | admin | link | issue1144263 messages |
2008-01-20 09:57:31 | admin | create | |
|