[issue46574] itertools.count should work with non-number types

2022-01-29 Thread Mital Ashok
New submission from Mital Ashok : There's no reason that `count('', 'a')` for `'', 'a', 'aa', ...` or `count((), (1,))` for `(), (1,), (1, 1), ...` shouldn't work. count(a, b) should be equivalent to accumulate(chain((a,), repeat(b))) The docs don't strongly suggest that it won't work

[issue30955] \\N in f-string causes next { to be literal if not escaped

2017-07-17 Thread Mital Ashok
New submission from Mital Ashok: Take this format python code: import unicodedata c = chr(0x012345) To print that character as a string literal, you would expect to do: print(f"'\\N{{{unicodedata.name(c)}}}'") Which should print a literal quote (`'`), a backw

[issue24327] yield unpacking

2015-05-29 Thread Mital Ashok
New submission from Mital Ashok: (This is more of a feature request than a bug, but https://www.python.org/dev/peps/pep-0042/ said to post it here) My request is to have syntax like this: yield *iterable to lazily return the iterable's items, not much unlike: # ... for i