4 ms·
Are some classes more equal than others?
by danielodievich 5y ago
Are some classes more equal than others?
- MichaelMoser123 5y agoyes, the built-in types are, as he can't change their __hash__ and __eq__ members (The purpose of this revolution is to have __hash__ and __eq__ return the same value)
- MichaelMoser123 5y agoI think that he could have changed the built-in types by means of the ctypes library https://docs.python.org/3/library/ctypes.html https://docs.python.org/3/library/ctypes.html Python goes with some mighty batteries... I am using ctypes here - to produce an execution trace of a running python program, where all the side effects are displayed: (had to use it in order to access some hidden members in the built-in frame type ;-) ) https://github.com/MoserMichael/pyasmtool/blob/master/tracer.md https://github.com/MoserMichael/pyasmtool/blob/master/tracer...
- 0x008 5y agoWow these articles are amazing. Great write up!
- MichaelMoser123 5y agoThank you, very encouraging. Really thanks!