[Python-3000] u'text' as an alias for 'text'?

Lennart Regebro regebro at gmail.com
Thu Mar 20 21:42:47 CET 2008


On Thu, Mar 20, 2008 at 9:35 PM, Christian Heimes <lists at cheimes.de> wrote:
>  I think it's an reasonable approach to change *all* literals to be 100%
>  Python 3.0 compatible.

Well, I'm sure not going to complain if that is the case. :)

>  When the user specifies the py3k_literal mode than 1L and u'' should
>  raise a SyntaxError. I'm -0 for no error and -1 for a deprecation
>  warning with -3. It'd clutter the parser and tokenizer code even more.
>  The warning isn't required, too.

OK, if the warning is more complicated than the SyntaxError, then
evidently the SyntaxError is better.

-- 
Lennart Regebro: Zope and Plone consulting.
http://www.colliberty.com/
+33 661 58 14 64


More information about the Python-3000 mailing list