[Python-ideas] Re: allow initial comma

2021-04-16 Thread Hans Ginzel
On Tue, Mar 16, 2021 at 08:28:05AM -0700, Guido van Rossum wrote: Personally, I'd like to remind you that when I designed Python my ideal was to use punctuation in ways that are similar to the way it is used in plain English, with exceptions only for forms commonly found in many other programming

[Python-ideas] Re: allow initial comma

2021-04-16 Thread Hans Ginzel
Thank you Roland, for that idea! On Tue, Mar 16, 2021 at 01:52:48PM +0100, Roland Puntaier via Python-ideas wrote: On Mon 21Mar15 22:24, Stephen J. Turnbull wrote: Roland Puntaier via Python-ideas writes: Aesthetic Concern: No = It might seem an aesthetic concern, but I

[Python-ideas] Re: Iterable scalar values returning itself ones?

2021-04-16 Thread Chris Angelico
On Fri, Apr 16, 2021 at 7:32 PM Hans Ginzel wrote: > > On Wed, Apr 14, 2021 at 09:05:17AM -0700, Christopher Barker wrote: > >so that one could write: > >for i in 23: > > ... > > I am proposing this ill run the cycle ones with i=23. > And other people would expect it to run 23 times. Integers

[Python-ideas] Re: Iterable scalar values returning itself ones?

2021-04-16 Thread Hans Ginzel
On Wed, Apr 14, 2021 at 09:05:17AM -0700, Christopher Barker wrote: so that one could write: for i in 23: ... I am proposing this ill run the cycle ones with i=23. iter(5) Should return the same thing as: iter((5,)) Yes. As I wrote in the "traverse" example below iter(s) should return