Package Scientific :: Package IO :: Module FortranFormat :: Class FortranFormat
[hide private]
[frames] | no frames]

Class FortranFormat



Parsed Fortran-style format string

FortranFormat objects can be used as arguments when constructing FortranLine objects instead of the plain format string. If a format string is used more than once, embedding it into a FortranFormat object has the advantage that the format string is parsed only once.

Instance Methods [hide private]
  __getitem__(self, i)
  __init__(self, format, nested=False)
  __len__(self)

Method Details [hide private]

__getitem__(self, i)
(Indexing operator)

 

__init__(self, format, nested=False)
(Constructor)

 
Parameters:
  • format (str) - a Fortran format specification
  • nested - for internal use

__len__(self)
(Length operator)