From 7e7372fc8597eea4e4bf04fa5e013ac01a2c0b84 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Sat, 28 May 2011 12:29:29 -0400 Subject: [PATCH] - add a comment regarding why __init__ has a return value --- lib/sqlalchemy/orm/instrumentation.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/sqlalchemy/orm/instrumentation.py b/lib/sqlalchemy/orm/instrumentation.py index aa051490cf..7fe3335e0c 100644 --- a/lib/sqlalchemy/orm/instrumentation.py +++ b/lib/sqlalchemy/orm/instrumentation.py @@ -661,7 +661,8 @@ def _generate_init(class_, class_manager): assert original__init__ # Go through some effort here and don't change the user's __init__ - # calling signature. + # calling signature, including the unlikely case that it has + # a return value. # FIXME: need to juggle local names to avoid constructor argument # clashes. func_body = """\ -- 2.39.5