On Fri, Feb 20, 2009 at 12:35 AM, Steven D'Aprano <st...@pearwood.info> wrote: > > Currently, if I want to verify that (say) cFoo and Foo do the same thing, or > compare their speed, it's easy because I can import the modules separately. > Given the 3.0 approach, how would one access the Python versions without > black magic or hacks? >
My prefered way to handle this is to keep the original Python implementations with a leading underscore (e.g., pickle._Pickler). I found this was the easiest way to test the C and Python implementations without resorting to import hacks. -- Alexandre _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com