On Mon, Jun 2, 2014 at 10:43 AM, Victor Stinner <victor.stin...@gmail.com> wrote: > 2014-06-01 10:11 GMT+02:00 Steven D'Aprano <st...@pearwood.info>: >> My feeling is that the CPython standard library should be written for >> CPython, > > Right. PyPy, Jython and IronPython already have their "own" standard > library when they need a different implement. > > PyPy: "lib_pypy" directory (lib-python is the CPython stdlib): > https://bitbucket.org/pypy/pypy/src/ac52eb7bbbb059d0b8d001a2103774917cf7396f/lib_pypy/?at=default
it's for stuff that's in CPython implemented in C, not a reimplementation of python stuff. we patched the most obvious CPython-specific hacks, but it's a loosing battle, you guys will go way out of your way to squeeze extra 2% by doing very obscure hacks. > > Jython: "Lib" directory (lib-python is the CPython stdlib): > https://bitbucket.org/jython/jython/src/9cd9ab75eadea898e2e74af82ae414925d6a1135/Lib/?at=default > > IronPython: "IronPython.Modules" directory: > http://ironpython.codeplex.com/SourceControl/latest#IronPython_Main/Languages/IronPython/IronPython.Modules/ > > See for example the _fsum.py module of Jython: > https://bitbucket.org/jython/jython/src/9cd9ab75eadea898e2e74af82ae414925d6a1135/Lib/_fsum.py?at=default > > Victor > _______________________________________________ > Python-Dev mailing list > Python-Dev@python.org > https://mail.python.org/mailman/listinfo/python-dev > Unsubscribe: > https://mail.python.org/mailman/options/python-dev/fijall%40gmail.com _______________________________________________ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com