This is a common scenario on python-list or python-ideas:
Someone has an idea that they think is the greatest thing since sliced
bread. They propose it, and feel hurt / rejected when they get pushback
instead of everyone jumping up and down and saying how brilliant it is.
Sometimes they are
iner, but not "index". I suggest it's harder than
you think. (Try it!)
How much harder? Can you post your candidate?
It was you that said it could be a 1-liner. The burden of proof is on
you, if you still want to argue the point.
Rob Cliffe
____
rden of proof is on
you, if you still want to argue the point.
Rob Cliffe_______
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org
h a function should be part of the standard library.
Well, you are 1 user. Have you evidence that there are (many) others?
Best wishes
Rob Cliffe
--- Original Message ---
On Thursday, March 10th, 2022 at 8:38 PM, Rob Cliffe via Python-ideas
wrote:
This could cause confusion because st
would
that precision information come from?
___________
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at
https:
ace, I don’t have
a strong opinion about that because I don’t have a use case for this feature
myself.
Ronald
—
Twitter / micro.blog: @ronaldoussoren
Blog: https://blog.ronaldoussoren.net/
_______
Python-ideas mailing list -- [email protected]
To unsub
> On 10 Apr 2022, at 11:20, Chris Angelico wrote:
>
> On Sun, 10 Apr 2022 at 18:44, Ronald Oussoren via Python-ideas
> mailto:[email protected]>> wrote:
>>
>>
>>
>> On 8 Apr 2022, at 16:33, Steven D'Aprano wrote:
>>
>> On
his at runtime, or
as a lint tool.
Ronald
—
Twitter / micro.blog: @ronaldoussoren
Blog: https://blog.ronaldoussoren.net/
_______
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.pyt
itor service health
while Response(status=200, json={"stats": stats}) := health_check():
print(stats)
time.sleep(5)
See above - shouldn't try to assign to a literal.
Best wishes,
Rob Cliffe
_______
Python-ideas mailing
a sub-expression, and it Just Works if you use the assignment statement
instead.
_______
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/p
urrent type checker
regime, I thought it might be worth discussing. Apologies if I missed any more
recent discussions.)
Thanks,
Aaron
[1]
https://mail.python.org/archives/list/[email protected]/thread/OVIHVRKFUN4KMDTVSIAAN2CGR7VXFGQS/#GE6RDNWTR4PPKSMKSGMCFBFUJ4
tax proposed
> in the PEP is exactly right - not too hot, not too cold. But, like the Oracle
> at Delphi in Greek mythology, it doesn’t tell me why, so I don’t have a
> rebuttal for the arguments against the PEP syntax.
- Aaron
_______
Python-ideas m
quot; anyway. I do
appreciate the responses and discussion!
Thanks,
Aaron
_______
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.pyth
On 07/06/2022 15:28, [email protected] wrote:
I think
```
d.get(key, default=3)
```
way more readable than
```
d.get(key, 3)
I completely agree.
Best wishes
Rob Cliffe
___
Python-ideas mailing list -- [email protected]
To
On 08/06/2022 15:40, Eric V. Smith via Python-ideas wrote:
On 6/7/2022 4:59 PM, Chris Angelico wrote:
On Wed, 8 Jun 2022 at 00:36, wrote:
Hello!
Do you know if there has been discussions around why is the default
argument is positional only in the dict methods get and pop?
I think
; type(mygen())
Best wishes
Rob Cliffe
___________
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at
https://mai
ng could be added piecemeal to iterators such as open() according
to demand.
Of course, for non-reusable iterators it would be forbidden to go
backwards (or even remain in the same place):
agen[42]
agen[41]
ValueError: Generator has been used up past the slice point. (Better
wordi
by '=>'.
_______
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at
https://mail.python.org/archives
d version might bridge
that gap by introducing "later" or "defer" or "delay" in a narrow
context, but not foreclosing its later use more broadly.
On Wed, Jun 15, 2022 at 8:38 AM Steven D'Aprano
wrote:
On Tue, Jun 14, 2022 at 11:59:44AM +0100, Rob Cliffe v
reponderance of responses here seem to think in terms of
which syntax choice is best. Although I have a slight preference,
all of the options seem decent to me.
I am definitely in favor of having the PEP accepted and implemented.
_______
On 15/06/2022 23:01, Steven D'Aprano wrote:
On Wed, Jun 15, 2022 at 01:58:28PM +0100, Rob Cliffe via Python-ideas wrote:
Please. This has been many times by several people already. No-one is
going to change their mind on this by now. There's no point in
rehashing it and adding no
sed for
automatically creating complex parsers based on signatures
(https://jsonargparse.readthedocs.io/en/stable/#classes-methods-and-functions).
I do plan to support identifying what **kwargs accepts based on its use. See
all the cases currently supported
https://jsonargparse.readthedocs.io/en/latest/
tartTime) # Help, why is this
printing "Elapsed time: -0.001"?
Example 2:
def g(x, y=>x**2):
x = x+1
print(y)
Best wishes
Rob Cliffe
_______
Python-ideas mailing list -- [email protected]
To unsubscribe send an em
tter than implicit in this case.
You could argue that islice should be made a builtin, but I don't know
that it's used enough to justify that.
_______
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to python-idea
]
# do stuff
I can't really guess how useful the "use point" version would be.
It's not a pattern I've used, I use a zero-argument function very
occasionally but I can't recall a case where I used a lambda
ot; simply isn't
*orthogonal* to "late binding in the general sense." Yes, they are
distinct, but very closely adjacent.
We disagree about that. *Please consider the */_**IMPLEMENTATIONS**_/*of
each. I respectfully suggest that you may conclude that they are not so
close after al
e to it in the PEP but removed it because it was unhelpful.
Rob Cliffe_______
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived
On 20/06/2022 17:39, Jeremiah Paige wrote:
On Sat, Jun 18, 2022 at 5:42 PM Rob Cliffe via Python-ideas
wrote:
To me, the natural implementation of slicing on a non-reusable
iterator
(such as a generator) would be that you are not allowed to go
backwards
or even stand
frustrated when people are invited to comment on PEP 671, and they don't
comment on PEP 671, but on something else.
BTW Thank you Stephen Turnbull, for your measured comments to this thread.
Best wishes
Rob Cliffe_______
Python-ideas mailing list -- py
objects
would have to be generalized to hold any expression, not only an import.
The updated and more detailed draft of PEP 690 might be interesting reading
here:
https://github.com/python/peps/pull/2613
Carl
___
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to python
On Tue, Jun 21, 2022 at 4:28 PM Chris Angelico wrote:
> On Wed, 22 Jun 2022 at 08:21, Carl Meyer via Python-ideas
> wrote:
> >
> >
> >
> > On Tue, Jun 21, 2022 at 4:10 PM David Mertz, Ph.D. <
> [email protected]> wrote:
> >>
> >>
e same thing. :-)
>
I’m not sure what you mean. I don’t think there’s any way PEP 690 can
introduce dynamic scoping like this. Can you give an example?
Carl
___________
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to python-id
s from me. PRs, or issues, or whatever, can go to
https://github.com/DavidMertz/peps/blob/master/pep-.rst as well as
mentioning them in this thread.
PEP:
Title: Generalized deferred computation
Author: David Mertz
Discussions-To:
https://mail.python.org/archives/list/python-ideas@python.
n a function parameter it is not
> processed:
>
> func(Void) == func() == "default"
> _______
> Python-ideas mailing list -- [email protected]
> To unsubscribe send an email to [email protected]
> ht
etc. It
just gives the programmer more freedom to specify literal bytes objects in the
source code.
_______
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/
exited. Again, this would be unexpected.
Best wishes
Rob Cliffe
_______
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message
On 04/12/2022 17:08, Chris Angelico wrote:
On Mon, 5 Dec 2022 at 04:07, Rob Cliffe via Python-ideas
wrote:
On 30/11/2022 20:27, Anony Mous wrote:
Danceswithmice wrote:
The idea is that YOU write "local:", and the interpreter, without you
ever seeing it, promotes that int
mentation.
Ronald
—
Twitter / micro.blog: @ronaldoussoren
Blog: https://blog.ronaldoussoren.net/
_______
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/m
)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> rf'{2+2}'
'4'
Best wishes
Rob Cliffe
_______
Python-ideas mailing list -- python-ideas@pyth
rn mystr(str(self).upper())
s = mystr("hello")
print(s.method()) # prints 1234
print(s.upper()) # prints HELLO
print(s.upper().method()) # prints 1234
Best wishes
Rob Cliffe___________
Python-ideas mailing list -- [email protected]
at: If you were subclassing str, you would probably want __str__ and
__repr__ (if you were not overriding them) to return plain strings.
Best wishes
Rob Cliffe
_______
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to python-ideas-l
.partition('@', ':')
Beneficially for the caller, the number of tuple elements can be determined
based on the number of positional arguments. For n arguments, a tuple of length
2n + 1 will be returned.
Thank you for any and all feedback.
James
[1] - https://docs.python.org/3/li
("?", "#")'? would it return a tuple of length five?)
_______
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archi
(rationale: that would allow
either proposal to advance without delaying the other -- bearing in
mind a hopefully-unlikely chance of merge conflicts if they reach
release-readiness implementation status in parallel)
_______
Python-ideas mailing list
tand
it, limited to at-most-one wildcard pattern per match (by sensible
design).
> I would prefer "one bite per call" partition
> to a partition at multiple points.
That does seem clearer - and clearer is, generally, probably better.
I suppose an analysis (that I don'
exactly-once while
the input is scanned (also iterated) exactly-once
_______
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at
port A_UNIX_MODULE on ImportError
>>> try value = int(x[2]) but value = 0 on IndexError, ValueError
___________
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/ma
gards,
James
___
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at
https://mail.python.org/archives/list/python-ideas@python
nk it is better if it strips off all whitespace,
so that it can be understood as working similarly to strip().
(2) The definition could be simplified to
s1.rstrip() + ' ' + s2.lstrip()
(leave an initial/final space when one string is whitespace only).
typing. Just sayin'.
Best wishes
Rob Cliffe
I admit that I use M-SPC (aka just-one-space) lot in Emacsen, but I
can't recall wanting it in a program in any language.
_______
Python-ideas mailing list -- [email protected]
To unsubscribe send
by (at
least) one space. Bear with me while I repeat it:
Lib\site-packages\numpy\distutils\system_info.py:2677:
cmd = config_exe + ' ' + self.append_config_exe + ' ' + option
cmd = config_exe & self.append_config_exe & option
Best wishes
Rob Cliffe
You make a very powerful point, Bruce. Much more so IMO than anyone
else has so far.
Unless anyone else can find a convincing rebuttal, I withdraw my proposal.
Best wishes
Rob Cliffe
On 07/03/2023 21:49, Bruce Leban wrote:
On Sun, Mar 5, 2023 at 7:39 PM Rob Cliffe via Python-ideas
wrote
site-packages\twisted\mail\test\test_pop3.py:376: output =
b'\r\n'.join(client.response) + b'\r\n'
Lib\site-packages\twisted\mail\test\test_smtp.py:100: message =
b'\n'.join(self.buffer) + b'\n'
Lib\site-packages\twisted\mail\test\test_smtp.py:344: m
,
Rob! 😬)
A few reasonably representative examples:
Lib\cgitb.py:106:
pyver = 'Python ' + sys.version.split()[0] + ': ' + sys.executable
pyver = 'Python' & sys.version.split()[0] + ':' & sys.executable
Lib\ftplib.py:289:
cmd =
On 09/03/2023 05:25, Bruce Leban wrote:
On Wed, Mar 8, 2023 at 4:34 PM Rob Cliffe via Python-ideas
wrote:
It seems to me that it would be useful to be able to make the
str.join()
function put separators, not only between the items of its
operand, but
also optionally at
it is trickier still.
As it is so easy to get these things wrong, perhaps having it built in
is not such a terrible idea?😁
Best wishes
Rob Cliffe
In any case I recommend reaching out for a library like Rich
(https://github.com/Textualize/rich) if you care about formatting the output
or s in middle),
last.lstrip()))
What is harder is to be sure that this would be the expected behaviour
when using a `&` operator on strings.
Why `' a' & 'b'` would produce `'a b'` and `' ' & 'b'` produce `'
b'` for exam
uivalent solution is easier to understand and
to write, and will lead to way less confusion about what join()
actually does.
_______
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail
t; object.__mro__
(,)
Best wishes
Rob Cliffe_______
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived
ols (such as pylint) detect a potential
problem with the code?
Thanks,
James
___
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.
should
make it much easier to use "partial" in the future.
Thanks for your consideration.
_______
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3
nor I/O operations is involved. It just make some basic data
representation conversion and invoke the method in dynamic library.
This is just a raw idea. If it is valuable, it can take a discussion and make
further steps.
Thanks_______
Python-ideas mailing
parameter `color`
Is there any reason you can't write
pfr =r"\mathjax{{color}}{{text}}".replace("{color}", "blue")
result =r"\mathjax{{color}}{{text}}".replace("{text}", "Spanish") Best wishes
Rob Cliffe
sError: Implementation of `my_fun` is not finished.
```
This change could break some code, as for now ellipsis in the middle
of code is silently ignored, but I don't think anybody seriously
relies on that behavior.
haael
___________
Python-ideas mail
On 12/06/2023 21:11, Barry wrote:
On 12 Jun 2023, at 16:55, BoppreH via Python-ideas
wrote:
Then the empty list creates hard-to-track bugs. I'm familiar with the iterator
protocol and why the behavior above happens, but couldn't it be prevented?
I don’t think so. It is not al
ilar encounters?
_______
Python-ideas mailing list [email protected]
To unsubscribe send an email [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived
athttps://mail.python.org/archives/list/python-ideas@pyt
CHB
>
> [*] maybe not, actually -- once the infrastructure was in place, adding a
> package would require someone requesting that it be added, and someone on a
> "core team" approving it. That could be a pretty low level of effort,
> actually. The actual mechanism would be to
On Wed, Jul 5, 2023, 19:06 Chris Angelico wrote:
> On Thu, 6 Jul 2023 at 03:57, James Addison via Python-ideas
> wrote:
> > I also agree with a later reply about avoiding the murkier side of
> blockchains / etc. That said, it seems to me (again, sample size one
> anecdata) th
ty use cases.
>
> I don’t want to load a hash table to load a third party module on a UEFI
> interface.
>
> On Thu, Jul 6, 2023 at 9:11 AM James Addison via Python-ideas <
> [email protected]> wrote:
>
>> On Wed, Jul 5, 2023, 19:06 Chris Angelico wrote:
>>
hird party module on a UEFI
>> interface.
>>
>> On Thu, Jul 6, 2023 at 9:11 AM James Addison via Python-ideas <
>> [email protected]> wrote:
>>
>>> On Wed, Jul 5, 2023, 19:06 Chris Angelico wrote:
>>>
>>>> On Thu, 6 Jul 2023
That would not be mutually-exclusive with the presence of reviews --
verbal, written, or otherwise -- elsewhere.
Thanks,
James
[1] - https://github.com/jazzband/pip-tools/
[2] - https://www.reproducible-builds.org/
___
Python-ideas mailing list -- pyth
On Sun, Jul 9, 2023, 09:13 Chris Angelico wrote:
> On Sun, 9 Jul 2023 at 18:06, James Addison via Python-ideas
> wrote:
> >
> > On Sun, 9 Jul 2023 at 02:11, Cameron Simpson wrote:
> > > I have always thought that any community scoring system should allow
> > &g
On Sun, Jul 9, 2023, 15:52 Stephen J. Turnbull <
[email protected]> wrote:
> James Addison via Python-ideas writes:
>
> > The implementation of such a system could either be centralized or
> > distributed; the trust signals that human users infer from
packaging infrastructure.
On Sun, Jul 9, 2023, 16:09 James Addison wrote:
> On Sun, Jul 9, 2023, 15:52 Stephen J. Turnbull <
> [email protected]> wrote:
>
>> James Addison via Python-ideas writes:
>>
>> > The implementation of such a system co
On Sun, Jul 9, 2023, 16:25 Paul Moore wrote:
>
>
> On Sun, 9 Jul 2023 at 15:56, Stephen J. Turnbull <
> [email protected]> wrote:
>
>> James Addison via Python-ideas writes:
>>
>> > The implementation of such a system could either be c
does exactly the same as the C version and is more readable. Or am I
missing something?
Best wishes
Rob Cliffe___
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.pytho
On Thu, Jul 20, 2023, 01:19 Rob Cliffe via Python-ideas <
[email protected]> wrote:
>
>
> On 15/07/2023 21:08, Dom Grigonis wrote:
>
> Just to add. I haven’t thought about evaluation. Thus, to prevent
> evaluation of unnecessary code, introduction of C-style expres
On Sun, Jul 9, 2023, 23:35 Christopher Barker wrote:
> On Sun, Jul 9, 2023 at 8:37 AM James Addison via Python-ideas <
> [email protected]> wrote:
>
>> ISTM the primary use cases advanced here have been for "naive" users.
>>>> Likely they won'
how a new feature would improve realistic code patterns helps to defend
to proposal.
Ronald
—
Twitter / micro.blog: @ronaldoussoren
Mastodon: @[email protected].
Blog: https://blog.ronaldoussoren.net/
_______
Python-ideas mailing list -- pyt
something like this:
tt = 5
while (tt--):
# do something
It is exists in C++. And in my opinion it is very Pythonic
___
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https
r
3-question poll.
https://q5yitzu62.supersurvey.com
Would be interesting to see if my preference is an outlier or not really.
Kind regards,
D. Grigonis
___
Python-ideas mailing list [email protected]
To unsubscribe send an email topy
On 04/08/2023 14:02, Niktar Lirik via Python-ideas wrote:
Hi Daniil.
Yes, you can do almost same:
tt = 5
while tt := tt - 1:
print(tt)
"almost" is right. The OP's version, as far as I can tell, wants to do
post-decrement (test tt, then decrement it)
; '__repr__': lambda self: f"<{self.__class__.__name__}>",
> '__copy__': lambda self: self,
> '__deepcopy__': lambda self, memo: self,
> })
>
> Likely, the implementation should be refined a bit more.
>
not rocket science, getting sentinels correct is cumbersome for end
users. Providing such a function in the standard library is only a minor
maintainance burden, but a significant help for users working with sentinels.
Thanks for your consideration!
Tim___
ch in the right
direction.
Will continue discussing in this context.
> Matthias Görgens hat am 31.08.2023 11:29 CEST
> geschrieben:
>
>
> Seems nice. Just write a library and upload it to one of the usual places?
>
___________
Py
large memory footprint that is only
needed temporarily.
Best wishes
Rob Cliffe
PS Ooh, not quite true. I have used it to delete a variable that should
no longer be needed to detect accidental illegitimate use of said variable.
RC___
Python-ideas
large memory footprint that is only
needed temporarily.
Best wishes
Rob Cliffe___
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python
27; but not the other,
though I would be surprised if that happened in practice. The behaviour
is not guaranteed and should not be relied on.
Rob Cliffe_______
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to python-ideas
nt("Your variable name is "+ variable_name)
it does "work", but it doesn't make much sense with Python's semantics.
You could have two identifiers bound to the same object; which one you
got hold of would be essentially random.
Puzzled.
Rob Cliffe__
on that supports.
Peace,
-Sam
_______
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at
https://mail.python.org/archives/list/p
p> wrote:
> Samuel Freilich via Python-ideas writes:
>
> > This might all be too much thought about edge cases that don't
> > matter, but given the *_ns() functions in the time module (PEP
> > 564), I'm curious why datetime doesn't have a constructor
(self.mode := self.mode_valid(mode))
_______
Python-ideas mailing list [email protected]
To unsubscribe send an email [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived
athttps://mail.python.org/ar
On 12/23/23 02:09, Eric V. Smith via Python-ideas wrote:
On 12/21/2023 4:38 PM, Steve Jorgensen wrote:
I am finding that it would be useful to be able to define a dataclass that is
an abstract base class and define some of its field as abstract.
As I am typing this, I realize that I could
taclasses-and-properties-in-python
Let's also state, and discard, the idea that there is no need (from
Python's perspective) for an ABC at all, creating a super-(data)class,
and inheriting from there 'works' - but doesn't help comprehension.
--
Regards =dn
_
On 12/23/23 09:51, Chris Angelico wrote:
On Sat, 23 Dec 2023 at 07:13, DL Neil via Python-ideas
wrote:
On 12/23/23 02:09, Eric V. Smith via Python-ideas wrote:
On 12/21/2023 4:38 PM, Steve Jorgensen wrote:
I am finding that it would be useful to be able to define a dataclass that is
an
seems a bit OTT in this case.
Thoughts?
Best wishes
Rob Cliffe
_______
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at
http
rong. os.path.commonprefix uses min and max, not
sort. I withdraw it:
I also suspect that this function could be made more efficient. It
sorts the sequence. While sorting is very fast (thanks, Uncle Tim!) it
seems a bit OTT in this case.
Thoughts?
Best wishes
Rob Cliffe
____
case.
Thoughts?
Best wishes
Rob Cliffe
___________
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at
https://mail.python.o
call of async_iter.__anext__() instead of only at the end? As I
understand the finalizer is set when the generator is started.
- Is loop.run_until_complete(gen.aclose()) a sensible finalizer? If so, is there
even any other finalizer that would make sense? Maybe creating a task for
gen.aclose()
place.
Thanks,
Nick
_______
Python-ideas mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/
1501 - 1600 of 1693 matches
Mail list logo