• Kevin Modzelewski's avatar
    Set initialization in init instead of new · 35c8b3f9
    Kevin Modzelewski authored
    Sqlalchemy subclasses set, and overrides __init__ and does some
    custom initialization there.  We were doing the initialization in
    __new__, which works most of the time, except if a generator was
    passed since then sqlalchemy's initialization will see what looks
    like an empty generator since we already consumed it.
    
    So move the initialization to init.  Except for frozenset which still
    needs to do it in new.
    35c8b3f9
set.cpp 20.2 KB