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. Advertisements

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. Alex Vinokur
    Replies:
    7
    Views:
    622
    Jerry Coffin
    Sep 21, 2003
  2. Alex Vinokur
    Replies:
    4
    Views:
    680
    Ron Natalie
    Sep 24, 2003
  3. Gunnar

    int foo and int foo()

    Gunnar, Jan 19, 2004, in forum: C++
    Replies:
    8
    Views:
    600
    Robert Paul Clark
    Jan 22, 2004
  4. Razvan
    Replies:
    7
    Views:
    535
    Razvan
    Jun 29, 2004
  5. Replies:
    3
    Views:
    576
    John Roth
    Jul 29, 2005
  6. .rhavin grobert

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

    .rhavin grobert, Sep 23, 2008, in forum: C++
    Replies:
    4
    Views:
    604
    JaredGrubb
    Sep 24, 2008
  7. Simon Bierbaum

    import foo vs. python -m foo

    Simon Bierbaum, Oct 28, 2008, in forum: Python
    Replies:
    1
    Views:
    342
    Asun Friere
    Oct 29, 2008
  8. Replies:
    4
    Views:
    370
    Thomas 'PointedEars' Lahn
    Dec 23, 2007
Loading...