This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author thomas
Recipients thomas
Date 2019-04-01.13:54:16
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1554126856.48.0.397677994988.issue36497@roundup.psfhosted.org>
In-reply-to
Content
When the Sniffer detects more than one possible delimiter, as e.g. in the following file

"a;b;c;d,e;f;g;h"

the result will always be the ',' delimiter, independent of how "dominant" another delimiter is. This is because the codepath analyzing dominance will only get executed if the undocumented Sniffer member Sniffer.preferred is overwritten by the user after initialization.

While not strictly a bug, the behavior should probably be documented, and the 'preferred' member could be exposed as an argument in __init__() perhaps?
History
Date User Action Args
2019-04-01 13:54:16thomassetrecipients: + thomas
2019-04-01 13:54:16thomassetmessageid: <1554126856.48.0.397677994988.issue36497@roundup.psfhosted.org>
2019-04-01 13:54:16thomaslinkissue36497 messages
2019-04-01 13:54:16thomascreate