News for hackers. Stuff that matters.
Re:A Python Optimization Anecdote by JesseAldridge on Tuesday October 25, 2011 @12:39PM (#3154707)
You could do that in Python using the ord function.

    white_ranges = [('0', '9'), ('A', 'Z'), ('a', 'z')]
    any([ord(low) <= ord(x) <= ord(high) for low, high in white_ranges])

There are no comments on this comment yet.