Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

        def non_negative(int_val):
    if int_val < 0:
        # Coerce to non-negative.
        int_val &= 0x7FFFFFFFFFFFFFFF
    return int_val
        


src/b/t/BTrees-4.0.8/BTrees/tests/test_utils.py   BTrees(Download)
    def _callFUT(self, int_val):
        from BTrees.utils import non_negative
        return non_negative(int_val)
 
    def test_w_big_negative(self):