[issue18829] csv produces confusing error message when passed a non-string delimiter
Vajrasky Kok
report at bugs.python.org
Sat Sep 7 13:04:09 CEST 2013
Vajrasky Kok added the comment:
I noticed in CPython source code, when we print the type of the object, we use "%.200s" not "%s". For example, in Modules/posixmodule.c:
"uid should be integer, not %.200s",
So the newest path was created to conform with this tradition.
Another thing I noticed, there are two ways to get the type of object:
1. src->ob_type->tp_name
2. Py_TYPE(src)->tp_name
Both are widely used. So I am not sure which is the best way. I leave it alone this issue.
----------
Added file: http://bugs.python.org/file31642/fix_error_message_reader_csv_alternative_1_v7.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18829>
_______________________________________
More information about the Python-bugs-list
mailing list