Difference python 2 and 3

Hi
I notice there is a difference in the way that a specific path can be adressed between python 2 and 3. Underneath a printscreen with error.
What Am I doing wrong?

you have to use r before your strings to path.
like that:

path = r"C:\temp"

2 Likes

Thanks it works. What does the r stand for?

relative?

Thanks, that makes it clear. It didnt exist in 2.7

Verzonden vanuit Mail voor Windows

Hi @wouter.hilhorst - the r stipulating raw strings does work in IronPython2 also :slight_smile:

3 Likes