Frank Niessink wrote:
> Scott David Daniels wrote:
>> Frank Niessink wrote:
>>> - What is the easiest/most pythonic (preferably build-in) way of
>>> checking a unicode string for control characters and weeding those
>>> characters out?
>> drop_controls = [None] * 0x20
>> for c in '\t\r\
Scott David Daniels wrote:
> Frank Niessink wrote:
>
>>- What is the easiest/most pythonic (preferably build-in) way of
>>checking a unicode string for control characters and weeding those
>>characters out?
>
>
> drop_controls = [None] * 0x20
> for c in '\t\r\n':
> drop_cont
Frank Niessink wrote:
> ...
> Character Range
> Char ::= #x9 | #xA | #xD | [#x20-#xD7FF] | [#xE000-#xFFFD] |
> [#x1-#x10]"
>
> - What is the easiest/most pythonic (preferably build-in) way of
> checking a unicode string for control characters and weeding those
> characters out?
dr