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 / lib / _iotools / StringConverter / upgrade

function

numpy.lib._iotools:StringConverter.upgrade

source: build-install/usr/lib/python3.14/site-packages/numpy/lib/_iotools.py :726

Signature

def   upgrade ( self value )

Summary

Find the best converter for a given string, and return the result.

Extended Summary

The supplied string value is converted by testing different converters in order. First the func method of the StringConverter instance is tried, if this fails other available converters are tried. The order in which these other converters are tried is determined by the _status attribute of the instance.

Parameters

value : str

The string to convert.

Returns

out : any

The result of converting value with the appropriate converter.

Aliases

  • numpy.lib._iotools.StringConverter.upgrade