
20.10.20 12:54, J. Pic пише:
At the same time, Guido says he can remove that cost for no extra cost, so there's that: how do we find a good reason to not remove a cost for free ? Sounds like a win/win situation, both for most users and for the new pegparser.
It may have closer to zero cost of the initial implementation, but the cost of maintaining, supporting in different standard and third-party modules, teaching and learning, and using is far from zero. Just look how many special cases Python 2 print has: print without arguments, printing a tuple, print >>, print with trailing comma. And the latter feature ("soft" space) is not supported by files in Python 3, so you would need to change them too, and all file-like objects in the world. Getting rid of the print statement was one of the largest achievements of Python 3 (after all-unicode).