Terry Reedy wrote:


Guido van Rossum wrote:
On Sat, Jun 28, 2008 at 1: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?

+1

Would there be any reason (I do not know) to replace that with an re.ASCII flag to have the reverse effect (assuming there is not now)?

I'd be inclined to have it implied by the type of the argument - a str argument implies re.UNICODE is set, a bytes or bytearray argument implies it isn't. Users could still set it explicitly to have it apply in the latter case.

Cheers,
Nick.

--
Nick Coghlan   |   [EMAIL PROTECTED]   |   Brisbane, Australia
---------------------------------------------------------------
            http://www.boredomandlaziness.org
_______________________________________________
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

Reply via email to