[issue24787] csv.Sniffer guesses "M" instead of \t or , as the delimiter

R. David Murray report at bugs.python.org
Wed Aug 5 00:51:58 CEST 2015


R. David Murray added the comment:

If you look at the algorithm it is doing some fancy things with metrics, but does have a 'preferred delimiters' list that it checks.  It is possible things could be improved either by tweaking the threshold or by somehow giving added weight to the metrics when the candidate character is in the preferred delimiter list.

We might have to do this with a feature flag to turn it on, though, since it could change the results for programs that happen to work with the current algorithm.

----------
nosy: +r.david.murray

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24787>
_______________________________________


More information about the Python-bugs-list mailing list