bundles / numpy 2.5.0.dev0+git20251130.2de293a / numpy / f2py / crackfortran / character_backward_compatibility_hook
function
numpy.f2py.crackfortran:character_backward_compatibility_hook
source: build-install/usr/lib/python3.14/site-packages/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