Python Library Reference
Previous: Up: 9.1 csv Next:

9.1.3 Reader Objects

Reader objects (DictReader instances and objects returned by the reader() function) have the following public methods:

next( )
Return the next row of the reader's iterable object as a list, parsed according to the current dialect.

Reader objects have the following public attributes:

dialect
A read-only description of the dialect in use by the parser.

line_num
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.


Python Library Reference
Previous: Up: 9.1 csv Next:

Release 2.5, documentation updated on 19th September, 2006.
See About this document... for information on suggesting changes.

AltStyle によって変換されたページ (->オリジナル) /