Light Mode
Dark Mode
Clarification on precondition

Hi!

For translation purpose:

To my view, first precondition seems incorrect and a bit misleading.

0 < text <= 256

I suppose it means:

0 < len(text) <= 256

Or maybe:

all(0 < ord(char) <= 256 for char in text)

Which one is correct?

Created: Oct. 7, 2014, 11:21 a.m.
Updated: Oct. 7, 2014, 11:58 a.m.
1
34
User avatar
DiZ