{ } Raw JSON

bundles / numpy 2.4.4 / numpy / f2py / crackfortran / character_backward_compatibility_hook

function

numpy.f2py.crackfortran:character_backward_compatibility_hook

source: /numpy/f2py/crackfortran.py :3589

Signature

def   character_backward_compatibility_hook ( item parents result * args ** kwargs )

Summary

Previously, Fortran character was incorrectly treated as character*1. This hook fixes the usage of the corresponding variables in check, dimension, =, and callstatement expressions.

Extended Summary

The usage of char* in callprotoargument expression can be left unchanged because C character is C typedef of char, although, new implementations should use character* in the corresponding expressions.

See https://github.com/numpy/numpy/pull/19388 for more information.

Aliases

  • numpy.f2py.crackfortran.character_backward_compatibility_hook