BUG: dict.iteritems() not supported in python 3
This is a fix for Python wrapping using Python 3. The for loop on a dictionary has been rewritten in a more generic way (compatible with python 2 and 3).
This is a fix for Python wrapping using Python 3. The for loop on a dictionary has been rewritten in a more generic way (compatible with python 2 and 3).
This is slower. What about for param_key, param_value in dict_params.items():
, which works in both Python 2 and 3 (but is slower in 2)?
Yes it also works. If I understand correctly, your solution is faster on Python3 but slower on Python2.
Yes, which is fine, I think (since we're planning to drop Python 2 support one day). It's slower there because it's allocating a list.
merged
mentioned in commit af7abaa7