On Nov 17, 2008, at 4:23 PM, Faheem Mitha wrote:
> > > Hi, > > [I was told on IRC this was not worth bothering with, but since I've > already written it, I'm sending this out. Please ignore if useless.] > > I mistakenly did > > query = session.query(Patient).filter_by(id=="John").all() > > and got the curious response: > > TypeError: filter_by() takes exactly 1 argument (2 given) > > The correct syntax is > > query = session.query(Patient).filter_by(id="John").all() > > Can anything be done to make this a clearer error message? that is a Python error message generated based on the argument signature of filter_by(), so its not possible. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---