python Programming Glossary: theindex
python backports for some methods http://stackoverflow.com/questions/3785433/python-backports-for-some-methods key piece of code in that application might be def addword theIndex word pagenumber theIndex.setdefault word .append pagenumber.. application might be def addword theIndex word pagenumber theIndex.setdefault word .append pagenumber This code is equivalent to.. equivalent to more verbose approaches such as def addword theIndex word pagenumber if word in theIndex theIndex word .append pagenumber..
|