python - Alternative name for a keyword only parameter "in_" -
i have find
function receives optional keyword in_
parameter narrow search space. unfortunately, had add trailing underscore distinguish python's in
keyword. don't want expose such oddly named parameter, there better names use?
english not first language, hoping there better option. thanks
use within
.
find("needle", within="haystack")
Comments
Post a Comment