[issue31861] add aiter() and anext() functions

2021-04-07 Thread STINNER Victor
STINNER Victor added the comment: I proposed to PR 25266 to rename PyAnextAwaitable_Type to _PyAnextAwaitable_Type, and to initialize the type at Python startup: can someone please have a look? -- nosy: +vstinner ___ Python tracker

[issue31861] add aiter() and anext() functions

2021-04-07 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31861] add aiter() and anext() functions

2021-04-07 Thread Dennis Sweeney
Dennis Sweeney added the comment: A bug was reported in anext(): https://bugs.python.org/issue43751 -- nosy: +Dennis Sweeney ___ Python tracker ___

[issue31861] add aiter() and anext() functions

2021-03-23 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset a02683ac38183fa3a45c32319dfd329c5e622f0e by Pablo Galindo in branch 'master': bpo-31861: Fix reference leak in builtin_anext_impl() (GH-25008) https://github.com/python/cpython/commit/a02683ac38183fa3a45c32319dfd329c5e622f0e --

[issue31861] add aiter() and anext() functions

2021-03-23 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Fixed by PR25008 -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue31861] add aiter() and anext() functions

2021-03-23 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +23766 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/25008 ___ Python tracker ___

[issue31861] add aiter() and anext() functions

2021-03-23 Thread STINNER Victor
STINNER Victor added the comment: I reopen the issue. The commit f0a6fde8827d5d4f7a1c741ab1a8b206b66ffd57 introduced a reference leak: $ ./python -m test -R 3:3 test_asyncgen 0:00:00 load avg: 4.75 Run tests sequentially 0:00:00 load avg: 4.75 [1/1] test_asyncgen beginning 6 repetitions

[issue31861] add aiter() and anext() functions

2021-03-23 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 919d42d477093154a30b55d9d79f023dbbe5614a by Pablo Galindo in branch 'master': bpo-31861: Fix possible crash in PyAnextAwaitable_New (GH-25005) https://github.com/python/cpython/commit/919d42d477093154a30b55d9d79f023dbbe5614a --

[issue31861] add aiter() and anext() functions

2021-03-23 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset d9692027f41ee7600fe401c066617ebfc8bac930 by Pablo Galindo in branch 'master': bpo-31861: Complete the C-API docs for PyObject_GetAiter and PyAiter_Check (GH-25004)

[issue31861] add aiter() and anext() functions

2021-03-23 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +23763 pull_request: https://github.com/python/cpython/pull/25005 ___ Python tracker ___

[issue31861] add aiter() and anext() functions

2021-03-23 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: +pablogsal nosy_count: 12.0 -> 13.0 pull_requests: +23762 pull_request: https://github.com/python/cpython/pull/25004 ___ Python tracker

[issue31861] add aiter() and anext() functions

2021-03-23 Thread Guido van Rossum
Change by Guido van Rossum : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue31861] add aiter() and anext() functions

2021-03-23 Thread Guido van Rossum
Guido van Rossum added the comment: New changeset f0a6fde8827d5d4f7a1c741ab1a8b206b66ffd57 by Joshua Bronson in branch 'master': bpo-31861: Add aiter and anext to builtins (#23847) https://github.com/python/cpython/commit/f0a6fde8827d5d4f7a1c741ab1a8b206b66ffd57 -- nosy:

[issue31861] add aiter() and anext() functions

2021-03-17 Thread jack1142
Change by jack1142 : -- nosy: +jack1142 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31861] add aiter() and anext() functions

2020-12-20 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: I don't have anything to add to this beside the name choice is safe and won't clash with anything (but honestly I would prefer it to be discussed on the ML before implementing something after 3 years). I checked a limited dataset to search for aiter and

[issue31861] add aiter() and anext() functions

2020-12-18 Thread Joshua Bronson
Joshua Bronson added the comment: Please see https://github.com/python/cpython/pull/23847 for the C implementation of aiter and anext added to builtins, as requested. -- title: add aiter() and anext() functions to operator module -> add aiter() and anext() functions

[issue31861] add aiter() and anext() functions to operator module

2020-12-18 Thread Joshua Bronson
Change by Joshua Bronson : -- pull_requests: +22708 pull_request: https://github.com/python/cpython/pull/23847 ___ Python tracker ___

[issue31861] add aiter() and anext() functions to operator module

2020-11-25 Thread Joshua Bronson
Joshua Bronson added the comment: Nice to see there is still interest in this from someone else! Thanks, John. Are any core developers still interested in this? If I can get a new PR together that adds C implementations of `aiter` and `anext` to builtins, would a committer still be

[issue31861] add aiter() and anext() functions to operator module

2020-11-05 Thread John Belmonte
John Belmonte added the comment: Adding this would be a nice compliment to aclosing(), which was already merged for 3.10. Otherwise, witness the ugliness of using aclosing() with an async iterable object: async with aclosing(foo.__aiter__()) as agen: async for item in agen:

[issue31861] add aiter() and anext() functions to operator module

2020-08-18 Thread Dima Tisnek
Dima Tisnek added the comment: Might as well re-target for 3.10 as 3.9 seems feature-complete now. -- versions: +Python 3.10 -Python 3.8 ___ Python tracker ___

[issue31861] add aiter() and anext() functions to operator module

2020-06-03 Thread Eric Wieser
Change by Eric Wieser : -- nosy: +Eric Wieser ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31861] add aiter() and anext() functions to operator module

2020-05-08 Thread rb
Change by rb : -- nosy: +rb ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31861] add aiter() and anext() functions to operator module

2019-03-04 Thread Giampaolo Rodola'
Change by Giampaolo Rodola' : -- nosy: -giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31861] add aiter() and anext() functions to operator module

2019-03-04 Thread Joshua Bronson
Joshua Bronson added the comment: If the deciders prefer to have these in the operator module for 3.8 (as Yury and Jelle requested above), my PR from a few months ago which implements this (https://github.com/python/cpython/pull/8895) can still be merged with no conflicts. I don't think any

[issue31861] add aiter() and anext() functions to operator module

2019-03-03 Thread Dima Tisnek
Dima Tisnek added the comment: https://www.python.org/dev/peps/pep-0525/#aiter-and-anext-builtins kinda promised `aiter` and `anext` built-ins. This ticket seems idle. Perhaps it's time for the decider club to either remove that language from PEP-525 or make a plan for aiter/anext?

[issue31861] add aiter() and anext() functions to operator module

2018-08-24 Thread Joshua Bronson
Joshua Bronson added the comment: Interesting, thanks Yury! I only saw the discussion here which implied these wouldn't go directly into builtins for 3.8 (and I searched here and in GitHub, and couldn't find the PR you mentioned either), so I'm curious if that was tracked somewhere. It'd be

[issue31861] add aiter() and anext() functions to operator module

2018-08-24 Thread Guido van Rossum
Change by Guido van Rossum : -- nosy: -gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31861] add aiter() and anext() functions to operator module

2018-08-24 Thread Yury Selivanov
Yury Selivanov added the comment: Great, thanks! There's someone working on a pr to add them as builtins (so that pr is in C). I'll have to take a look when i'm back from vacation at that pr too, before we can make a decision. I've been to europython, pycon ru, and pybay conferences

[issue31861] add aiter() and anext() functions to operator module

2018-08-23 Thread Joshua Bronson
Joshua Bronson added the comment: Updating the issue title to reflect the decision to add these to the operator module rather than to built-ins. Submitted a PR here: https://github.com/python/cpython/pull/8895 -- title: aiter() and anext() built-in functions -> add aiter() and