A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2009-February/086255.html below:

[Python-Dev] IO implementation: in C and Python?

[Python-Dev] IO implementation: in C and Python? [Python-Dev] IO implementation: in C and Python?Alexandre Vassalotti alexandre at peadrop.com
Fri Feb 20 08:18:09 CET 2009
On Fri, Feb 20, 2009 at 12:35 AM, Steven D'Aprano <steve at 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
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4