2ac1364688
CPython docs explicitly state that the RHS of a set/frozenset binary op must be a set to prevent user errors. It also preserves commutativity of the ops, eg: "abc" & set() is a TypeError, and so should be set() & "abc". This change actually decreases unix (x64) code by 160 bytes; it increases stm32 by 4 bytes and esp8266 by 28 bytes (but previous patch already introduced a much large saving).
21 lines
358 B
Plaintext
21 lines
358 B
Plaintext
SyntaxError
|
|
AttributeError
|
|
TypeError
|
|
NotImplementedError
|
|
NotImplementedError
|
|
TypeError, ValueError
|
|
NotImplementedError
|
|
NotImplementedError
|
|
NotImplementedError
|
|
NotImplementedError
|
|
NotImplementedError
|
|
NotImplementedError
|
|
NotImplementedError
|
|
NotImplementedError
|
|
NotImplementedError
|
|
NotImplementedError
|
|
b'\x01\x02'
|
|
b'\x01\x00'
|
|
NotImplementedError
|
|
AttributeError
|