Re: [Cython] any() and all()

2009-07-25 Thread Robert Bradshaw
On Jul 24, 2009, at 9:41 PM, Jason Grout wrote: Lisandro Dalcin wrote: On Fri, Jul 24, 2009 at 11:40 PM, Jason Groutjason-s...@creativetrax.com wrote: Not if you use comprehension-like syntax. Can Cython support that in the same way it supports list/set/dict comprehensions? Note that

Re: [Cython] any() and all()

2009-07-25 Thread Jason Grout
Robert Bradshaw wrote: This would be possible to support, but it's a rather special case. One would also, perhaps want to support things like sum. Even if we had generators, it's unclear (but not impossible) how they'd work with non-object return types--maybe a next_c method? In the

Re: [Cython] On the topic of wrapper classes

2009-07-25 Thread Chris Colbert
+1 On Fri, Jul 24, 2009 at 11:21 AM, Lisandro Dalcindalc...@gmail.com wrote: On Fri, Jul 24, 2009 at 8:53 AM, Robert Bradshawrober...@math.washington.edu wrote: This feels a lot like C++ operator overloading... I'm not a fan of _as_parameter_, but maybe an as foo_t kind of attribute that it

Re: [Cython] any() and all()

2009-07-25 Thread Robert Bradshaw
On Jul 25, 2009, at 10:10 AM, Jason Grout wrote: Robert Bradshaw wrote: This would be possible to support, but it's a rather special case. One would also, perhaps want to support things like sum. Even if we had generators, it's unclear (but not impossible) how they'd work with non-object