From 2f268843ac7527f22f7f41d582dc80b7d64d6fec Mon Sep 17 00:00:00 2001 From: "A. R. Shajii" Date: Sat, 22 Oct 2022 20:53:25 -0400 Subject: [PATCH] Make "object" a non-tuple class --- stdlib/internal/builtin.codon | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/stdlib/internal/builtin.codon b/stdlib/internal/builtin.codon index 8b96368f..d4f2a22f 100644 --- a/stdlib/internal/builtin.codon +++ b/stdlib/internal/builtin.codon @@ -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 "" + return f"<{self.__class__.__name__} object at {self.__raw__()}>" def id(x) -> int: