__init__(self,
line,
format,
length=80)
(Constructor)
|
|
- Parameters:
line - either a sequence of Python objects, or a string formatted
according to Fortran rules
format - either a Fortran-style format string, or a FortranFormat object. A FortranFormat should be
used when the same format string is used repeatedly, because then
the rather slow parsing of the string is performed only once.
length - the length of the Fortran record. This is relevant only when data
is a string; this string is then extended by spaces to have the
indicated length. The default value of 80 is almost always
correct.
|