From: Mike Bayer Date: Fri, 10 Sep 2010 00:08:47 +0000 (-0400) Subject: typo #2 X-Git-Tag: rel_0_6_5~75^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d7df1334d0674b63d7e43a8c0ff89ee09b1e2d34;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git typo #2 --- 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