summaryrefslogtreecommitdiffstatshomepage
path: root/py/nativeglue.c
diff options
context:
space:
mode:
authorDaniël van de Giessen <daniel@dvdgiessen.nl>2020-12-07 13:33:13 +0100
committerDamien George <damien@micropython.org>2023-10-13 15:11:49 +1100
commit4f5e165d0bf9ba338df3cdab4266556c4c5a70c7 (patch)
tree089d5d3281ac7bda910c4d8a0fdeb87f774501bf /py/nativeglue.c
parent5f0bd33b732151bb7aa896307afae55400b15454 (diff)
downloadmicropython-4f5e165d0bf9ba338df3cdab4266556c4c5a70c7.tar.gz
micropython-4f5e165d0bf9ba338df3cdab4266556c4c5a70c7.zip
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/nativeglue.c')
0 files changed, 0 insertions, 0 deletions