On Sat, Jun 28, 2008 at 9:45 PM, Antoine Pitrou <[EMAIL PROTECTED]> wrote: > Wouldn't it be more natural that, at least when the pattern is a str object > rather a bytes object, the re.UNICODE be implied by default?
Might this have some unintended consequences? For example, one would then get the following undesirable behaviour from the decimal module, using inputs with Unicode fullwidth digits. >>> Decimal('\uff11') Decimal('1') >>> Decimal('\uff11') == Decimal('1') False There are plenty of easy fixes for this, of course, but I don't know how many other modules might be similarly affected. In any case, it seems to me that having something like re.ASCII would be useful. Mark _______________________________________________ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com