On Sat, 16 Nov 2013 11:16:48 -0500 Donald Stufft <don...@stufft.io> wrote: > Personally I think that none of the -O* should be removing asserts. It feels > like a foot gun to me. I’ve seen more than one codebase that would be > completely broken under -O* because they used asserts without even knowing > -O* existed.
Originally it was probably done so as to mimick C, where compiling in optimized mode will indeed disable any assert()s in the code. Regards Antoine. _______________________________________________ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com