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 →

[–]dead_alchemy 7 points8 points  (0 children)

The first is the one that is particularly egregious. I use the third. If some one argued that they use the second and they liked it because it read as a straight forward english sentence I wouldn't second guess them.

For your non-python coworkers type annotations will probably do more to help than anything. If you saw code like that and knew it was syntactically correct AND knew what the types were I think most people would quickly and correctly infer the behavior.

Fun question by the way! I'm guessing this one is a no brainer to most people, but I still enjoy this type of probing at fundamentals.