Hoyt Koepke wrote: > Hello, > > I'm a relative newbie to cython/pyrex, so I won't be offended if this > suggestion gets thrown out quickly as long as I learn something in the > process. From my googling, it seems that decorators aren't really > supported by cython/pyrex yet > (http://wiki.cython.org/enhancements/decorators) but are on cython's > to-do list. It strikes me that decorators would be a natural way of > handling this, i.e. having a @notNone decorator for functions that has > the affect of adding "not None" to every argument. If part of the > reason for switching the default is that writing "not None" for every > argument is awkward, this would be a reasonable middle ground. >
http://wiki.cython.org/docs/compilerdirectives :-) So yes, this is definitely doable. -- Dag Sverre _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
