Issue 25326: Improve error message for "character buffer objects" (original) (raw)
Python 2.7.10+ (2.7:fc6d62db8d42+, Oct 6 2015, 11:55:10) [GCC 4.2.1 Compatible Apple LLVM 7.0.0 (clang-700.0.72)] on darwin Type "help", "copyright", "credits" or "license" for more information.
s = 'the tale of two cities' s.count(('a', 'z')) Traceback (most recent call last): File "", line 1, in TypeError: expected a character buffer object (such as a string)
new text ---------------------------------^^^^^^^^^^^^^^^^^^^