Re: [Python-Dev] cffi in stdlib

2013-12-19 Thread Maciej Fijalkowski
On Thu, Dec 19, 2013 at 3:17 AM, Gregory P. Smith g...@krypto.org wrote: On Tue, Dec 17, 2013 at 8:43 AM, Stefan Krah ste...@bytereef.org wrote: Maciej Fijalkowski fij...@gmail.com wrote: I would like to discuss on the language summit a potential inclusion of cffi[1] into stdlib. This is

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 dan...@pocock.com.au wrote: On 18/12/13 16:29, Victor Stinner wrote: 2013/12/18 Antoine Pitrou solip...@pitrou.net: You only need to call PyEval_InitThreads() once in the main Python thread. This is not well

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

2013-12-19 Thread Nick Coghlan
On 19 December 2013 21:28, Daniel Pocock dan...@pocock.com.au 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()

Re: [Python-Dev] cffi in stdlib

2013-12-19 Thread Stefan Krah
Gregory P. Smith g...@krypto.org 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

Re: [Python-Dev] cffi in stdlib

2013-12-19 Thread Gregory P. Smith
On Thu, Dec 19, 2013 at 2:07 AM, Maciej Fijalkowski fij...@gmail.comwrote: On Thu, Dec 19, 2013 at 3:17 AM, Gregory P. Smith g...@krypto.org wrote: On Tue, Dec 17, 2013 at 8:43 AM, Stefan Krah ste...@bytereef.org wrote: Maciej Fijalkowski fij...@gmail.com wrote: I would like to

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 e...@trueblade.com mailto:e...@trueblade.com 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