Re: [Python-Dev] Adding c-api async protocol support

2015-06-25 Thread Ludovic Gasc
For one time, while we are in a congratulations tunnel, thank you a lot AsyncIO core devs: Since several months, we've pushed on production an average of 2 daemons based on AsyncIO in my company with several protocols. Most of the time there are small daemons, however, some are complex. For now, t

Re: [Python-Dev] Adding c-api async protocol support

2015-06-25 Thread Victor Stinner
Hi, 2015-06-25 19:25 GMT+02:00 Andrew Svetlov : > P.S. > Thank you Victor so much for your work on asyncio. > Your changes on keeping source tracebacks and raising warnings for > unclosed resources are very helpful. Ah! It's good to know. You're welcome. We can still enhance the source traceback

Re: [Python-Dev] Adding c-api async protocol support

2015-06-25 Thread Andrew Svetlov
I'm with Victor: we are in beta now. Making C API is useful and important but we may wait for new Python release. The same for asycnio acceleration: we definitely need it but it requires inviting C API also I believe. Personally I've concentrated on making third-party libraries on top of asyncio

Re: [Python-Dev] Adding c-api async protocol support

2015-06-25 Thread Victor Stinner
It looks like the code is currently moving fast. I suggest to wait until Python 3.6 to stabilize the Python C API for async/await. It's a pain to maintain a public API. I hate having to add 2 or 3 versions of a single function :-( Victor 2015-06-25 17:43 GMT+02:00 Yury Selivanov : > Hi Arc, > > >

Re: [Python-Dev] Adding c-api async protocol support

2015-06-25 Thread Yury Selivanov
Hi Arc, On 2015-06-24 10:36 PM, Arc Riley wrote: A type slot for tp_as_async has already been added (which is good!) but we do not currently seem to have protocol functions for awaitable types. I would expect to find an Awaitable Protocol listed under Abstract Objects Layer, with functions like

Re: [Python-Dev] Adding c-api async protocol support

2015-06-25 Thread Arc Riley
On Wed, Jun 24, 2015 at 9:48 PM, Stefan Behnel wrote: > > > I'd wait with that a bit, though, until after Py3.5 is finally released > and the actual needs for C code that want to use the new > features become clearer. > I strongly disagree. What we would end up with is 3rd party extension module

Re: [Python-Dev] Adding c-api async protocol support

2015-06-24 Thread Stefan Behnel
Arc Riley schrieb am 25.06.2015 um 04:36: > A type slot for tp_as_async has already been added (which is good!) but we > do not currently seem to have protocol functions for awaitable types. > > I would expect to find an Awaitable Protocol listed under Abstract Objects > Layer, with functions like

[Python-Dev] Adding c-api async protocol support

2015-06-24 Thread Arc Riley
A type slot for tp_as_async has already been added (which is good!) but we do not currently seem to have protocol functions for awaitable types. I would expect to find an Awaitable Protocol listed under Abstract Objects Layer, with functions like PyAwait_Check, PyAwaitIter_Check, and PyAwaitIter_N