[Python-ideas] Re: Allow `return yield from`

2022-03-28 Thread Andrew Svetlov
hon.org/archives/list/python-ideas@python.org/message/L6XRQ5YWAE535JGZH2MF2TD32C65K5ZI/ > Code of Conduct: http://python.org/psf/codeofconduct/ > -- Thanks, Andrew Svetlov ___ Python-ideas mailing list -- python-ideas@python.org To unsubscribe

[Python-ideas] Re: Anonymous namedtuples, revisited

2022-03-24 Thread Andrew Svetlov
les. > > References: > [1] https://mail.python.org/pipermail/python-ideas/2016-April/039857.html > ___________ > Python-ideas mailing list -- python-ideas@python.org > To unsubscribe send an email to python-ideas-le...@python.org > https://mail.python.

[Python-ideas] Re: Add asyncSetUpClass and asyncTearDown to IsolatedAsyncioTestCase

2020-12-24 Thread Andrew Svetlov
d at > https://mail.python.org/archives/list/python-ideas@python.org/message/C6MK3VH5FE3IXOKFAW2VWURD3MRXSRC2/ > Code of Conduct: http://python.org/psf/codeofconduct/ > -- Thanks, Andrew Svetlov ___ Python-ideas mailing list -- python-ideas@pyt

[Python-ideas] Re: Callable annotation featureset [Was: Alternative to Callable Annotation]

2020-11-29 Thread Andrew Svetlov
uot;, and also "in positional args, the syntax is [name ':'] type_expr > ['=' default_expr]." > > Gotta go, > > On Sun, Nov 29, 2020 at 12:02 AM Andrew Svetlov > wrote: > >> On Sun, Nov 29, 2020 at 1:49 AM Guido van Rossum >> wrote: >> &g

[Python-ideas] Re: Callable annotation featureset [Was: Alternative to Callable Annotation]

2020-11-29 Thread Andrew Svetlov
On Sun, Nov 29, 2020 at 1:49 AM Guido van Rossum wrote: > On Sat, Nov 28, 2020 at 9:32 AM Andrew Svetlov > wrote: > >> I would see support of all argument kinds support in any proposal for a >> new callable: positional only args, named args, keyword-only, *args and >

[Python-ideas] Re: Adding PyInstaller to the standard library

2020-11-20 Thread Andrew Svetlov
eas mailing list -- python-ideas@python.org > To unsubscribe send an email to python-ideas-le...@python.org > https://mail.python.org/mailman3/lists/python-ideas.python.org/ > Message archived at > https://mail.python.org/archives/list/python-ideas@python.org/message/FEFBAI26YDLC4I3

[Python-ideas] Re: Bringing the print statement back

2020-10-21 Thread Andrew Svetlov
Agree with Serhiy. IIRC Ruby allows skipping brackets for a function call, this is very confusing sometimes On Tue, Oct 20, 2020, 18:54 Antal Gábor wrote: > Couldn't agree more. > > On 2020. 10. 20. 16:43, Serhiy Storchaka wrote: > > 20.10.20 12:54, J. Pic пише: > >> At the same time, Guido says

[Python-ideas] Re: Add __keys__ or __items__ protocol

2020-02-18 Thread Andrew Svetlov
ved at > https://mail.python.org/archives/list/python-ideas@python.org/message/5YF4BSNER7MYOJ52JOUDPWWGW7UOI2CJ/ > Code of Conduct: http://python.org/psf/codeofconduct/ -- Thanks, Andrew Svetlov ___ Python-ideas mailing list -- python-ideas@py

[Python-ideas] Re: Expose _PyGC_generation0 for allowing internal use directly from a CPython extension

2019-10-18 Thread Andrew Svetlov
ubscribe send an email to python-ideas-le...@python.org > https://mail.python.org/mailman3/lists/python-ideas.python.org/ > Message archived at > https://mail.python.org/archives/list/python-ideas@python.org/message/OOFEW4ZBKBOF6VEXDCEXSR6HIL7PGAMX/ > Code of Conduct: http://python.org

[Python-ideas] Re: [Python-Dev] Feature Request: Python Pipes: Incluye sspipe module

2019-09-14 Thread Andrew Svetlov
ia > > ___ > Python-Dev mailing list -- python-...@python.org > To unsubscribe send an email to python-dev-le...@python.org > https://mail.python.org/mailman3/lists/python-dev.python.org/ > Message archived at > https://mail.python.org/ar

[Python-ideas] Re: PEP-603: Adding a frozenmap type to collections

2019-09-12 Thread Andrew Svetlov
Please bring your questions to https://discuss.python.org/t/pep-603-adding-a-frozenmap-type-to-collections/2318 to have the single discussion site. On Fri, Sep 13, 2019 at 5:06 AM Andrew Barnert wrote: > > On Sep 12, 2019, at 11:15, Andrew Svetlov wrote: > > > > As Yuri

[Python-ideas] Re: PEP-603: Adding a frozenmap type to collections

2019-09-12 Thread Andrew Svetlov
later). > ___ > Python-ideas mailing list -- python-ideas@python.org > To unsubscribe send an email to python-ideas-le...@python.org > https://mail.python.org/mailman3/lists/python-ideas.python.org/ > Message archived at > https://m

[Python-ideas] Re: asyncio: futures and tasks with synchronous callbacks

2019-08-01 Thread Andrew Svetlov
archives/list/python-ideas@python.org/message/BPKASVTS4OVV7JMJ7QY632FGMC7XVGP7/ > Code of Conduct: http://python.org/psf/codeofconduct/ -- Thanks, Andrew Svetlov ___ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send

[Python-ideas] Re: Comparison operator support (>= and <=) for type

2019-06-14 Thread Andrew Svetlov
IFW2UQNCCNYFZH3TFKD26WH7SKCP4YKT/ >> Code of Conduct: http://python.org/psf/codeofconduct/ > > ___ > Python-ideas mailing list -- python-ideas@python.org > To unsubscribe send an email to python-ideas-le...@python.org > https://mail.pytho

[Python-ideas] Re: Add «iterate non-blocking» wrapper to prevent blocking loop too long

2019-06-14 Thread Andrew Svetlov
nd an email to python-ideas-le...@python.org > https://mail.python.org/mailman3/lists/python-ideas.python.org/ > Message archived at > https://mail.python.org/archives/list/python-ideas@python.org/message/XLXI57JYP6DXDBQIBCV4SUD4DRUN3JW4/ > Code of Conduct: http://pyt

[Python-ideas] Re: Add «iterate non-blocking» wrapper to prevent blocking loop too long

2019-06-14 Thread Andrew Svetlov
https://mail.python.org/mailman3/lists/python-ideas.python.org/ > Message archived at > https://mail.python.org/archives/list/python-ideas@python.org/message/TLYGM36EZQLH6BBNI55QMAYOM3IPWZWB/ > Code of Conduct: http://python.org/psf/cod

[Python-ideas] Re: Add «iterate non-blocking» wrapper to prevent blocking loop too long

2019-06-14 Thread Andrew Svetlov
r than implicit", and really > asserts the intention of the code writer, and have > a low cost to implement in the stdlib. > > > > And it is semantically more correct at the cost of maybe 3loc on the stdlib. > > On Fri, 14 Jun 2019 at 10:57, Andrew Svetlov wrote: >&

[Python-ideas] Re: Add «iterate non-blocking» wrapper to prevent blocking loop too long

2019-06-14 Thread Andrew Svetlov
hon-ideas@python.org/message/4ZTLXBAQPFYQNITNB3RLRCW5D2QXKGBI/ > Code of Conduct: http://python.org/psf/codeofconduct/ -- Thanks, Andrew Svetlov ___ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le..

[Python-ideas] Re: Add «iterate non-blocking» wrapper to prevent blocking loop too long

2019-06-14 Thread Andrew Svetlov
ling list -- python-ideas@python.org > To unsubscribe send an email to python-ideas-le...@python.org > https://mail.python.org/mailman3/lists/python-ideas.python.org/ > Message archived at > https://mail.python.org/archives/list/python-ideas@python.org/message/EZWJS6OTBDG7LCX2WECDMPET6I5B

Re: [Python-ideas] dict.merge(d1, d2, ...) (Counter proposal for PEP 584)

2019-03-05 Thread Andrew Svetlov
> >___ > >Python-ideas mailing list > >Python-ideas@python.org > >https://mail.python.org/mailman/listinfo/python-ideas > >Code of Conduct: http://python.org/psf/codeofconduct/ > > > > > > ___ > Python-ideas mailing list > Python-ideas@python.org > https://mail.python.org/mailman/listinfo/python-ideas > Code of Conduct: http://python.org/psf/codeofconduct/ -- Thanks, Andrew Svetlov ___ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/

Re: [Python-ideas] struct.unpack should support open files

2018-12-26 Thread Andrew Svetlov
On Wed, Dec 26, 2018 at 11:26 AM Steven D'Aprano wrote: > On Wed, Dec 26, 2018 at 09:48:15AM +0200, Andrew Svetlov wrote: > > > The perfect demonstration of io objects complexity. > > `stream.read(N)` can return None by spec if the file is non-blocking >

Re: [Python-ideas] struct.unpack should support open files

2018-12-25 Thread Andrew Svetlov
On Wed, Dec 26, 2018 at 7:12 AM Steven D'Aprano wrote: > On Tue, Dec 25, 2018 at 01:28:02AM +0200, Andrew Svetlov wrote: > > > The proposal can generate cryptic messages like > > `a bytes-like object is required, not 'NoneType'` > > How will it generate s

Re: [Python-ideas] struct.unpack should support open files

2018-12-24 Thread Andrew Svetlov
) returns anything other than N bytes, > > for what it's worth). > > Indeed. Except that we should raise precisely the same exception type > that struct.unpack() currently raises in the same circumstances: > > py> struct.unpack("ddd", b"a") > Traceback (most recent call last): > File "", line 1, in > struct.error: unpack requires a bytes object of length 24 > > rather than ValueError. > > > > -- > Steve > ___ > Python-ideas mailing list > Python-ideas@python.org > https://mail.python.org/mailman/listinfo/python-ideas > Code of Conduct: http://python.org/psf/codeofconduct/ > -- Thanks, Andrew Svetlov ___ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/

Re: [Python-ideas] struct.unpack should support open files

2018-12-24 Thread Andrew Svetlov
try block instead of verifying the buffer type > beforehand. > >> ___ > Python-ideas mailing list > Python-ideas@python.org > https://mail.python.org/mailman/listinfo/python-ideas >

Re: [Python-ideas] IPLike objects

2018-10-21 Thread Andrew Svetlov
LookupSpecial. > > (socketmodule.c[5]) > > idna_converter(PyObject *obj, struct maybe_idna *data) > { > ... > _Py_IDENTIFIER(__ipaddr__); > ... > func = _PyObject_LookupSpecial(obj, &PyId___ipaddr__); > if (fu

Re: [Python-ideas] Add hooks to asyncio lifecycle

2018-06-11 Thread Andrew Svetlov
ntation, like uvloop. They shouldn't be > used to add some framework- or library-specific functionality. That's > why I think that locking policies does not make a lot of sense. > > Yury > On Mon, Jun 11, 2018 at 12:40 PM Andrew Svetlov > wrote: > > > > Sorr

Re: [Python-ideas] Add hooks to asyncio lifecycle

2018-06-11 Thread Andrew Svetlov
Sorry, smartphone is not my preferred tool. aiohttp doesn't depend on event loop implementation but uses public API only. aiohttp test suite allows to check against asyncio, uvloop, and tokio but it is another story. On Mon, Jun 11, 2018 at 7:35 PM Andrew Svetlov wrote: > In my mind

Re: [Python-ideas] Add hooks to asyncio lifecycle

2018-06-11 Thread Andrew Svetlov
oposal of being overly general, and > > is quite simple to implement. But it does let people get creative with > > the stack. > > > > > > > > > > ___ > > Python-ideas mailing list > > Python-ideas@python.or

Re: [Python-ideas] Add hooks to asyncio lifecycle

2018-06-10 Thread Andrew Svetlov
event loops to be managed. Given a way to close that loophole, the > application should already have the ability to enforce everything else that > it wants to enforce via the existing event loop and event loop policy APIs. > > Cheers, > Nick. > > -- > Nick Co

Re: [Python-ideas] Add hooks to asyncio lifecycle

2018-06-06 Thread Andrew Svetlov
iters because that's less support, and > less bug reports to deal with. > > Using asyncio is scary and mysterious enough for a lot of people, so I > want to make the experience as natural as possible. I don't want people > to have to read my doc an

Re: [Python-ideas] Built-in function to run coroutines

2016-11-12 Thread Andrew Svetlov
s). > > -- > Ivan > > > ___ > Python-ideas mailing list > Python-ideas@python.org > https://mail.python.org/mailman/listinfo/python-ideas > Code of Conduct: http://python.org/psf/codeofconduct/ -- Thanks, Andrew Svetlov _

Re: [Python-ideas] An exciting opportunity to update PEP 3156

2016-09-11 Thread Andrew Svetlov
/listinfo/python-ideas > Code of Conduct: http://python.org/psf/codeofconduct/ > -- Thanks, Andrew Svetlov ___ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/

Re: [Python-ideas] Changing optimisation level from a script

2016-09-09 Thread Andrew Svetlov
; Steve > ___________ > Python-ideas mailing list > Python-ideas@python.org > https://mail.python.org/mailman/listinfo/python-ideas > Code of Conduct: http://python.org/psf/codeofconduct/ > -- Thanks, Andrew Svetlov ___ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/

Re: [Python-ideas] PEP 530: Asynchronous Comprehensions

2016-09-07 Thread Andrew Svetlov
keyword in 3.7 and only adding "await in > comprehensions and generator expressions" support to 3.6, that seems > reasonable to me > > Cheers, > Nick. > > -- > Nick Coghlan | ncogh...@gmail.com | Brisbane, Australia > ___ > Python-ideas ma