[issue27672] x fromat of % operator broken in Python 3.5.2

2016-08-03 Thread Peter Tomcsanyi
New submission from Peter Tomcsanyi: In Python 3.4.4 (64-bit) and in many previous versions it worked like this: >>> "%02x" % 12.99 '0c' Now in Python 3.5.2 (64-bit) it shows an error: >>> "%02x" % 12.99 Traceback (most recent call last): File

[issue27672] x fromat of % operator broken in Python 3.5.2

2016-08-03 Thread Peter Tomcsanyi
Peter Tomcsanyi added the comment: So it is even worse, it is an "intentional break". I will need to review a few thousands lines of code because of this. I think that breaking others' code by redefining a "built-in" operator is acceptable when changing major versions