New submission from christof :
Hello,
I have a simple code which triggers a timeout if a task did not complete
import asyncio
async def task_timeout():
condition = asyncio.Condition()
with await condition:
try:
await asyncio.wait_for(condition.wait(), timeout=4
christof added the comment:
In my previous comment, what I want to implement is not a timeout for a task to
complete but more precisely a timeout triggered if the coroutine was not wake
up by a notify on the condition.
--
___
Python tracker
Christof added the comment:
A compatibility break in a minor bugfix version is never a good idea I
guess. I understand the reasoning but this change may break quite a few
packages (at least it broke mine). A workaround in programs is easy but
for already released and deployed versions simply
Christof Hanke added the comment:
Andrei,
See https://bugs.python.org/issue42958
Someone else stumbled over this topic.
Maybe you can merge these two requests?
Otherwise, I'm fine with a new arg.
Christof
--
___
Python tracker
&
Christof Hanke added the comment:
Hi,
this is also discussed in https://bugs.python.org/issue41354.
Ciao,
Christof
--
nosy: +chanke
___
Python tracker
<https://bugs.python.org/issue42
Christof Hanke added the comment:
Hi Andrei,
I would follow rsync.
>From the man page:
"""
[...]
-c, --checksum
This changes the way rsync checks if the files have been changed
and are in need of a transfer. Without this option, rsync
uses
Christof Hanke added the comment:
Andrei,
cmp is the deep-compare part of filecmp. I thought we were taking about the
shallow one.
Thus,
- shallow like rsync "quick": size + mtime.
- deep like cmp
--
___
Python tracker
<https://bu
Christof Hanke added the comment:
I understand that you are reluctant to change existing code.
But for me as a sysadmin, the current behavior doesn't make sense for two
reasons:
* st.st_size is part of _sig. why would you do a deep compare if the two
files have a different l
New submission from Christof Hanke :
help(filecmp.cmp) says:
"""
cmp(f1, f2, shallow=True)
Compare two files.
Arguments:
f1 -- First file name
f2 -- Second file name
shallow -- Just check stat signature (do not read the files).
Change by Christof Hanke :
--
keywords: +patch
pull_requests: +20722
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/21580
___
Python tracker
<https://bugs.python.org/issu
New submission from Christof Hanke:
On https://docs.python.org/2/library/argparse.html (and on those of the
3.6-Version) it says at the bottom:
"""
ArgumentParser.error(message)
This method prints a usage message including the message to the standard
error and termina
11 matches
Mail list logo