Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
interesting gotcha
#4
I did it and it errors me with invalid \x escape. Putting 'r' in front of the doc string eliminates it.
It's normal behaviour. It happens during the parsing of the code before executing it. All after the \ should be a valid escape sequence which can be evaluated.

Or escape the \. r"""string""" as a doc string is bugs me some kind.

But as you said, not any indication where is the error.
"As they say in Mexico 'dosvidaniya'. That makes two vidaniyas."
https://freedns.afraid.org
Reply


Messages In This Thread
interesting gotcha - by Skaperen - Nov-27-2017, 07:49 AM
RE: interesting gotcha - by wavic - Nov-27-2017, 07:58 AM
RE: interesting gotcha - by Skaperen - Nov-27-2017, 09:01 AM
RE: interesting gotcha - by wavic - Nov-27-2017, 09:20 AM
RE: interesting gotcha - by Skaperen - Nov-28-2017, 02:55 AM
RE: interesting gotcha - by metulburr - Nov-28-2017, 01:29 PM
RE: interesting gotcha - by Skaperen - Nov-29-2017, 01:09 AM
RE: interesting gotcha - by wavic - Nov-29-2017, 10:17 PM
RE: interesting gotcha - by Skaperen - Nov-30-2017, 01:20 AM
RE: interesting gotcha - by wavic - Nov-30-2017, 02:11 AM
RE: interesting gotcha - by Skaperen - Nov-30-2017, 03:19 AM
RE: interesting gotcha - by wavic - Nov-30-2017, 03:53 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  An interesting BUG with double assignment Gribouillis 2 815 Oct-08-2023, 01:56 PM
Last Post: Gribouillis
  most interesting or useful modules? t4keheart 7 3,522 Jan-20-2020, 06:03 AM
Last Post: wavic
  Interesting/Fun Scripts? ejected 2 2,426 Mar-27-2019, 07:49 AM
Last Post: Skaperen
  Interesting article on PyTourch Larz60+ 0 2,327 Jan-03-2018, 09:06 PM
Last Post: Larz60+
  Any interesting works in progress? mpd 5 3,827 Dec-15-2017, 09:34 PM
Last Post: wavic
  An interesting blog wavic 0 2,422 Dec-12-2017, 09:09 PM
Last Post: wavic
  Interesting new features in python3 Kebap 8 5,951 Jul-05-2017, 03:53 PM
Last Post: nilamo

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020