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"?
English Language Learners Stack Exchange is a question and answer site for speakers of other languages learning English. It only takes a minute to sign up.Sign up to join this community
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.