Python programming language documentation contains this sentence describing a
function argument usage:

> モックが特定の呼び出しで呼ばれたことをアサートします。呼び出しでは _mock_calls_ のリストがチェックされます。
>
> _any_order_ が _false_
> の場合(デフォルト)、呼び出しは連続していなければなりません。指定された呼び出しの前、あるいは呼び出しの後に余分な呼び出しがある場合があります。

The last sentence sounds to me like having a meaning like this.

> There are cases when there are extra calls before or after the specified
> calls.

The original English description is worded:

> There can be extra calls before or after the specified calls.

Which can be understood as proposed above. Like, I specify some expected calls
and there is a possibility of the _mock_calls_ list containing some extra.

But the actual meaning of the “there can be” is different here. It means that
the assertion succeeds even if there are extra calls. Like, you can use it
even if there are more calls than those specified. And in this sense, the
Japanese translation seems to me like it doesn’t fit.

Can “場合がある” convey this meaning of possibility of doing something under given
circumstances? It it a mistranslation? I’d expect something more like

> […]余分な呼び出しがあってもいいです。
CC BY-SA 4.0
2021-11-25T17:14:46.220
91342
2021-11-25T20:25:47.850
10104
question
translation programming
Can 場合がある mean “you can”?
I _think_ it's just a mistranslation. Out of context, that sentence can
technically mean both. I've looked at Python's
[translations](https://www.python.org/dev/peps/pep-0545/) projects and they
seem to be done by the community, so it could've been anyone. In fact, there
is already an [issue](https://github.com/python-doc-ja/python-doc-
ja/issues/897) opened for the mock package on the Github project, so I
wouldn't be surprised if there's more. You could open a new issue linking this
question.
CC BY-SA 4.0
2021-11-25T20:20:03.707
91345
2021-11-25T20:25:47.850
2021-11-25T20:25:47.850
45176
45176
91342
answer