bundles / numpy 2.5.0.dev0+git20251130.2de293a / numpy / lib / _iotools / StringConverter / update
function
numpy.lib._iotools:StringConverter.update
source: build-install/usr/lib/python3.14/site-packages/numpy/lib/_iotools.py :766
Signature
def update ( self , func , default = None , testing_value = None , missing_values = '' , locked = False ) Summary
Set StringConverter attributes directly.
Parameters
func: functionConversion function.
default: any, optionalValue to return by default, that is, when the string to be converted is flagged as missing. If not given, StringConverter tries to supply a reasonable default value.
testing_value: str, optionalA string representing a standard input value of the converter. This string is used to help defining a reasonable default value.
missing_values: {sequence of str, None}, optionalSequence of strings indicating a missing value. If
None, then the existingmissing_valuesare cleared. The default is''.locked: bool, optionalWhether the StringConverter should be locked to prevent automatic upgrade or not. Default is False.
Notes
update takes the same parameters as the constructor of StringConverter, except that func does not accept a dtype whereas dtype_or_func in the constructor does.
Aliases
-
numpy.lib._iotools.StringConverter.update