1. 04 Sep, 2015 2 commits
    • 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
    • Kevin Modzelewski's avatar
      Change str.add type-checking behavior · 57c9d8ed
      Kevin Modzelewski authored
      In CPython, str.add directly throws a TypeError since it is implemented
      as a sq_concat.  sqlalchemy relies on being able to do str()+MyStr() and
      use MyStr.__radd__ to handle the addition.  We were throwing a TypeError
      but not implementing it in sq_concat.
      
      So instead, return NotImplemented instead of directly throwing a TypeError.
      This makes '+' more compatible but str.__add__ a bit less compatible.
      57c9d8ed
  2. 03 Sep, 2015 2 commits
  3. 02 Sep, 2015 9 commits
  4. 01 Sep, 2015 18 commits
  5. 30 Aug, 2015 1 commit
  6. 29 Aug, 2015 8 commits