I came upon a bit of third party Python code that read:
count = [remaining, readlen][remaining > readlen]
After staring at it for a bit, I have to ask: are there any cases where this construct is NOT equivalent to:
count = min(readlen, remaining)
i.e. are there there any functional differences between the two?