[C++-sig] tuple, list, dict, et. al

David Abrahams david.abrahams at rcn.com
Wed Jun 26 22:29:16 CEST 2002


From: "Niki Spahiev" <niki at vintech.bg>

> > Answer 2:
> >
> >     The function matches if the actual argument is any Python sequence;
> >     tuple(arg) will be applied to retrieve the tuple object used inside
> >     the wrapped function
>
> When i start with pure python prototype all functions behave like Answer
> 2. If later some of them are replaced with C++ code i expect it to
> behave the same.

But getting that functionality is easy. Just use an argument of type
"object".

-Dave







More information about the Cplusplus-sig mailing list