Fused Types Syntax

I’m back to continue work on the gsoc! Today I changed the syntax for fused types according to the discussion on the mailing list. You can now write

    cdef fused my_fused_type:
        int
        float
        ...

and


    my_fused_type = cython.fused_type(int, float, ...)

in pure mode. The plan then is to merge the current fused function on top of Vitja's work on the new CyFunction. Until that is merged I'll try to support fused types as part of def functions and not just as part of cdef or cpdef functions.

About markflorisson

Blog for the Cython gsoc 2011
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s