Message342486
hitting this in https://bugs.python.org/issue36917?
Is the simplification here really worth the breaking change to consumers?
I now have to write something that's essentially this to work around this which feels more like the complexity has just been pushed to users instead of the stdlib:
def visit_Constant(self, node):
if isinstance(node.value, str):
self.visit_Str(node)
elif isinstance(node.value, bytes):
self.visit_Bytes(node)
elif node.value in {True, False}:
self.visit_NameConstant(node)
elif node.value is Ellipsis:
self.visit_Ellipsis(node)
elif isinstance(node.value, (int, float)):
self.visit_Num(node)
else:
# etc... |
|
Date |
User |
Action |
Args |
2019-05-14 16:52:56 | Anthony Sottile | set | recipients:
+ Anthony Sottile, brett.cannon, nascheme, ncoghlan, vstinner, benjamin.peterson, jwilk, njs, serhiy.storchaka, yselivanov, mbussonn, hroncok, thautwarm |
2019-05-14 16:52:56 | Anthony Sottile | set | messageid: <1557852776.41.0.421716387578.issue32892@roundup.psfhosted.org> |
2019-05-14 16:52:56 | Anthony Sottile | link | issue32892 messages |
2019-05-14 16:52:56 | Anthony Sottile | create | |
|