mirror of https://github.com/exaloop/codon.git
Make "object" a non-tuple class
parent
5821380b10
commit
2f268843ac
|
@ -4,10 +4,12 @@ from internal.gc import alloc_atomic, free
|
|||
from internal.types.optional import unwrap
|
||||
|
||||
|
||||
@tuple
|
||||
class object:
|
||||
def __init__(self):
|
||||
pass
|
||||
|
||||
def __repr__(self) -> str:
|
||||
return "<object>"
|
||||
return f"<{self.__class__.__name__} object at {self.__raw__()}>"
|
||||
|
||||
|
||||
def id(x) -> int:
|
||||
|
|
Loading…
Reference in New Issue