[issue6396] '' % object() raises TypeError, '' % A() does not

2017-09-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: The issue History suggests that the original report was marked for 2.6, 3.0, 3.1. It is not clear which versions the OP or anyone else tested. I removed the versions above and added 3.2, 3.3 after reporting a test on 3.2.0. I did not report 2.7 behavior

[issue6396] '' % object() raises TypeError

2017-09-05 Thread Cheryl Sabella
Cheryl Sabella added the comment: Under 3.7, the examples Terry gave now have consistent results. >>> '' % A() Traceback (most recent call last): File "", line 1, in TypeError: not all arguments converted during string formatting >>> '' % object() Traceback (most recent call last): File

[issue6396] '' % object() raises TypeError

2014-10-04 Thread Francis MB
Changes by Francis MB franci...@email.de: -- type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6396 ___ ___ Python-bugs-list mailing

[issue6396] '' % object() raises TypeError

2011-06-26 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: The original bug claim is invalid. But the following (3.2.0, winxp) strike me as a bug, hence the title change class A: pass '' % A() '' '' % object() ... TypeError: not all arguments converted during string formatting More difference: