> I don't really see the point. In my experience there is no benefit to > removing assert statements in production mode. This is a C-specific > notion that doesn't really map very well to Python code. Do other > high-level languages have similar functionality? It's not at all C specific. C# also has it: http://msdn.microsoft.com/en-us/library/ttcc4x86(v=vs.80).aspx Java makes it a VM option (rather than a compiler option), but it's still a flag to the VM (-enableassertions): http://docs.oracle.com/javase/1.4.2/docs/tooldocs/windows/java.html Delphi also has assertions that can be disabled at compile time. Regards, Martin
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4