Message327295
> I have tweaked that fixer to handle the pointed cases
> and a few additional ones too
Playing whack-a-mole with a few cases will always fall short of being able to guarantee correct transformations and not break existing code that is working correctly.
One possibility is to add a type check to the generated code, "send(x)" -> send(x.encode() if type(x)==bytes else x)" but this has its own issues and isn't satisfying. |
|
Date |
User |
Action |
Args |
2018-10-07 17:53:29 | rhettinger | set | recipients:
+ rhettinger, benjamin.peterson, serhiy.storchaka, xtreak, devarakondapranav |
2018-10-07 17:53:29 | rhettinger | set | messageid: <1538934809.13.0.545547206417.issue34893@psf.upfronthosting.co.za> |
2018-10-07 17:53:29 | rhettinger | link | issue34893 messages |
2018-10-07 17:53:29 | rhettinger | create | |
|