This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author stutzbach
Recipients stutzbach
Date 2010-09-15.13:46:34
SpamBayes Score 1.1332721e-08
Marked as misclassified No
Message-id <1284558397.04.0.990092096712.issue9859@psf.upfronthosting.co.za>
In-reply-to
Content
Recently it came to light that the classes in C and Python implementations of the io module have slightly different attributes (issue9858).  I propose the addition of a helper function in Lib/test/support.py to verify that the classes in two different implementations define the same attributes.  Then, we can add tests to use that function to verify that C and Python implementations define the same API (for the io module, but also for other modules where we have two implementations).  The script I added to issue9858 could serve as a starting point for such a function.

Since CPython's standard library is the de facto reference implementation, it's important that it define one API and not two slightly different ones. :-)
History
Date User Action Args
2010-09-15 13:46:44stutzbachsetrecipients: + stutzbach
2010-09-15 13:46:37stutzbachsetmessageid: <1284558397.04.0.990092096712.issue9859@psf.upfronthosting.co.za>
2010-09-15 13:46:35stutzbachlinkissue9859 messages
2010-09-15 13:46:34stutzbachcreate