[Python-Dev] peps: Update PEP 399 to include comments from python-dev.

Antoine Pitrou solipsis at pitrou.net
Wed Apr 13 02:07:17 CEST 2011


On Tue, 12 Apr 2011 19:50:34 -0400
Tres Seaver <tseaver at palladion.com> wrote:
> Trying to accelerate existing code which doesn't have the coverage is
> insane:  how can you know that the accelerator doesn't subtly change the
> semantics without tests?

Well, why do you think tests guarantee that the semantics are the same?
Tests are not a magic bullet. "Covering" a code path doesn't ensure
that every possible behaviour is accounted for.

And if you think that is "insane", you should probably wipe most of the
software you are using on your computer, because most existing software
doesn't have 100% test coverage.

Regards

Antoine.




More information about the Python-Dev mailing list