Pythons documentation sucks. Learn from php.net guys! No comments? No examples? Method description sux! Dont know if function raises exception or not. Good method is java method
bool my_function(arg1 [,arg2 [,arg3]]) raises MyCustomException
-No private methods? OMG! WTF?- There are private methods. You have to prefix method with double underscore, eg. @def __mymethod(self):...@ .
Huh, why not 17 uderscores? def _____privateMethod is much better!
no switch...case? no, playing with lists and labdas or ifs is not switch...case:
a = 0;
switch a:
case 0:
do_this()
break
case 1:
case 2:
case 3:
do_that()
break
default:
or_do_this()
See the difference? Now imagine swith with 200 cases and do that with list/lambda shit.
no i++, i--, ++i, --i operators? Huh, and this is more readable syntax: i,j = j,j+1 ? O...M...G
no for(i=0; i<x; i++)... loop? It exists in java, c++, javascript etc.
a = "OK "
def destroyWorld():
# I didnt set "a" inside function so world is save
try:
print a + "Destroy The World!"
except:
print "The World is save!"
destroyWorld()
>>> OK Destroy The World!
None? WTF is None? Why not null? Only good point is that ruby has nil. huh.
where is "!" operator?
Why i have to declare reference to object when declaring methods? Cannot it be passed transparently, like in all other languages?
Why i have to declare method wit 4 parameter and call it using only 3?
No simple installer. easy_install is not siple instaler.