Florian Boesch wrote:
My vote on this goes with None as it can-be quite an expected result not to get something from selectone, wheras I see exceptions more of a way to signify problems that indicate contractial missbehavior.
Agreed.
#2 How can selectone return more then one? I mean, selectone *is* the contract...
I meant that the underlying query returned more than one row, which selectone() is detecting and raising an exception about.
Robert ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Sqlalchemy-users mailing list Sqlalchemy-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sqlalchemy-users