3 ms·
Python code is superficially easy to read, but to know what a piece of code really does can be extremely hard, specially when metaclassed, generators and the li
by luriel 15y ago
Python code is superficially easy to read, but to know what a piece of code really does can be extremely hard, specially when metaclassed, generators and the like are involved.
Also there is plenty of Python code that is not particularly readable even superficially, particularly convoluted uses of list comprehension come to mind.
And I don't think 'consistency' is one of python's main qualities, when even in the stdlib there are plenty of very different naming styles. (Yes, this is improving in Python 3, but has been a big issue for a very long time.)
- aangjie 15y ago+1 for the metaclasses example... list comprehension doesn't seem that big a deal, but then am biased way too much.. Also agree with consistency part.... but personally python is beginning to lose some of it's charm with the move towards consistency...