[PyQt] %MappedType with non-class template arg?

Phil Thompson phil at riverbankcomputing.com
Thu Sep 9 15:35:00 BST 2010


On Thu, 9 Sep 2010 16:17:58 +0200, Hans Meine
<meine at informatik.uni-hamburg.de> wrote:
> Hi,
> 
> I was happy when I saw that %MappedType supports templates, but then I 
> realized that I could not use it for my multi-dimensional array type [1]
> since 
> it does not support non-class arguments (integer dimension in my case).
>
> Would that be hard to fix?

It does support non-class arguments. It doesn't support the ability for a
particular argument to be either a class or a non-class.
 
> It would be helpful to at least find a workaround that allows me to
> hard-code 
> the dimension, but map different value_types at once.
> 
> Have a nice day,
>  Hans
> 
> [1] http://tinyurl.com/NumpyArray is what I am dealing with

I don't see the problem with this. Compare with PyQt's QPair<TYPE, int>
where TYPE is a class.

Phil


More information about the PyQt mailing list