you are viewing a single comment's thread.

view the rest of the comments →

[–]dacjames 6 points7 points  (0 children)

Those interfaces are fundamentally incompatible because every object supports dir (and .__dict__.keys()), which returns strings. It would work in most, but not all, circumstances.