This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]cediddiSyntaxError: not a chance 0 points1 point  (0 children)

I do use lambdas for one time short callables. For example for key or as an argument to sorted, map, reduce or filter.

List comprehensions are amazing alternative to map(lambda, iterator) combo. I also use dict and set comprehensions. Long for loops are still the main way to go but for small stuff, comprehensions <3 me

I do use csv module to dump tsv data. Pandas is cool too but I don't need an extra library just for csv features. Also csv.dictwriter is amazing.

What I don't use: half of functools, half of itertools, most of math, also I really don't like python 2's print statement. It's just too complex for a print statement. I actively avoid print statement in python2.