Please correct me if I'm mistaken and let me know if there is a better way:
if attributes.instance_state(instance).has_identity: instance is Persistent or Detached if attributes.instance_state(instance).session_id: instance is Pending or Persistent Thanks, Kent -- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to [email protected]. 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.
