The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
From: Ethan Furman <et...@stoneleaf.us>
Date: Sat, 04 Feb 2012 12:53:57 -0800
Local: Sat, Feb 4 2012 3:53 pm
Subject: Re: [cython-users] newbie question on function assignment
Robert Bradshaw wrote: Apologies for my ignorance, but could you show an example of an array of > On Tue, Jan 31, 2012 at 1:12 PM, paomo wrote: >> cdef f1(): >> ... >> cdef f2(): >> ... >> my_functions = {'case_1' : f1, >> 'case_2' : f2} # this won't compile >> my_functions['case_1']() >> but this won't compile, because cython tries to convert f1 and f2 in > Either use standard python "def" functions rather than cdef functions, funtion pointers and their use with enums? ~Ethan~ You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||