Why does str.split not take keyword arguments?

See this bug and its superseder.

str.split() is a native function in CPython, and as such exhibits the behavior described here:

CPython implementation detail: An implementation may provide built-in
functions whose positional parameters do not have names, even if they
are ‘named’ for the purpose of documentation, and which therefore
cannot be supplied by keyword. In CPython, this is the case for
functions implemented in C that use PyArg_ParseTuple() to parse their

Leave a Comment