[Cython] Cython project homepage update

2012-05-12 Thread Stefan Behnel
Hi,

I added a "power point" list section to the top of the Cython homepage that
aims to push readers into the main selling points of Cython. Please take a
look and tell me if I missed anything.

http://cython.org/


While checking the links, I just noticed that the NumPy wiki section on
extending and integrating NumPy points to Cython like this:

"""
Pyrex: Pyrex lets you write code that mixes Python and C data types any way
you want, and compiles it into a C extension for Python. See also Cython.
"""

http://www.scipy.org/Topical_Software#head-7153b42ac4ea517c7d99ec4f4453555b2302a1f8

I don't have an account there, but it would be worth changing the order of
the names. I don't think there are many people who use NumPy together with
Pyrex these days.

Stefan
___
cython-devel mailing list
cython-devel@python.org
http://mail.python.org/mailman/listinfo/cython-devel


Re: [Cython] CEP 1001 - Custom PyTypeObject extensions

2012-05-12 Thread Nathaniel Smith
On Fri, May 11, 2012 at 2:25 PM, Dag Sverre Seljebotn
 wrote:
> This comes from a refactor of the work on CEP 1000: A PEP proposal, with a
> hack for use in current Python versions and in the case of PEP rejection,
> that allows 3rd party libraries to agree on extensions to PyTypeObject.
>
> http://wiki.cython.org/enhancements/cep1001
>
> If this makes it as a PEP, I don't think we need to think about having CEP
> 1000 accepted as a PEP.
>
> Comments?

There should probably be some discussion of memory management for the
tpe_data pointers. (I assume it's "guaranteed to be valid for as long
as the associated PyTypeObject, and the PyTypeObject is responsible
for making sure any necessary cleanup happens if it gets deallocated",
but a note to this effect would be good.)

What happens if I want to inherit from PyTypeObject (a "metaclass")
and also implement this interface? It is possible? What if I want to
inherit from an existing subclass of PyTypeObject and add on this
interface? I don't know enough gnarly details about how new style
classes are implemented to tell. Would it make sense to make this
memory-layout-equivalent to a PyTypeObject subclass with extra fields?

-- Nathaniel
___
cython-devel mailing list
cython-devel@python.org
http://mail.python.org/mailman/listinfo/cython-devel