4 ms·
You're right, I don't think I chose my words carefully. Maybe I meant programming idioms? At any rate, what I meant was things like map(len, mylist) vs [len(x)
by derwiki 15y ago
You're right, I don't think I chose my words carefully. Maybe I meant programming idioms? At any rate, what I meant was things like map(len, mylist) vs [len(x) for x in mylist] or the readability of a relatively complex list comprehension vs a loop.
- oinksoft 15y agoSound like awfully low-level things to discuss, except in the occasional code review where something is glaring. Also, map() and filter() aren't quite deprecated but most would agree that the list comprehension is more Pythonic.
- rhizome 15y agoA lack of house style is a huge sandbag once you have more than a few developers.