1# Copyright 2006 Vladimir Prus 2# Distributed under the Boost Software License, Version 1.0. 3# (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt) 4 5# Declare a couple of functions called from B2 6# 7# Each function will receive as many arguments as there ":"-separated 8# arguments in bjam call. Each argument is a list of strings. 9# As a special exception (aka bug), if no arguments are passed in bjam, 10# Python function will be passed a single empty list. 11# 12# All Python functions must return a list of strings, which may be empty. 13 14def test1(l): 15 return ["foo", "bar"] 16 17def test2(l, l2): 18 return [l[0], l2[0]]