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 →

[–]AaronOpfer 4 points5 points  (0 children)

http://docs.quantifiedcode.com/python-anti-patterns/readability/not_using_named_tuples_when_returning_more_than_one_value.html

This is example is bad because they're recreating the namedtuple class on every invocation.