On Fri, Apr 15, 2011 at 5:10 PM, Hugo Parente Lima
<[email protected]> wrote:
>
>> 2. Clean roundtripping behavior (silently taking False and turning it
>> into u'false' -- a true value in python! -- is very dangerous).  I'd
>> rather get a ValueError when trying to set the value than have it get
>> silently coerced to a string like that.
>
> You need to understand that the problem isn't in PySide itself, the problem is
> in Qt that stores every type as string in QSettings no matter if it's a bool,
> a int, etc..

Is it possible to provide a wrapper on a Py.side that serializes
values with type information and recommend to use it?
If it is not possible, it may be possible to require string arguments
to setValue(). Because u'false' == true is definitely weird and
reminds me of PHP.
--
anatoly t.
_______________________________________________
PySide mailing list
[email protected]
http://lists.pyside.org/listinfo/pyside

Reply via email to