This reverts a feature introduced in commit
2a5d497494c24425e99655b85e2277dd3f15a400. The goal of that commit was to
allow StringAttrs to by used transparently wherever Python strs are
expected. But, as the tests in https://reviews.llvm.org/D159182 reveal,
pybind11 doesn't do this conversion based on __str__ automatically,
unlike for the other types introduced in the commit above. At the same
time, changing __str__ breaks the symmetry with other attributes of
print(attr) printing the assembly of the attribute, so the change
probably has more disadvantages than advantages.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo