On Tue, Feb 2, 2010 at 13:05, Antoine Pitrou email@example.com wrote:
Le mercredi 03 février 2010 à 06:58 +1000, Nick Coghlan a écrit :
The fact that asserts and if __debug__ blocks get skipped under -O strikes me as more than adequate reason to consider optimised and non-optimised bytecode as different things.
Well, do people rely on this nowadays? With unit testing becoming very common (and recommended) practice, I'm not sure what sprinkling asserts in debug mode really brings.
We might not rely on them, but I am sure there are those who prefer them on top of TDD (or instead of). Removing them would be somewhat forcing a programming methodology on users which I think we should avoid.
Python-ideas mailing list Pythonfirstname.lastname@example.org http://mail.python.org/mailman/listinfo/python-ideas