The key option to the fast_* functions is intended to be executed when the input cannot be converted. key is usually something that is executed before the algorithm, not after, so this name has always been a bother. I think on_fail is more descriptive of when the function is executed.
key will remain valid but deprecated/discouraged. If both key and on_fail are given, an error will be raised.
The
key
option to thefast_*
functions is intended to be executed when the input cannot be converted.key
is usually something that is executed before the algorithm, not after, so this name has always been a bother. I thinkon_fail
is more descriptive of when the function is executed.key
will remain valid but deprecated/discouraged. If bothkey
andon_fail
are given, an error will be raised.