source_codes = 0, 1, 2

def callback(source, *args):
    print('callback from source: ', source)
funcs = []
for source in source_codes:
    funcs.append(partial(callback, source))
source = 30
for i, func in enumerate(funcs):
    print('source expected: ', i)
func()
print()
не удалось обернуть функцию лямбдой