Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Dev

Cython as a Python implementation

 

 

Python dev RSS feed   Index | Next | Previous | View Threaded


stefan_ml at behnel

Nov 5, 2009, 8:40 AM

Post #1 of 2 (215 views)
Permalink
Cython as a Python implementation

Maciej Fijalkowski, 05.11.2009 11:58:
> Python is something that passes most of CPython's test
> suite, modulo stuff that is considered implementation detail (like
> reference counting).

Certainly not an implementation detail to Cython. ;)


> Cython might as well at some point become one, but so far it does not even
> import the whole test suite (correct me if I'm wrong), hence it's not
> yet python.

The test suite is a problem anyway, given that Cython doesn't implement a
specific level of the Python language. It aims for 2.6 compatibility, but
it already implements many of the Py3k PEPs, for example.

But, yes, it doesn't currently import the test suite (without cheating).
Many of the tests fail to compile due to the use of lambda statements
(which won't take long to support on top of the existing closures) and
conditionally defined classes (which will likely take longer, unless we
cheat a bit by special casing the simple cases).

BTW, other implementations lack some standard library modules. I find it a
lot easier to work around missing syntax than to work around missing
dependencies. But maybe that's just me.

Stefan

_______________________________________________
Python-Dev mailing list
Python-Dev [at] python
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: http://mail.python.org/mailman/options/python-dev/list-python-dev%40lists.gossamer-threads.com


stefan_ml at behnel

Nov 5, 2009, 10:55 AM

Post #2 of 2 (183 views)
Permalink
Re: Cython as a Python implementation [In reply to]

Maciej Fijalkowski, 05.11.2009 19:01:
>> Most Python implementations do not reimplement the stdlib, or at most a
>> minor part of it, so that's right out of the discussion.
>
> Did you actually check?

Well, I know that Jython uses the original stdlib modules through
svn:externals in the build, last thing I heard about IronPython was that
they are allowed to use other people's code now, so I imagine they do the
same thing, and I wouldn't expect PyPy to rewrite the existing Python code
that exists in the stdlib. So the only remaining problem are the C
extensions in CPython, and that's the minor part I mentioned above.

Stefan

_______________________________________________
Python-Dev mailing list
Python-Dev [at] python
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: http://mail.python.org/mailman/options/python-dev/list-python-dev%40lists.gossamer-threads.com

Python dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.