[C++-sig] make tupel/list convertible to class

Achim Domma achim.domma at syynx.de
Sat Dec 14 11:11:31 CET 2002


Hi,

I have a class Color with different ctors. One of them is
Color(int,int,int). If I now have a function 'void blabla(Color)' I want to
make it callable from Python as 'blabla((10,20,30))'. What would be the best
way to go?

regards,
Achim






More information about the Cplusplus-sig mailing list