Ned Batchelder @nedbat.com · Oct 23

Be careful in #Python when trying to compare object methods... "Bound method" objects are made anew each time, and reference the object and the function.

7 likes 1 replies

?

Replies

A_Derg · Oct 23

You know every time I look at the descriptors that power bound methods it makes my head hurt a bit. I wonder if there's a bit of a performance gain available here by caching the bound method instances