Re: [Python-Dev] How long the wrong type of argument should we limit (or not) in the error message (C-api)?

2013-12-19 Thread Eric V. Smith
On 12/16/2013 03:49 PM, Nick Coghlan wrote: > > On 17 Dec 2013 02:23, "Eric V. Smith" > wrote: >> >> On 12/16/2013 10:29 AM, Walter Dörwald wrote: >> > I'd vote for including the module name in the string and using >> > __qualname__ instead of __name__, i.e. make "{:T}"

Re: [Python-Dev] cffi in stdlib

2013-12-19 Thread Gregory P. Smith
On Thu, Dec 19, 2013 at 2:07 AM, Maciej Fijalkowski wrote: > On Thu, Dec 19, 2013 at 3:17 AM, Gregory P. Smith wrote: > > > > > > > > On Tue, Dec 17, 2013 at 8:43 AM, Stefan Krah > wrote: > >> > >> Maciej Fijalkowski wrote: > >> > I would like to discuss on the language summit a potential inclu

Re: [Python-Dev] cffi in stdlib

2013-12-19 Thread Stefan Krah
Gregory P. Smith wrote: > Ubuntu compiles their Python with FDO (feedback directed optimization / > profile > guided optimization) enabled. All distros should do this if they don't > already. > It's generally 20% interpreter speedup. Our makefile already supports it but > it > isn't the default

Re: [Python-Dev] thread issues when embedding Python

2013-12-19 Thread Nick Coghlan
On 19 December 2013 21:28, Daniel Pocock wrote: > On 19/12/13 12:22, Nick Coghlan wrote: >> I don't see anything in your article about how you ensure that the >> main thread of the application *before anything else related to the >> embedded Python happens* calls both Py_Initialize() and >> PyEval

Re: [Python-Dev] thread issues when embedding Python

2013-12-19 Thread Daniel Pocock
On 19/12/13 12:22, Nick Coghlan wrote: > On 19 December 2013 07:58, Daniel Pocock wrote: >> >> On 18/12/13 16:29, Victor Stinner wrote: >>> 2013/12/18 Antoine Pitrou : You only need to call PyEval_InitThreads() once in the main Python thread. >>> This is not well documented. For your inf

Re: [Python-Dev] thread issues when embedding Python

2013-12-19 Thread Nick Coghlan
On 19 December 2013 07:58, Daniel Pocock wrote: > > > On 18/12/13 16:29, Victor Stinner wrote: >> 2013/12/18 Antoine Pitrou : >>> You only need to call PyEval_InitThreads() once in the main Python >>> thread. >> >> This is not well documented. For your information, PyGILState_Ensure() >> now calls

Re: [Python-Dev] cffi in stdlib

2013-12-19 Thread Maciej Fijalkowski
On Thu, Dec 19, 2013 at 3:17 AM, Gregory P. Smith wrote: > > > > On Tue, Dec 17, 2013 at 8:43 AM, Stefan Krah wrote: >> >> Maciej Fijalkowski wrote: >> > I would like to discuss on the language summit a potential inclusion >> > of cffi[1] into stdlib. This is a project Armin Rigo has been workin