need to decide behavior here:
from sqlalchemy import *
from sqlalchemy.orm import *
from sqlalchemy.ext.declarative import declarative_base
Base= declarative_base()
class Character(Base):
__tablename__ = "characters"
id = Column(Integer, primary_key=True)
s = Session()
c1 = Character()
s.add(c1)
del s
import gc
gc.collect()
assert object_session(c1) is None
s2 = Session()
s2.add(c1)
raises an error ? or implicit detachment from s?
and the patch to change this for "implicit detachment" is simply this