bpo-34197: Make _csv.Dialect attributes booleans. (GH-8440) · pythoncapi/cpython@323748a · GitHub
Skip to content

Commit 323748a

Browse files
bpo-34197: Make _csv.Dialect attributes booleans. (pythonGH-8440)
Attributes skipinitialspace, doublequote and strict are now booleans instead of integers 0 or 1.
1 parent ecf411c commit 323748a

3 files changed

Lines changed: 38 additions & 36 deletions

File tree

Lib/test/test_csv.py

Lines changed: 19 additions & 21 deletions
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Attributes *skipinitialspace*, *doublequote* and *strict* of the *dialect*
2+
attribute of the :mod:`csv` reader are now :class:`bool` instances instead
3+
of integers 0 or 1.

Modules/_csv.c

Lines changed: 16 additions & 15 deletions

0 commit comments

Comments
 (0)