mirror of
https://github.com/micropython/micropython.git
synced 2026-01-05 19:50:30 +01:00
py/objsingleton: Use mp_generic_unary_op for singleton objects.
So these types more closely match NoneType, eg they can be hashed, like in CPython.
This commit is contained in:
@@ -4,3 +4,6 @@ print(...)
|
||||
print(Ellipsis)
|
||||
|
||||
print(... == Ellipsis)
|
||||
|
||||
# Test that Ellipsis can be hashed
|
||||
print(type(hash(Ellipsis)))
|
||||
|
||||
Reference in New Issue
Block a user