This is a pre-release version (2.5.0.dev0+git20251130.2de293a). Go to latest (2.4.4)
{ } Raw JSON

bundles / numpy 2.5.0.dev0+git20251130.2de293a / numpy / f2py / crackfortran / readfortrancode

function

numpy.f2py.crackfortran:readfortrancode

source: build-install/usr/lib/python3.14/site-packages/numpy/f2py/crackfortran.py :356

Signature

def   readfortrancode ( ffile dowithline = <function pprint at 0x0000> istop = 1 )

Summary

Read fortran codes from files and

  • Get rid of comments, line continuations, and empty lines; lower cases.

  • Call dowithline(line) on every line.

  • Recursively call itself when statement "include '<filename>'" is met.

Aliases

  • numpy.f2py.crackfortran.readfortrancode