[Python-ideas] Re: Generics alternative syntax

2022-02-09 Thread Abdulla Al Kathiri
Yeah I like <> because def f(…) is easier to the eyes to parse than def f[T](…) but in python we use [] for the types so it might not be consistent. Why can’t we attach the TypeVar as a class and function attributes? Abdulla Sent from my iPhone > On 8 Feb 2022, at 1:02 PM, Jonathan Slenders

[Python-ideas] Re: Datetime operation in itertools count

2022-02-09 Thread Aman Pandey
I can give it a try, but I have never done it before and anything which I should be knowing beforehand because it will be my first time. I would like to listen from other fellow developers what they think about this? On Wed, Feb 9, 2022 at 1:09 PM Christopher Barker wrote: > I think a datetime

[Python-ideas] Re: Datetime operation in itertools count

2022-02-09 Thread Christopher Barker
As I said, it’s an interesting exercise in any case. I have no idea if the core devs would be interested in adding it. There have been a couple recipes on this thread for an iterator, but I envision something like the range() object — it’s a lazy Sequence, not just an iterator. I think that would