I am adding some comments on this line of code.
# param winname cannot be null, neither can be empty string ''
imshow(winname, mat) -> None
in this case, is it clear, grammatical and idiomatic to use "neither can be"?
I am adding some comments on this line of code.
# param winname cannot be null, neither can be empty string ''
imshow(winname, mat) -> None
in this case, is it clear, grammatical and idiomatic to use "neither can be"?
This use is not clear. You have a few options:
Although this is a comment, it also looks a bit like an error message. If so, I'd make it into two error messages, one for each case.