Hi,

In bug 923[1], I've proposed that QScriptValue should become iterable
in Python - there are a few different variants proposed on how this
could work. I'd like to hear some feedback on which variant you would
prefer:

== Variant 1 ==
for key, value in some_script_value:
    print key, '->', value

== Variant 2 ==
for key, value in QScriptValueIterator(some_script_value):
    print key, '->', value

== Variant 3 ==
for key in some_script_value:
    print key, '->', some_script_value.property(key)

For more information, please have a look at the bug page. Other
variant suggestions are also welcome :)

Thanks,
Thomas

[1] http://bugs.pyside.org/show_bug.cgi?id=923
_______________________________________________
PySide mailing list
[email protected]
http://lists.pyside.org/listinfo/pyside

Reply via email to