Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Python

Name: Anonymous 2011-03-05 18:21

You can't put a single backslash at the end of a r"" string:

>>> print("\abc")
bc
(causes terminal to beep)
>>> print(r"\abc")
\abc
>>> print(r"abc\\")
abc\\
>>> print(r"abc\")
  File "<stdin>", line 1
    print(r"abc\")
                  ^
SyntaxError: EOL while scanning string literal


Fuck!

[b]\abc[/b] produces \abc
[b]abc\\[/b] produces [b]abc\[/b]
[b]abc\[/b] produces [b]abc[/b]

Python is as stupid as Shitchan!

Name: Anonymous 2011-03-05 19:20

>>5
Then you are fucked, print r'\'' prints "\'", with a backslash.

Also, the proper way to do literal strings is to 1) allow literal EOLs, because it's a fucking literal string, 2) use pascal-style escaping of quotes by doubling. Seeshurp does it right, for example.

Python's way is retarded, it was a quick hack for writing regexes bolted on without any due consideration. I think at this point everyone in the community acknowledges it. Stop your pointless excuses and grow the fuck up, having a feature that sucks doesn't mean that entire language sucks, there's no need to get all butthurt about it and try to prove that it doesn't suck, against all reason.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List