ur'foo' syntax under Python 3

Discussion in 'Python' started by Lele Gaifax, Feb 8, 2014.

  1. Lele Gaifax

    Lele Gaifax Guest

    Hi all,

    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?

    thanks in advance,
    bye, lele.
    --
    nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri
    real: Emanuele Gaifas | comincerò ad aver paura di chi mi copia.
    | -- Fortunato Depero, 1929.
     
    Lele Gaifax, 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:
    387
    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:
    402
    JaredGrubb
    Sep 24, 2008
  3. Replies:
    4
    Views:
    149
    Thomas 'PointedEars' Lahn
    Dec 23, 2007
  4. Mark Lawrence

    Re: ur'foo' syntax under Python 3

    Mark Lawrence, Feb 8, 2014, in forum: Python
    Replies:
    0
    Views:
    86
    Mark Lawrence
    Feb 8, 2014
  5. Peter Otten

    Re: ur'foo' syntax under Python 3

    Peter Otten, Feb 8, 2014, in forum: Python
    Replies:
    0
    Views:
    51
    Peter Otten
    Feb 8, 2014
Loading...

Share This Page