Vajrasky Kok added the comment:
Here is the patch to address Serhiy's request.
Hmmm, if string means both string and unicode in Python 2.7, should we fix
these behaviours?
>>> import _csv
>>> _csv.register_dialect(2)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: dialect name must be a string or unicode
>>> ' cute cat '.strip(3)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: strip arg must be None, str or unicode
>>> import sqlite3
>>> conn = sqlite3.connect(':memory:')
>>> c = conn.cursor()
>>> c.execute(3)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError: operation parameter must be str or unicode
----------
Added file:
http://bugs.python.org/file33148/better_error_message_struct_python_34_and_33_v2.patch
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue19985>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com