diff options
| author | Daniël van de Giessen <daniel@dvdgiessen.nl> | 2020-12-07 13:33:13 +0100 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2023-10-13 15:11:49 +1100 |
| commit | 4f5e165d0bf9ba338df3cdab4266556c4c5a70c7 (patch) | |
| tree | 089d5d3281ac7bda910c4d8a0fdeb87f774501bf /py/persistentcode.h | |
| parent | 5f0bd33b732151bb7aa896307afae55400b15454 (diff) | |
py/objboundmeth: Support comparing and hashing bound methods.
This behaviour matches CPython. It's useful to be able to store bound
method objects in dicts/sets, and compare for equality, eg when storing
them in a list and using list.remove().
Signed-off-by: Daniël van de Giessen <daniel@dvdgiessen.nl>
Diffstat (limited to 'py/persistentcode.h')
0 files changed, 0 insertions, 0 deletions
