Slumdog
As most audience realized, the film is based on a novel written by Indian diplomat Vikas Swarup. I'm not making a judgment about the writing of a diplomat – far from it – but rather noting the undiplomatic manner Jamal Malik answered the interrogation. Picture Jamal at the police station answering the accusation of cheating in order to win two million rupees - by a former street child with little education.
After
What list methods don't make sense for heterogeneous lists
If one is going to use lists for heterogeneous data (per yesterday'sentry ), it makes sense to ask what list methods don'tmake sense any more. Opinions will probably differ, but here is mytake on it.
First, I think that we can skip all methods that are common betweentuples and lists; if tuples have them, they are presumably consideredfine for heterogeneous data. Looking at what remains, I see:
.sort()clearly makes no sense; there is no real
Filmfare 印度電影觀眾獎

仲有一個篋丫

Python's theoretically missing core data type
In theory inPython, tuples are for heterogeneous data and lists are for homogeneousdata. Except, well, tuples and lists have 'side effects': tuplesare read-only and lists are not. Which means that if you take therestriction on lists seriously, you do not have a core data type forordered writeable heterogeneous data (and maybe also one for read-onlyhomogeneous data).
(While this is a theory that's probably more honored in the breach thanin practice, I think that
哲學家足球戰馬克思後備80年代西德隊
inside到無比的joke。真係超正。理論足球青年用心聽旁述做中譯吧!
What past problems of mine the collections module solves
The somewhat new collections module has a number of usefulthings that obsolete several of the things I've done by hand in thepast. For my own reference if nothing else, here's more or less whatits solutions obsolete and when each solution was introduced.
defaultdictobsoletes my use ofdict.setdefault(). It was introduced in Python 2.5.namedtupleobsoletes some but not all of my various forms of structures in Python. It wasintroduced in Python 2.6.
The reason namedtuple doesn