From d7df1334d0674b63d7e43a8c0ff89ee09b1e2d34 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Thu, 9 Sep 2010 20:08:47 -0400 Subject: [PATCH] typo #2 --- doc/build/orm/collections.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/build/orm/collections.rst b/doc/build/orm/collections.rst index 4ef6b07245..7f585fc507 100644 --- a/doc/build/orm/collections.rst +++ b/doc/build/orm/collections.rst @@ -352,8 +352,8 @@ rare cases:: @collection.internally_instrumented def __delitem__(self, key, _sa_initiator=None): - # do something with key, value - super(MyMappedCollection, self).__delitem__(key, value, _sa_initiator) + # do something with key + super(MyMappedCollection, self).__delitem__(key, _sa_initiator) The ORM understands the ``dict`` interface just like lists and sets, and will automatically instrument all dict-like methods if you choose to subclass -- 2.47.2