[Python-ideas] TaskGroup and create_task method.

2022-06-13 Thread Abdulla Al Kathiri
Hello all, I am trying the TaskGroup class in the python 3.11 beta version. And I like it a lot. It makes asynchronous programming intuitive enough even for the less experienced like myself. I can see myself teaching this to my colleges when they run linux parallel subprocesses. I will try to

[Python-ideas] Re: PEP 671 (late-bound arg defaults), next round of discussion!

2022-06-13 Thread Todd
On Sun, Jun 12, 2022, 16:22 Bluenix wrote: > I stumbled upon PEP 671 again today, and for what it's worth I fully agree > with everything said here. > > For the same reasons as you listed, I am generally opposed to PEP 671. > Wrapping functions in one way or another is extremely common and this P

[Python-ideas] Re: PEP 671 (late-bound arg defaults), next round of discussion!

2022-06-13 Thread Steve Jorgensen
To clarify my statement about readability of the '@' prefix option… I think that its meaning is less clear if one doesn't already know what the syntax means. I think the code would be easier to skim, however, using that option after one does know its meaning. My favorite options are '@' or '?='

[Python-ideas] Re: PEP 671 (late-bound arg defaults), next round of discussion!

2022-06-13 Thread Chris Angelico
On Mon, 13 Jun 2022 at 18:31, Steve Jorgensen wrote: > > Ah and since previous parameters can be referenced, and `self` or `cls` is > the first argument to any method, that is always available to default value > expressions. Correct? Correct! ChrisA

[Python-ideas] Re: PEP 671 (late-bound arg defaults), next round of discussion!

2022-06-13 Thread Steve Jorgensen
Ah and since previous parameters can be referenced, and `self` or `cls` is the first argument to any method, that is always available to default value expressions. Correct? ___ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an

[Python-ideas] Re: PEP 671 (late-bound arg defaults), next round of discussion!

2022-06-13 Thread Chris Angelico
On Mon, 13 Jun 2022 at 17:18, Steve Jorgensen wrote: > > One thing was not clear to me from the current PEP 671 text. > > When that is used in a method, what is the closure for the expressions? > Would/should assignments in the class definition be available or only global > variables in the modu

[Python-ideas] Re: PEP 671 (late-bound arg defaults), next round of discussion!

2022-06-13 Thread Steve Jorgensen
One thing was not clear to me from the current PEP 671 text. When that is used in a method, what is the closure for the expressions? Would/should assignments in the class definition be available or only global variables in the module and local variables in the function (if applicable) in which

[Python-ideas] Re: PEP 671 (late-bound arg defaults), next round of discussion!

2022-06-13 Thread Steve Jorgensen
I couldn't figure out the best place in the reply tree to post this, so replying to the OP, answering the questions, taking into account other discussion that has happened. > 1) If this feature existed in Python 3.11 exactly as described, would you use it? Definitely > 2) Independently: Is the