Bug Report - Dictionary.getKey limits value size

Supporting 2.7 and 3.2+
Fresh meat
Posts: 2
Joined: Sat Jun 30, 2012 11:06 am

Bug Report - Dictionary.getKey limits value size

Postby nonbiostudent » Sat Jun 30, 2012 11:22 am

I am using V2.1.8 of the Phidgets Python API. I was a bit surprised when sending large strings between a server and client application through a WebService Dictionary that the Python Dictionary.getKey() method clips strings to 1024 characters.

Can I suggest adding a max_size keyword argument to the getKey method to allow large strings to be retrieved if necessary? See attached patch file for my implementation.

patch file for adding large value (>1024 characters) support to the Dictionary.getKey() method. (I wasn't allowed to upload a .patch file, so I've changed the extension to .txt instead)
(2.44 KiB) Downloaded 177 times

Return to “Python”

Who is online

Users browsing this forum: No registered users and 0 guests