79262138

Date: 2024-12-08 09:22:14
Score: 2.5
Natty:
Report link

Yes, that is usable, but note that if function is redefined, reloaded, or anything (e.g. in module reimport, or, if in python notebook, cell rerun), its address will change, therefore its hash too, so you will get the KeyError. Make sure that in those cases dictionary redefines too.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: maxim degi