2

I have a find function that receives a optional keyword only in_ parameter to narrow the search space. Unfortunately, I had to add the trailing underscore to distinguish it from Python's in keyword. I don't want to expose such an oddly named parameter, are there any better names I could use?

English is not my first language, so I am hoping there is a clearly better option. Thanks

4

1 回答 1

5

使用within.

find("needle", within="haystack")

于 2013-07-17T21:22:57.430 回答