since create_engine deals with class constructors, i went with this approach:
def get_cls_kwargs(cls): """return the full set of legal kwargs for the given cls""" kw = [] for c in cls.__mro__: cons = c.__init__ if hasattr(cons, 'func_code'): for vn in cons.func_code.co_varnames: if vn != 'self': kw.append(vn) return kw so now you get these luxurious TypeErrors if you send any combination of invalid arguments: TypeError: Invalid argument(s) 'lala','hoho' sent to create_engine(), using configuration PGDialect/QueuePool/Engine. Please check that the keyword arguments are appropriate for this combination of components. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to sqlalchemy@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en -~----------~----~----~----~------~----~------~--~---