Martin Altmayer added the comment:
Thanks for the explanation, I did not know re.VERBOSE. I still think the
behavior is a bit confusing, but it's probably not worth the effort to change
this.
--
type: behavior -> enhancement
___
Python
New submission from Martin Altmayer :
re.escape('\n') returns '\\\n', i.e. a string consisting of a backslash and a
newline. I believe it should return '\\n', i.e. a backslash and an 'n'. If the
escape-result still contains a verbatim newline, why e
Change by Martin Altmayer :
--
nosy: +MartinAltmayer
___
Python tracker
<https://bugs.python.org/issue33649>
___
___
Python-bugs-list mailing list
Unsubscribe:
Martin Altmayer added the comment:
Added a small PR. Shall we update the doc? With this PR there is no reason
anymore to disallow timeouts greater than one day in asyncio.
Greetings from the sprints @ Edinburgh!
--
nosy: +MartinAltmayer
Change by Martin Altmayer :
--
keywords: +patch
pull_requests: +8048
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue34263>
___
___
Py
Martin Altmayer added the comment:
I don't think this is a mere documentation problem: If a future cannot be
cancelled because it is already done, cancel must return False.
As Johannes' example demonstrates, a wrong return value from cancel might lead
to a cancelled task being conti
New submission from Martin Altmayer :
In the following code I use a class for dictionary-keys that has a
__hash__-function but cannot be ordered and try to print that dictionary
with a PrettyPrinter.
import pprint
pp = pprint.PrettyPrinter()
# A class that supports hashing and comparison for