[Kde-bindings] [bindings] [Bug 333683] PyKDE4 KDialog.None is illegal syntax for python3

Phil Schaf flying-sheep at web.de
Wed Jul 30 11:30:35 UTC 2014


https://bugs.kde.org/show_bug.cgi?id=333683

--- Comment #4 from Phil Schaf <flying-sheep at web.de> ---
Maybe the best idea would be to make SIP/DIP automatically create a
“<keyword>_” property when encountering a python keyword?

because the same problem (but more visibly) also existed for exec() on python
2, which is why PyQt has an exec_() alias for it.

so something like:

for cpp_fieldname in ...:
    field_proxy = ...
    if cpp_fieldname in python_keywords:
        setattr(current_python_class, cpp_fieldname + '_', field_proxy)
    setattr(current_python_class, cpp_fieldname, field_proxy)

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Kde-bindings mailing list