Skip to content

Commit

Permalink
Make "object" a non-tuple class
Browse files Browse the repository at this point in the history
  • Loading branch information
arshajii committed Oct 23, 2022
1 parent 5821380 commit 2f26884
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions stdlib/internal/builtin.codon
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 2f26884

Please sign in to comment.