Did I find the right examples for you? yes no

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)
Like L{incr}, but decrements.  Unlike L{incr}, underflow is checked and
new values are capped at 0.  If server value is 1, a decrement of 2
returns 0, not -1.

@param delta: Integer amount to decrement by (should be zero or greater).
@return: New value after decrementing or None on error.
@rtype: int

src/m/e/memcache-debug-panel-HEAD/test/__init__.py   memcache-debug-panel(Download)
        self.assertLastCall('incr', incr, 'simple incr')
        # decr
        self.assertFalse(client.decr(non_existent), 'simple decr, non-existent')
        self.assertLastCall('decr', non_existent, 'simple decr, non-existent')
        count -= 1
        self.assertEquals(client.decr(incr), count, 'simple decr')

src/c/a/Cache-Debug-Toolbar-HEAD/test/__init__.py   Cache-Debug-Toolbar(Download)
        self.assertLastCall('incr', incr, 'simple incr')
        # decr
        self.assertFalse(client.decr(non_existent), 'simple decr, non-existent')
        self.assertLastCall('decr', non_existent, 'simple decr, non-existent')
        count -= 1
        self.assertEquals(client.decr(incr), count, 'simple decr')