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-06 6:19

>>6
This is why python sucks: http://mail.python.org/pipermail/python-dev/2006-July/066862.html

Note how the designer of your precious language:

* Doesn't even know Scheme.
* Doesn't understand what lexical scoping is (and requests an explanation rather than looking it up on Wikipedia).

Anyways, it was around that time I first checked out python... needless to say, I wasn't very impressed. I think at point in time python required you to import lexical scope from __future__ (could be that this was in ruby).

(The fundamental problem I have with languages like python (and perhaps, to some extent, ruby and perl) is that since they are written by people outside academia they are full of ugly corner cases and features that had to be bolted on. I like languages such as Haskell and Racket: predictable, uniform and concise.)

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