https://github.com/python/cpython/commit/21c9c919aa7f217d5e7ad1d1549a556392af2143 commit: 21c9c919aa7f217d5e7ad1d1549a556392af2143 branch: 3.14 author: Miss Islington (bot) <[email protected]> committer: gpshead <[email protected]> date: 2025-11-11T16:13:10-08:00 summary:
[3.14] gh-137952: update `csv.Sniffer().has_header()` docs to describe the actual off-by-onish behavior (GH-137953) (#141434) gh-137952: update `csv.Sniffer().has_header()` docs to describe the actual off-by-onish behavior (GH-137953) * checks 21, not 20 * Say "header" instead of "first row" to disambiguate per review. --------- (cherry picked from commit 0d7b48a8f5de5c1c6d57e1cf7194b6fb222d92e5) Co-authored-by: Maurycy Pawłowski-Wieroński <[email protected]> Co-authored-by: Stan Ulbrych <[email protected]> files: M Doc/library/csv.rst diff --git a/Doc/library/csv.rst b/Doc/library/csv.rst index 3ea7cd210f729d..4a033d823e6a7e 100644 --- a/Doc/library/csv.rst +++ b/Doc/library/csv.rst @@ -295,8 +295,8 @@ The :mod:`csv` module defines the following classes: - the second through n-th rows contain strings where at least one value's length differs from that of the putative header of that column. - Twenty rows after the first row are sampled; if more than half of columns + - rows meet the criteria, :const:`True` is returned. + Twenty-one rows after the header are sampled; if more than half of the + columns + rows meet the criteria, :const:`True` is returned. .. note:: _______________________________________________ Python-checkins mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3//lists/python-checkins.python.org Member address: [email protected]
