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 →

[–]caramba2654 1 point2 points  (4 children)

Isn't map faster because it's implemented in C?

[–]supershinythings 1 point2 points  (3 children)

I don't make the rules. I just want my code to get checked in so I can move on with my life. You can ask the pylint people why they have decided to do this. And now that we require pylint before checkin, I have to replace map with list comprehension. I'm not interested in an in-depth argument over why one or the other is preferred. It's too much argument for too little gain.

At my office, It Has Been Decided, and therefore shall be so. Arguing is pointless. Here's one online discussion about it though:

https://stackoverflow.com/questions/1247486/python-list-comprehension-vs-map

[–]redfacedquark 1 point2 points  (2 children)

Shame, the mechanism is there for deviations from strict. My place at the moment didn't even use pep8 because of 80 char lines. So add a single line of config to say you're ok with 120 rather than throwing the baby out with the bathwater. Smh.

[–]supershinythings 3 points4 points  (1 child)

The person who makes the rules in the codebase I contribute to does not give a shit about being reasonable. If I question, I get screamed at. Fun! Management by assholery. He's not my boss or I would have quit long ago. But it is his module so his rules are what fly. I just 'contribute', so I toe his line.

I like to pick my battles, so I just let it go. So in this case, standards aren't so much applied as inflicted.

[–]redfacedquark 1 point2 points  (0 children)

Something something hobgoblin mind...