News for hackers. Stuff that matters.
Re:Anti-Patterns in Python Programming by jl6 on Thursday July 10, 2014 @02:53AM (#8013960)
So why does Python distinguish between a list and a tuple at all?
Re:Anti-Patterns in Python Programming by dragonwriter on Thursday July 10, 2014 @09:48AM (#8014930)
Because the distinction between a mutable list and an immutable list is still meaningful in a dynamic language like python.
Re:Anti-Patterns in Python Programming by hueving on Thursday July 10, 2014 @05:08AM (#8014297)
One is mutable, one is not. Performance. Also, look up namedtuple. Useful for returning multiple values.