"Xavier WARIN(Compte LOCAL) - I23"
Hi ,
I'm trying to move from boost 1.26 to boost 1.28 and i want to change the number of arguments of the functions i can connect to python. Therefore i modified the gen_all.py in libs/python/src (as i did for the 1.26 version) but i get the following error :
python gen_all.py
Traceback (most recent call last): File "gen_all.py", line 24, in ? print gen_all(args) File "gen_all.py", line 9, in gen_all open('callback.hpp', 'w').write(gen_callback(args)) File "gen_callback.py", line 5, in gen_callback return ( File "gen_function.py", line 237, in gen_functions result = result + apply(gen_function, (template, x) + args, keywords) File "gen_function.py", line 216, in gen_function result = result + expand(_gen_common_key(key, n, args, fill)) File "gen_function.py", line 170, in <lambda> expand = (lambda s, n = n: NameError: global name 'args' is not defined
Has somebody done a patch for this problem ?
I don't think so. You might try to see if it's fixed in this unsupported archive of Boost.Python v1: http://www.boost.org/libs/python/build/python_v1.zip
Besides i'd like if there is a maximum number of arguments for the function i want to connect to python with boost 1.29. (i can't move to boost 1.29 now but i plan to do it later).
It's configurable; see http://www.boost.org/libs/python/doc/v2/configuration.html HTH, -- David Abrahams dave@boost-consulting.com * http://www.boost-consulting.com Building C/C++ Extensions for Python: Dec 9-11, Austin, TX http://www.enthought.com/training/building_extensions.html