summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorAndrew McNamara <andrewm@object-craft.com.au>2005-01-12 11:17:16 (GMT)
committerAndrew McNamara <andrewm@object-craft.com.au>2005-01-12 11:17:16 (GMT)
commit7f2053eff3ec1ee9084a3a550ae363a804368322 (patch)
tree8ae5c4d637feab5886fca99be4486653ce4a3b7d /Misc
parent0f0599ddc1ad02f392fe0be58479f34c57a80c8d (diff)
downloadcpython-7f2053eff3ec1ee9084a3a550ae363a804368322.zip
cpython-7f2053eff3ec1ee9084a3a550ae363a804368322.tar.gz
cpython-7f2053eff3ec1ee9084a3a550ae363a804368322.tar.bz2
Add counting of source iterator lines to the reader object - handy for
user error messages (otherwise difficult to do without instrumenting the source).
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS4
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 828063a..26edc89 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -66,6 +66,10 @@ Library
+ A new module method csv.field_size_limit() has been added that sets
the parser field size limit (returning the former limit). The initial
limit is 128kB.
+ + A line_num attribute has been added to the reader object, which tracks
+ the number of lines read from the source iterator. This is not
+ the same as the number of records returned, as records can span
+ multiple lines.
+ reader and writer objects were not being registered with the cyclic-GC.
This has been fixed.