[issue42536] Iterating on a zip keeps objects alive longer than expected (test_itertools leaks sometimes references)

2020-12-02 Thread Brandt Bucher
Brandt Bucher added the comment: It looks like Victor's original issue is unrelated to zip, though. That test run is clean after adding the same fix to: - itertools.product - itertools.combinations - itertools.combinations_with_replacement - itertools.permutations - itertools.zip_longest ...

[issue42536] Iterating on a zip keeps objects alive longer than expected (test_itertools leaks sometimes references)

2020-12-02 Thread Brandt Bucher
Brandt Bucher added the comment: (By the way, I didn't know that -F runs the tests forever... so I was waiting *almost* forever for it to finish!) -- ___ Python tracker ___ _

[issue42536] Iterating on a zip keeps objects alive longer than expected (test_itertools leaks sometimes references)

2020-12-02 Thread Brandt Bucher
Brandt Bucher added the comment: Also, it appears enumerate is affected as well. -- ___ Python tracker ___ ___ Python-bugs-list mai

[issue42550] re库匹配问题

2020-12-02 Thread Ma Lin
Ma Lin added the comment: This issue can be closed. '0x' 2 'd26935a5ee4cd542e8a3a7e74fb7a99855975b59' 40 '\n' 1 2+40+1 = 43 -- nosy: +malin ___ Python tracker ___ ___

[issue42550] re库匹配问题

2020-12-02 Thread ye andy
ye andy added the comment: What I mean by that is that the regex That I wrote should match successfully is a 42-bit string, but it is also successful when we add more newlines -- ___ Python tracker

[issue42550] re库匹配问题

2020-12-02 Thread Dennis Sweeney
Dennis Sweeney added the comment: Maybe you're looking for re.fullmatch: https://docs.python.org/3/library/re.html#re.fullmatch -- nosy: +Dennis Sweeney ___ Python tracker __

[issue42550] re库匹配问题

2020-12-02 Thread ye andy
ye andy added the comment: My regex requires ending with 0-9a-fa-f, and I now end with a line break, which in theory should not work. Why did it work? -- nosy: -Dennis Sweeney ___ Python tracker __

[issue42550] re库匹配问题

2020-12-02 Thread ye andy
ye andy added the comment: My regulus requires the beginning of 0x, the end of 0-9A-fa-f, my ending \n, he also shows success, my expected result is failure, I wrote the problem? -- ___ Python tracker _

[issue38630] subprocess.Popen.send_signal() should poll the process

2020-12-02 Thread Jack O'Connor
Jack O'Connor added the comment: This change caused a crash in the Duct library in Python 3.9. Duct uses the waitid(NOWAIT) strategy that Nathaniel Smith has described in this thread. With this change, the child process is reaped by kill() in a spot we didn't expect, and a subsequent call to

[issue42550] re库匹配问题

2020-12-02 Thread hongweipeng
hongweipeng added the comment: Maybe you need use `eth_re.match(a, re.MULTILINE)` or `eth_re.fullmatch(a)` . -- nosy: +hongweipeng ___ Python tracker ___ _

[issue42550] re库匹配问题

2020-12-02 Thread ye andy
ye andy added the comment: Okay, I just thought it was weird -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue42550] re库匹配问题

2020-12-02 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: https://docs.python.org/3/howto/regex.html#more-metacharacters $ Matches at the end of a line, which is defined as either the end of the string, or any location followed by a newline character. \Z Matches only at the end of the string. >>> eth_re

[issue42550] re库匹配问题

2020-12-02 Thread ye andy
Change by ye andy : -- stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

<    1   2