3 ms·
That only happens if you have different production and development environment settings though -- in which case you should expect the different results. In thi
by coldtea 10y ago
That only happens if you have different production and development environment settings though -- in which case you should expect the different results.
In this particular case, you compiled your code with "-O", so it's not the "same code" used in production, but code compiled with a different flag. Shouldn't they check what the flag does?
- blowski 10y agoThe developer may be deploying code to a server they didn't configure. I agree with the way it's done in Python, as it's consistent with most other languages. But the blog post is right to point out to inexperienced developers that the way assert behaves might give them a surprise.