Re: [Python-Dev] Sub-interpreters: importing numpy causes hang

2019-01-27 Thread Gregory P. Smith
On Thu, Jan 24, 2019 at 1:25 PM Chris Barker - NOAA Federal via Python-Dev < python-dev@python.org> wrote: > If your primary concern is module clashes between plugins, maybe you > can hack around that: > > 1) if the plugins are providing copies of any other modules, then you > can simply require

Re: [Python-Dev] Sub-interpreters: importing numpy causes hang

2019-01-27 Thread Nathaniel Smith
On Sun, Jan 27, 2019, 06:34 Stephan Reiter Cool. Thanks, Nick! > > I did experiments based on this idea ( > https://github.com/stephanreiter/cpython/commit/3bca91c26ac81e517b4aa22302be1741b3315622) > and haven't rejected it yet. :-) > > Together with the other fix ( >

Re: [Python-Dev] Anyone else seeing a lack of caching in local docs builds?

2019-01-27 Thread Terry Reedy
On 1/27/2019 9:01 AM, Nick Coghlan wrote: Hi folks, I'm currently seeing a behaviour where every time I run "make html", all 474 source files get rebuilt. I just rebuilt, ditto, all 474. Caching only works when I rebuild 'soon' (at least within same day) after a complete rebuild. I just

Re: [Python-Dev] Sub-interpreters: importing numpy causes hang

2019-01-27 Thread Stephan Reiter
Cool. Thanks, Nick! I did experiments based on this idea ( https://github.com/stephanreiter/cpython/commit/3bca91c26ac81e517b4aa22302be1741b3315622) and haven't rejected it yet. :-) Together with the other fix (

Re: [Python-Dev] Add more SyntaxWarnings?

2019-01-27 Thread Nick Coghlan
On Fri, 25 Jan 2019 at 10:15, Eric V. Smith wrote: > It would be a change if the code is never called. I'm not sure we care > about code that's never called, but it is a change. The biggest problem with converting runtime errors to compile time errors is that it means affected dead code goes

Re: [Python-Dev] Sub-interpreters: importing numpy causes hang

2019-01-27 Thread Nick Coghlan
On Thu, 24 Jan 2019 at 05:45, Stephan Reiter wrote: > If we create a fresh OS thread and make it call PyGILState_Ensure, it > won't have a PyThreadState saved under autoTLSkey. That means it will > create one using the main interpreter. I, as the developer embedding > Python into my application

Re: [Python-Dev] Source of truth for C-API

2019-01-27 Thread Nick Coghlan
On Thu, 24 Jan 2019 at 02:56, Victor Stinner wrote: > > I suggest you to add a new function and leaves the existing function > unchanged. "Just in case". > > You may deprecate the old functions at the same time using Py_DEPRECATED(). And potentially put an underscore in front of the new ones (or

[Python-Dev] Anyone else seeing a lack of caching in local docs builds?

2019-01-27 Thread Nick Coghlan
Hi folks, I'm currently seeing a behaviour where every time I run "make html", all 474 source files get rebuilt. For now, I'm assuming I've messed something up with my local docs build setup, but figured I'd ask if anyone else was seeing this, in case it was actually broken at the build level