Skip to content
  • Damien George's avatar
    py: Specify unary/binary op name in TypeError error message. · a5efcd47
    Damien George authored
    Eg, "() + 1" now tells you that __add__ is not supported for tuple and
    int types (before it just said the generic "binary operator").  We reuse
    the table of names for slot lookup because it would be a waste of code
    space to store the pretty name for each operator.
    a5efcd47