Comment 13 for bug 1008898

Revision history for this message
In , Simon McVittie (smcv) wrote :

Created attachment 62596
Py3: correctly guess the signature of ObjectPath(...) and Signature(...)

Under Python 2, ObjectPath and Signature are subtypes of str (= bytes),
and the existing type-guessing worked.

The type-guessing code assumed that all unicode objects were just
strings, but that assumption became false in the Python 3 port:
ObjectPath and Signature are still subtypes of str, but str now means
unicode, not bytes.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=50740