Commits

jason kirtland  committed 1cb4dc7

Removed inlining for list.append.

  • Participants
  • Parent commits c4e28bb

Comments (0)

Files changed (1)

File lib/sqlalchemy/orm/collections.py

 
     def append(fn):
         def append(self, item, _sa_initiator=None):
-            # fully inlining __set and adapter.fire for this critical path
-            if _sa_initiator is not False and item is not None:
-                executor = getattr(self, '_sa_adapter', None)
-                if executor:
-                    executor.attr.fire_append_event(executor.owner_state,
-                                                    item, _sa_initiator)
+            __set(self, item, _sa_initiator)
             fn(self, item)
         _tidy(append)
         return append
     None: { }
     }
 
-
 class MappedCollection(dict):
     """A basic dictionary-based collection class.