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

All Samples(5)  |  Call(4)  |  Derive(0)  |  Import(1)
partial(func, *args, **keywords) - new function with partial application
of the given arguments and keywords.

src/l/i/list115utils-1.0.1/list115utils/test/test_listutils.py   list115utils(Download)
        self.assertSequenceEqual(list(empty_lists(0)), [])
 
from list115utils import listor_
class TestListOr_(TestListUtils):
    def test_listor__with_zeros_and_mixed_integers(self):
        self.assertEqual(listor_([0,0,3,0]), 3)
 
    def test_listor__with_false_items_only(self):
        self.assertFalse(listor_([False, False, False]))
    def test_listor__with_mixed_booleans(self):
        self.assertTrue(listor_([True, False]))
 
    def test_listor__with_non_zero_integers(self):
        self.assertEqual(listor_([-1,3,4]), -1)