From b8f10a55f9ab70df9cac8ded1a5834d488c2d474 Mon Sep 17 00:00:00 2001 From: Jim Easterbrook Date: Wed, 16 Mar 2022 17:16:30 +0000 Subject: [PATCH] Enable flat static constructor methods These are needed to provide renamed overloaded constructors and the like. --- Source/Modules/python.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Modules/python.cxx b/Source/Modules/python.cxx index 36a978742..7ee3d94e3 100644 --- a/Source/Modules/python.cxx +++ b/Source/Modules/python.cxx @@ -3312,7 +3312,7 @@ public: Wrapper_print(f, f_wrappers); } - bool use_static_method = flat_static_method || !in_class || (Cmp(storage, "friend") == 0); + bool use_static_method = flat_static_method || !in_class || constructor || (Cmp(storage, "friend") == 0); /* Now register the function with the interpreter. */ if (!Getattr(n, "sym:overloaded")) { if (!builtin_self && (use_static_method || !builtin))