[Python-Dev] Should standard library modules optimize for CPython? (original) (raw)
Maciej Fijalkowski fijall at gmail.com
Mon Jun 2 10:48:20 CEST 2014
- Previous message: [Python-Dev] Should standard library modules optimize for CPython?
- Next message: [Python-Dev] Should standard library modules optimize for CPython?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Mon, Jun 2, 2014 at 10:43 AM, Victor Stinner <victor.stinner at gmail.com> wrote:
2014-06-01 10:11 GMT+02:00 Steven D'Aprano <steve at 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: "libpypy" directory (lib-python is the CPython stdlib): https://bitbucket.org/pypy/pypy/src/ac52eb7bbbb059d0b8d001a2103774917cf7396f/libpypy/?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#IronPythonMain/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 at python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/fijall%40gmail.com
- Previous message: [Python-Dev] Should standard library modules optimize for CPython?
- Next message: [Python-Dev] Should standard library modules optimize for CPython?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]