[issue42668] re.escape does not correctly escape newlines

2020-12-17 Thread Martin Altmayer
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

[issue42668] re.escape does not correctly escape newlines

2020-12-17 Thread Martin Altmayer
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

[issue33649] asyncio docs overhaul

2018-08-04 Thread Martin Altmayer
Change by Martin Altmayer : -- nosy: +MartinAltmayer ___ Python tracker <https://bugs.python.org/issue33649> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34263] asyncio: "relative *delay* or absolute *when* should not exceed one day"

2018-07-28 Thread Martin Altmayer
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

[issue34263] asyncio: "relative *delay* or absolute *when* should not exceed one day"

2018-07-28 Thread Martin Altmayer
Change by Martin Altmayer : -- keywords: +patch pull_requests: +8048 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue34263> ___ ___ Py

[issue26923] asyncio.gather drops cancellation

2016-06-14 Thread Martin Altmayer
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

[issue7429] PrettyPrinter cannot print dicts with unsortable keys

2009-12-03 Thread Martin Altmayer
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