{ } Raw JSON

bundles / numpy 2.4.4 / numpy / lib / _datasource / _check_mode

function

numpy.lib._datasource:_check_mode

source: /numpy/lib/_datasource.py:44

Signature

def _check_mode(mode, encoding, newline)

Summary

Check mode and that encoding and newline are compatible.

Parameters

mode : str

File open mode.

encoding : str

File encoding.

newline : str

Newline for text files.

Aliases

  • numpy.lib._datasource._check_mode