On Thu, 16 Jun 2011, Rich Alderson wrote:
Perl roolz, Python droolz! ;->
(Seriously? syntactically significant white space??? Really??????)
That's not the worst part!
1) mutators for built-in objects don't return the object, so you can't do
more than one thing to an anonymous object; if you want to do 2 things you
need to assign it to a variable and then repeatedly do things via the
variable.
2) exceptions are not exceptional. You want to break out of a loop? That's
an exception. Even a loop from 1 to 10 will stop looping by throwing an
exception.
3) PyUnit tests are weaker than Test::More tests. A PyUnit test ends as
soon as the first assertion fails (whereas Test::More tests let you
continue with the rest of the test), and there is no way to declare the
number of assertions you expect to test.
Alexey