79816100

Date: 2025-11-10 22:31:10
Score: 2.5
Natty:
Report link

Thanks, I rephrased "returns" to "received". I meant the argument received.

In your class B above, you are implicitly assuming that individual indices cannot be tuple:

I am comparing to function, foo(**args) vs. foo[**args], because they are mathematically equivalent (indexing is a function from index space), and share a similar "argument (un)packing" functional feature (and because in the end both are written as methods)

I understand that 1-length tuples have been identified with their scalar value (its single entry), but I find it weird and can't understand why

So I see what you lose and don't guess what you gain.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (0.5): I cannot
  • Long answer (-1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: nath