This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author scoder
Recipients Il_Fox, josh.r, scoder
Date 2014-09-10.03:50:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1410321004.63.0.770250484874.issue22373@psf.upfronthosting.co.za>
In-reply-to
Content
Agreed that it's not a bug in CPython, but my guess is that it's not a bug in NumPy either. The C function you call (which IIRC creates a new NumPy array) almost certainly needs the GIL to protect it against race conditions, and since you mentioned OpenMP, you most likely released the GIL. So, just re-acquire the GIL around the call (and make sure you don't have any other threading problems in your code).
History
Date User Action Args
2014-09-10 03:50:04scodersetrecipients: + scoder, josh.r, Il_Fox
2014-09-10 03:50:04scodersetmessageid: <1410321004.63.0.770250484874.issue22373@psf.upfronthosting.co.za>
2014-09-10 03:50:04scoderlinkissue22373 messages
2014-09-10 03:50:04scodercreate