[issue31828] Support Py_tss_NEEDS_INIT outside of static initialisation

2017-10-23 Thread Masayuki Yamamoto
Change by Masayuki Yamamoto : -- keywords: +patch pull_requests: +4067 stage: -> patch review ___ Python tracker ___ ___ Python-bugs

[issue31855] mock_open is not compatible with read(n) (and pickle.load)

2017-10-23 Thread Ron Rothman
Ron Rothman added the comment: Confirmed that the behavior exists in Python 3.6 as well. -- versions: +Python 3.6 ___ Python tracker ___ ___

[issue28936] test_global_err_then_warn in test_syntax is no longer valid

2017-10-23 Thread Ivan Levkivskyi
Change by Ivan Levkivskyi : -- pull_requests: +4068 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue28936] test_global_err_then_warn in test_syntax is no longer valid

2017-10-23 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: OK, I made a PR with the fix and a test that checks the line number for syntax error (so that the original purpose test_global_err_then_warn is preserved). -- ___ Python tracker

[issue31847] Fix commented out tests in test_syntax

2017-10-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset d7604f5d0621c23d037455acd682d0d489455d54 by Serhiy Storchaka (Miss Islington (bot)) in branch '3.6': bpo-31847: Fix commented out tests in test_syntax. (GH-4084) (#4095) https://github.com/python/cpython/commit/d7604f5d0621c23d037455acd682d0d48

[issue28936] test_global_err_then_warn in test_syntax is no longer valid

2017-10-23 Thread Guido van Rossum
Guido van Rossum added the comment: Am I needed here? -- nosy: -Jeremy.Hylton ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue31856] Unexpected behavior of re module when VERBOSE flag is set

2017-10-23 Thread Bob Kline
New submission from Bob Kline : According to the documentation of the re module, "When this flag [re.VERBOSE] has been specified, whitespace within the RE string is ignored, except when the whitespace is in a character class or preceded by an unescaped backslash; this lets you organize and ind

[issue2651] Strings passed to KeyError do not round trip

2017-10-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: A new Stackoverflow question gives a better illustration of how special-casing KeyError can be a nuisance. https://stackoverflow.com/questions/46892261/new-line-on-error-message-in-idle-python-3-3/46899120#46899120 >From a current repository build instead of 3.

[issue31856] Unexpected behavior of re module when VERBOSE flag is set

2017-10-23 Thread Matthew Barnett
Matthew Barnett added the comment: Your verbose examples put the pattern into raw triple-quoted strings, which is OK, but their first character is a backslash, which makes the next character (a newline) an escaped literal whitespace character. Escaped whitespace is significant in a verbose pa

[issue31856] Unexpected behavior of re module when VERBOSE flag is set

2017-10-23 Thread Bob Kline
Bob Kline added the comment: I had been under the impression that "escaped" in this context meant that an escape character (the backslash) was part of the string value for the regular expression (there's a little bit of overloading going on with that word). Thanks for setting me straight. --

[issue31857] Make the behavior of USE_STACKCHECK deterministic

2017-10-23 Thread pdox
New submission from pdox : USE_STACKCHECK is a Windows-only feature which provides additional safety against C stack overflow by periodically calling PyOS_CheckStack to determine whether the current thread is too close to the end of the stack. The way USE_STACKCHECK ensures that PyOS_CheckStac

[issue31857] Make the behavior of USE_STACKCHECK deterministic

2017-10-23 Thread pdox
Change by pdox : -- keywords: +patch pull_requests: +4069 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing

[issue29202] Improve dict iteration

2017-10-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: This doesn't meet our criteria for backports. -- assignee: rhettinger -> serhiy.storchaka versions: -Python 3.6 ___ Python tracker ___ ___

[issue31856] Unexpected behavior of re module when VERBOSE flag is set

2017-10-23 Thread Bob Kline
Bob Kline added the comment: The light finally comes on. I actually *was* putting a backslash into the string value, with the raw flag (which is, of course, what you were trying to tell me). Thanks for your patience. :-) -- ___ Python tracker

[issue31841] Several methods of collections.UserString do not return instances of UserString or its subclasses

2017-10-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: I would support changing format() and format_map(). The join() method has been around for a long time, so changing it might do more harm than good. -- assignee: -> lisroach nosy: +lisroach, rhettinger versions: +Python 3.7 ___

[issue27141] Fix collections.UserList shallow copy

2017-10-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: Either of the patches looks fine. I lean a bit towards the opt1 patch. -- assignee: rhettinger -> serhiy.storchaka ___ Python tracker ___

[issue31855] mock_open is not compatible with read(n) (and pickle.load)

2017-10-23 Thread Raymond Hettinger
Change by Raymond Hettinger : -- assignee: -> michael.foord nosy: +michael.foord ___ Python tracker ___ ___ Python-bugs-list mailing

[issue31847] Fix commented out tests in test_syntax

2017-10-23 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue18835] Add aligned memory variants to the suite of PyMem functions/macros

2017-10-23 Thread Benjamin Peterson
Benjamin Peterson added the comment: Having the ability to allocated aligned memory could help avoid some undefined behavior. See #27987 (though, we only need 16-byte alignment there) -- nosy: +benjamin.peterson ___ Python tracker

[issue31858] IDLE: cleanup use of sys.ps1 and never set it.

2017-10-23 Thread Terry J. Reedy
New submission from Terry J. Reedy : This issue is about cleaning up IDLE's use of sys.ps1 for its prompt (sys.ps2 is not used). A. This will make for cleaner code and fix some bugs. B. This will be better for testing. (Some possible changes to pyshell might make sys.ps1 irrelevant, but tha

[issue28936] test_global_err_then_warn in test_syntax is no longer valid

2017-10-23 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: > Am I needed here? As I understand, Serhiy is going to review the PR, so I think no. -- ___ Python tracker ___

[issue13657] IDLE doesn't support sys.ps1 and sys.ps2.

2017-10-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: #31858 fixes pyshell and editor so that a user setting of sys.ps1 in a startup file continues to be used after turning debugger on, instead of erased. I consider this to be an IDLE documentation issue, to add something in the introduction. Discussing IDLE di

[issue23699] Add a macro to ease writing rich comparisons

2017-10-23 Thread Benjamin Peterson
Benjamin Peterson added the comment: IMO, "op" should be the first argument to the macro, since that reflects the tp_richcmp API. -- nosy: +benjamin.peterson ___ Python tracker __

[issue28936] test_global_err_then_warn in test_syntax is no longer valid

2017-10-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Sorry for disturbing you Guido. I had added you as the committer of issue27999. Do you have thoughts about this issue? -- ___ Python tracker __

[issue31834] BLAKE2: the (pure) SSE2 impl forced on x86_64 is slower than reference

2017-10-23 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset 1aa00ff383c43335e4a5044274617dbf59bc839e by Benjamin Peterson (Michał Górny) in branch 'master': fixes bpo-31834: Use optimized code for BLAKE2 only with SSSE3+ (#4066) https://github.com/python/cpython/commit/1aa00ff383c43335e4a5044274617dbf5

<    1   2