Re: [Cython] OpenMP thread private variable not recognized (bug report + discussion)

2014-08-12 Thread Brett Calcott
That would be awesome (I love ipython notebook). On Tue, Aug 12, 2014 at 11:20 AM, Sturla Molden wrote: > Brett Calcott > wrote: > > > For someone who has bumbled around trying to use prange & openmp on > the mac > > (but successfully used python threading), th

Re: [Cython] OpenMP thread private variable not recognized (bug report + discussion)

2014-08-12 Thread Brett Calcott
On Tue, Aug 12, 2014 at 10:26 AM, Sturla Molden wrote: > The sooner you discover you do not > need Cython's prange, the less pain it will cause. > > For someone who has bumbled around trying to use prange & openmp on the mac (but successfully used python threading), this sounds great. Is there an

[Cython] Templated attributes in extensions classes in 0.17 Beta 2

2012-08-19 Thread Brett Calcott
I'm not sure if this is a bug in 0.17 beta or not. But something is not working. Default-constructed attributes in an extension definition appear to work (though I can't see where they are documented on the site…) So this works: test.h #include struct Attributes { std::vector

Re: [Cython] cython 0.15 breaks callback code.

2011-09-25 Thread Brett Calcott
> which means your declaration of callback_test_hello in callbacks.cpp > also needs to be extern "c" to have the same (i.e. no) mangling. > That was it! Thanks, Brett ___ cython-devel mailing list cython-devel@python.org http://mail.python.org/mailman/l

[Cython] cython 0.15 breaks callback code.

2011-09-21 Thread Brett Calcott
Hi. I've just reverted to 0.14.1 because 0.15 breaks code that implements a cpp callback in python. It seems to be a name-mangling problem. I've attached a short test case that shows the problem. They both compile fine on 14.1 and 15. But if I try and run the 15 compiled version I get this: Trace

[Cython] relative_path_in_code_position_comments

2011-09-21 Thread Brett Calcott
Hi all, The path in cython's error output is insensitive to the cwd where cython in invoked. It seems to be based on this variable in Cython/Compiler/Main.py: relative_path_in_code_position_comments = True, If I understand it right, the path output is relative to module it is in, instead of re