Re: [sqlalchemy] try: except KeyError:

2012-01-27 Thread Michael Bayer
that was likely for performance yes. On Jan 25, 2012, at 5:04 PM, Kent wrote: At some point you changed the InstrumentedAttribute.get() method from try: return dict_[self.key] except KeyError: ... To this: 432 - def get(self, state, dict_, passive=PASSIVE_OFF): 433

[sqlalchemy] try: except KeyError:

2012-01-25 Thread Kent
At some point you changed the InstrumentedAttribute.get() method from try: return dict_[self.key] except KeyError: ... To this: 432 - def get(self, state, dict_, passive=PASSIVE_OFF): 433 Retrieve a value from the given object. 434 435 If a callable is