From 67ffa18be5bbfacf8833d512f3aab22c46d82815 Mon Sep 17 00:00:00 2001 From: codomposer Date: Thu, 30 Oct 2025 12:39:21 -0400 Subject: [PATCH] fix make function --- 22-dyn-attr-prop/pseudo_construction.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/22-dyn-attr-prop/pseudo_construction.py b/22-dyn-attr-prop/pseudo_construction.py index af651a2..462eddf 100644 --- a/22-dyn-attr-prop/pseudo_construction.py +++ b/22-dyn-attr-prop/pseudo_construction.py @@ -1,8 +1,8 @@ # pseudocode for object construction -def make(the_class, some_arg): - new_object = the_class.__new__(some_arg) +def make(the_class, *args, **kwargs): + new_object = the_class.__new__(the_class, *args, **kwargs) if isinstance(new_object, the_class): - the_class.__init__(new_object, some_arg) + the_class.__init__(new_object, *args, **kwargs) return new_object # the following statements are roughly equivalent