[Python-checkins] python/dist/src/Misc NEWS,1.1222,1.1223

andrewmcnamara at users.sourceforge.net andrewmcnamara at users.sourceforge.net
Wed Jan 12 12:17:23 CET 2005

Update of /cvsroot/python/python/dist/src/Misc
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27851/Misc

Modified Files:
Log Message:
Add counting of source iterator lines to the reader object - handy for
user error messages (otherwise difficult to do without instrumenting
the source).

Index: NEWS
RCS file: /cvsroot/python/python/dist/src/Misc/NEWS,v
retrieving revision 1.1222
retrieving revision 1.1223
diff -u -d -r1.1222 -r1.1223
--- NEWS	12 Jan 2005 09:45:18 -0000	1.1222
+++ NEWS	12 Jan 2005 11:17:16 -0000	1.1223
@@ -66,6 +66,10 @@
   + 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.

More information about the Python-checkins mailing list