On 8/14/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > im not sure try/except is faster here - im pretty sure a missing > > key is likely and exception throws are very expensive. would be > > worth a try to see if the missing key exception actually occurs > > here. > i'll have to check, last 3 years i've being doing everything assuming > that a (lookup:exception) is faster than > (lookup-if-lookup:lookup-else) in both attribute and dict lookups.
Only if, like Mike said, the common case is for the key to be present. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---