@@ -314,8 +314,8 @@ The :mod:`!csv` module defines the following classes:
314314
315315 If several delimiters fit the sample equally well ---
316316 for example if both ``',' `` and ``';' `` split every row consistently ---
317- the delimiters `` ',' ``, `` '\t' ``, `` ';' ``, `` ' ' `` and `` ':' ``
318- are preferred, in this order,
317+ the delimiters listed in the :attr: ` ~Sniffer.preferred ` attribute
318+ are preferred, in that order,
319319 no matter how many times each of them occurs.
320320
321321 .. method :: has_header(sample)
@@ -337,6 +337,15 @@ The :mod:`!csv` module defines the following classes:
337337 This method is a rough heuristic and may produce both false positives and
338338 negatives.
339339
340+ The :class: `Sniffer ` class has the following attribute:
341+
342+ .. attribute :: preferred
343+
344+ The list of the delimiters preferred for breaking ties,
345+ in the order of preference.
346+ It can be modified.
347+ Its initial value is ``[',', '\t', ';', ' ', ':'] ``.
348+
340349An example for :class: `Sniffer ` use::
341350
342351 with open('example.csv', newline='') as csvfile:
0 commit comments