[Python-ideas] Slice 'size' parameter (in the style of pairwise)

2022-06-03 Thread Kevin
I might be posting this prematurely, but I had an idea and wanted to float it. Also, I'm new here so hopefully this is appropriate. How about augmenting slicing with an additional parameter 'size' (name chosen to achieve alliteration; 'start', 'stop', 'step', and 'size'), as such: >>> a_list =

[Python-ideas] Re: Expand the try-expect syntax to support conditional expect block

2022-06-03 Thread Nadav Misgav
should I try to implement this? seems there is some acceptance ___ 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 a

[Python-ideas] Re: Expand the try-expect syntax to support conditional expect block

2022-06-03 Thread Steven D'Aprano
On Fri, Jun 03, 2022 at 06:43:59PM -, Nadav Misgav wrote: > should I try to implement this? seems there is some acceptance If you want to experiment with an implementation just for your own pleasure, then go ahead. Or if you think that the implementation is trivial and simple, and a working

[Python-ideas] Re: Expand the try-expect syntax to support conditional expect block

2022-06-03 Thread Serhiy Storchaka
03.06.22 21:43, Nadav Misgav пише: should I try to implement this? seems there is some acceptance No core developer supported this feature. My example shows that there is a problem with the proposed syntax. It is too similar to the existing valid syntax, it will confuse both people and the c