3 ms·
Thank you, I hadn't seen that. I've added that link to the bottom of my article.
by webexcess 14y ago
Thank you, I hadn't seen that. I've added that link to the bottom of my article.
- beagle3 14y agoYou use "assert gen.next() is None", but asserts might be dropped by optimizations, see e.g. http://docs.python.org/release/2.5.2/ref/assert.html http://docs.python.org/release/2.5.2/ref/assert.html - and your code will break. assert should only be used for debugging, and only for things that should never happen. side effects on assert is a no-no. (Also in C)