Comparing Pythons
Comparison of various Python implementations for conformance.
Methodology
- I started with Mical's test cases as they were small micro unit tests.
- I removed any test that failed using CPython 2.3.4. Some tests were designed to raise an exception, and unhandled exceptions are likely to vary between implementations.
- I ran each test on pie-thon, ast2past, and pirate on the latest Parrot from CVS on Debian. I also ran each test on jython on Java 1.4.2 and iron-python on .Net 1.1.4322, both on WindowsXP.
- I marked each output as
pass
if output as compared to the CPython implementation on the same platform was byte for byte identical. - I marked each output as
pass*
if the outputs differed only in leading or trailing spaces. There were a fair number of these. - All other outputs were marked as
FAIL
. Where possible, I tried to capture stderr. - Click on the links to see the source of the test and the outputs.