Re: ur'foo' syntax under Python 3

Discussion in 'Python' started by Peter Otten, Feb 8, 2014.

  1. Peter Otten

    Peter Otten Guest

    Lele Gaifax wrote:

    > I'm using Python 3.3, and I was surprised to realize that it does not
    > support the old Python 2 syntax ur"literal-raw-unicode-strings".
    >
    > Is there any trick to write such literals in a Python2+3 compatible
    > source?
    >
    > Is there a rationale behind the invalid syntax or is it just a glitch?


    This is intentional:

    http://www.python.org/dev/peps/pep-0414/#exclusion-of-raw-unicode-literals
     
    Peter Otten, Feb 8, 2014
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    3
    Views:
    399
    John Roth
    Jul 29, 2005
  2. .rhavin grobert

    vector: Foo[5] == ((foo*)Foo) + 5 ?

    .rhavin grobert, Sep 23, 2008, in forum: C++
    Replies:
    4
    Views:
    413
    JaredGrubb
    Sep 24, 2008
  3. Replies:
    4
    Views:
    163
    Thomas 'PointedEars' Lahn
    Dec 23, 2007
  4. Lele Gaifax

    ur'foo' syntax under Python 3

    Lele Gaifax, Feb 8, 2014, in forum: Python
    Replies:
    0
    Views:
    73
    Lele Gaifax
    Feb 8, 2014
  5. Mark Lawrence

    Re: ur'foo' syntax under Python 3

    Mark Lawrence, Feb 8, 2014, in forum: Python
    Replies:
    0
    Views:
    109
    Mark Lawrence
    Feb 8, 2014
Loading...

Share This Page