+1 I would appreciate being able to create a frozenset using f{1, 2, 3}.
This will also make the `repr` of frozensets shorter.
On Sun, Jan 16, 2022 at 10:33 AM Steven D'Aprano
wrote:
> Inspired by this enhancement request:
>
> https://bugs.python.org/issue46393
>
> I thought it might be time to
Hello, I'm new here. Has anyone proposed the following solution yet?
list.from_args(1, 2, 3)
tuple.from_args(1, 2, 3)
set.from_args(1, 2, 3)
frozenset.from_args(1, 2, 3)
iter.from_args(1, 2, 3)
array.array.from_args('i', 1, 2, 3)
___
Python-ideas mailing
On Sat, Jan 29, 2022 at 3:16 AM Jure Šorn wrote:
> frozenset.from_args(1, 2, 3)
This wouldn’t solve the problem at hand, as ‘frozenset’ could be rebound.
And what advantage does this have over the existing constructors?
-CHB
> iter.from_args(1, 2, 3)
> array.array.from_args('i', 1, 2, 3)
>
Btw related question,
Why it was decided that list comprehension variables are scoped?
On Mon, 17 Jan 2022 at 9:06 PM John Sturdy wrote:
> This is clearly one for me to abandon! Thanks for the explanations.
>
>
> John
>
> On Mon, Jan 17, 2022 at 7:04 PM Paul Moore wrote:
>
>> On Mon, 17 Jan 20
On Sun, Jan 30, 2022 at 12:46:51AM +0200, Iyad Ahmed wrote:
> Btw related question,
> Why it was decided that list comprehension variables are scoped?
http://python-history.blogspot.com/2010/06/from-list-comprehensions-to-generator.html
--
Steve
___