Tag Archives: Python 2.5

GeneratorExit: another reason to upgrade to Python 2.6

Ever heard of GeneratorExit? Unless you write generators, and do some unusual stuff with them, you probably haven’t encountered it. GeneratorExit is a special exception that gets raised from within a generator when it is close()-ed. For example, consider the … Continue reading

Posted in Programming, Python | Tagged , , , , | Leave a comment