> joostje@muso:~/ar$ swig -python example.i > /usr/share/swig1.3/python/std_common.i:9: Error: Syntax error in input(1). At least when giving the -c++ argument to swig it works better: joostje@muso:~/ar$ swig -python -c++ example.i doesn't look ideal (should accept same arguments for all languages, I guess), but at least it works.