add cpntributor_database
This commit is contained in:
@ -1,8 +1,8 @@
|
||||
def zip(*args, fillvalue=None):
|
||||
max_length = max([len(arr) for arr in args])
|
||||
result = []
|
||||
for i in range(max_length):
|
||||
result.append([
|
||||
args[k][i] if i < len(args[k]) else None for k in range(len(args))
|
||||
])
|
||||
def zip(*args, fillvalue=None):
|
||||
max_length = max([len(arr) for arr in args])
|
||||
result = []
|
||||
for i in range(max_length):
|
||||
result.append([
|
||||
args[k][i] if i < len(args[k]) else None for k in range(len(args))
|
||||
])
|
||||
return result
|
||||
@ -1,6 +1,6 @@
|
||||
import types,functools
|
||||
from pytape import test
|
||||
from zip import zip
|
||||
def zip_test(t):
|
||||
t.true(isinstance(zip, (types.BuiltinFunctionType, types.FunctionType, functools.partial)),'zip is a function')
|
||||
import types,functools
|
||||
from pytape import test
|
||||
from zip import zip
|
||||
def zip_test(t):
|
||||
t.true(isinstance(zip, (types.BuiltinFunctionType, types.FunctionType, functools.partial)),'zip is a function')
|
||||
test('Testing zip',zip_test)
|
||||
Reference in New Issue
Block a user