[PyQt] Type map for python to Qt?

Barry barry at barrys-emacs.org
Sat Feb 4 17:50:17 GMT 2017


> On 3 Feb 2017, at 22:19, Shaheed Haque <srhaque at theiet.org> wrote:
> 
> fixed size arrays (1D for now, maybe more later). For the fixed size arrays, I'm looking for input on how to represent them in Python, i.e. as tuples or lists. My instinct is to go with tuples, but would be interested to hear other ideas.

If the array has read only values the a tuple is ok. But if i can write values it must be a list API.
You can implement a list whoes size cannot be changed with python C API.

Barry




More information about the PyQt mailing list