Python Is Great Except When People Are Not
@ 2009-03-18 22:06:52
Filed under: Philosophy Code Python
I really like Python so I'd figure I'd say something negative about it (I am complicated). Don't write code like the following .... it's ugly, doesn't explain what it's doing, and is just preachy (we all know lambda is cool, but we don't need to use it in place of all the methods!!!!): As you can see it IS possible to write ugly/bad Python ... it's just harder to do so.
digg it
seed it
del.icio.us
ma.gnolia
Log in to post comments.
Filed under: Philosophy Code Python
I really like Python so I'd figure I'd say something negative about it (I am complicated). Don't write code like the following .... it's ugly, doesn't explain what it's doing, and is just preachy (we all know lambda is cool, but we don't need to use it in place of all the methods!!!!): As you can see it IS possible to write ugly/bad Python ... it's just harder to do so.
class c(list):
_a,_b,_c=1,2,3
__init___=lambda self:None
data=lambda self:(self._a,self._b,self._c)
set=lambda self,a,b:self.__setattr__(a,b)
digg it
seed it
del.icio.us
ma.gnolia
Log in to post comments.

