[issue25326] Improve error message for "character buffer objects"

2015-10-08 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue25326] Improve error message for "character buffer objects"

2015-10-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4d1bd86d3bbd by Raymond Hettinger in branch '2.7': Issue #25326: Improve an obscure error message. https://hg.python.org/cpython/rev/4d1bd86d3bbd -- nosy: +python-dev ___ Python tracker

[issue25326] Improve error message for "character buffer objects"

2015-10-06 Thread Raymond Hettinger
Raymond Hettinger added the comment: Another alternative --- TypeError: expected a string or other character buffer object -- ___ Python tracker ___

[issue25326] Improve error message for "character buffer objects"

2015-10-06 Thread Raymond Hettinger
New submission from Raymond Hettinger: 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')) Trac

[issue25326] Improve error message for "character buffer objects"

2015-10-06 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- components: Interpreter Core files: better_error_message.diff keywords: patch nosy: rhettinger priority: normal severity: normal stage: patch review status: open title: Improve error message for "character buffer objects" versions: Python 2.7 Added file: