[issue29412] IndexError thrown on email.message.Message.get

2019-06-14 Thread Abhilash Raj
Abhilash Raj added the comment: For the record, this is how I tested using the master branch: >>> msg = email.message_from_string(' To: (Recipient list suppressed)') >>> msg['To'] >>> import email.policy >>> msg = email.message_from_string(' To: (Recipient list suppressed)', >>> policy=emai

[issue29412] IndexError thrown on email.message.Message.get

2019-06-14 Thread Abhilash Raj
Abhilash Raj added the comment: Nevermind, I was wrong, I was able to reproduce it: >>> msg = email.message_from_string('To: (Recipient list suppressed)', >>> policy=email.policy.default)) File "", line 1 SyntaxError: unmatched ')' >>> msg = email.message_from_string('To: (Recipient list su

[issue37286] Pasting emoji crashes IDLE

2019-06-14 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Can you please add a traceback if any? See also https://bugs.python.org/issue13153 -- nosy: +xtreak ___ Python tracker ___ ___

[issue24980] Allow for providing 'on_new_thread' callback to 'concurrent.futures.ThreadPoolExecutor'

2019-06-14 Thread Brian Quinlan
Brian Quinlan added the comment: Joshua, I'm closing this since I haven't heard from you in a month. Please re-open if you use case isn't handled by `initializer` and `initargs`. -- assignee: -> bquinlan resolution: -> out of date stage: -> resolved status: open -> closed

[issue12857] Expose called function on frame object

2019-06-14 Thread Zachary Ware
Change by Zachary Ware : -- Removed message: https://bugs.python.org/msg345592 ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue23892] Introduce sys.implementation.opt_levels

2019-06-14 Thread Eric Snow
Eric Snow added the comment: (Sorry for taking so long!) Thanks for doing this, Cheryl! I'm leaving a review on your PR. :) Also, in PEP 421 it says that you need a PEP for this. [1] "Such a PEP need not be long, just long enough." (I just realized that the requirement isn't obvious so I

[issue37285] Python 2.7 setup.py incorrectly double-joins SDKROOT

2019-06-14 Thread Ned Deily
Change by Ned Deily : -- assignee: -> ned.deily nosy: +ned.deily ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue37286] Pasting emoji crashes IDLE

2019-06-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: In the absence of evidence otherwise (the string that you pasted and the full traceback), I assume that you pasted a non-BMP codepoint, making this a duplicate of #13153. If you think otherwise, please supply more info. -- resolution: -> duplicate

[issue37271] Make multiple passes of the peephole optimizer until bytecode cannot be optimized further

2019-06-14 Thread Raymond Hettinger
Raymond Hettinger added the comment: FWIW, when the peephole optimizer was originally accepted, it was partly on the condition that we kept it simple and fast. Perhaps, the sentiment has changed, perhaps not. -- nosy: +rhettinger ___ Python track

[issue32912] Raise non-silent warning for invalid escape sequences

2019-06-14 Thread Aaron Meurer
Aaron Meurer added the comment: I agree. Please someone else do that. I don't know what already has issues and I unfortunately don't have time right now to help out with any of this. I simply mentioned all these things as arguments why Python should not (yet) make these warnings errors, whi

[issue35998] test_asyncio: test_start_tls_server_1() TimeoutError on Fedora 29

2019-06-14 Thread STINNER Victor
STINNER Victor added the comment: > I have had to fix it much earlier :( That's fine. If this bug was more annoying, I would have it fixed myself earlier. But I had other more critical bugs to fix before that one. The important part is that it is fixed now. -- ___

[issue23892] Introduce sys.implementation.opt_levels

2019-06-14 Thread Eric Snow
Eric Snow added the comment: There are (solvable) problems with my original recommendation: 1. sys.implementation is by definition not suitable for third-party import hooks to modify + it is set during the Python implementation during runtime init + it is effectively read-only after that

[issue37208] Weird exception behaviour in ProcessPoolExecutor

2019-06-14 Thread Brian Quinlan
Brian Quinlan added the comment: That's a super interesting bug! It looks like this issue is that your exception can't be round-tripped using pickle i.e. >>> class PoolBreaker(Exception): ... def __init__(self, num): ... super().__init__() ... self.num = num ... >>> impor

[issue37155] test_asyncio: test_stdin_broken_pipe() failed on AMD64 FreeBSD CURRENT Shared 3.x

2019-06-14 Thread STINNER Victor
STINNER Victor added the comment: x86 Windows7 3.x: https://buildbot.python.org/all/#/builders/58/builds/2627 FAIL: test_stdin_broken_pipe (test.test_asyncio.test_subprocess.SubprocessProactorTests) -- Traceback (most recent

[issue35998] test_asyncio: test_start_tls_server_1() TimeoutError on Fedora 29

2019-06-14 Thread STINNER Victor
STINNER Victor added the comment: Sadly, the fix is not perfect, the test failed on the very "x86 Windows7 3.x" buildbot: https://buildbot.python.org/all/#/builders/58/builds/2627 ERROR: test_start_tls_server_1 (test.test_asyncio.test_sslproto.SelectorStartTLSTests) -

[issue35998] test_asyncio: test_start_tls_server_1() TimeoutError on Fedora 29

2019-06-14 Thread STINNER Victor
STINNER Victor added the comment: x86 Windows7 3.7: https://buildbot.python.org/all/#/builders/111/builds/1123 test_start_tls_server_1 (test.test_asyncio.test_sslproto.SelectorStartTLSTests) ... Exception in thread test-client: Traceback (most recent call last): File "D:\cygwin\home\db3l\b

[issue37275] GetConsole(Output)CP is used even when stdin/stdout is redirected

2019-06-14 Thread Inada Naoki
Inada Naoki added the comment: On Sat, Jun 15, 2019 at 2:43 AM Eryk Sun wrote: > > Eryk Sun added the comment: > > > # Power Shell 6 (use cp65001 by default) > > PS C:¥> python3 -c "print('おはよう')" > ps.txt > > PowerShell standard I/O redirection is different from any shell I've ever > used. I

[issue37275] GetConsole(Output)CP is used even when stdin/stdout is redirected

2019-06-14 Thread Inada Naoki
Change by Inada Naoki : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bu

[issue37287] picke cannot dump exceptions subclasses with different super() args

2019-06-14 Thread Brian Quinlan
New submission from Brian Quinlan : $ ./python.exe nopickle.py TypeError: __init__() missing 1 required positional argument: 'num' The issue is that the arguments passed to Exception.__init__ (via `super()`) are collected into `args` and then serialized by pickle e.g. >>> PickleBreaker(5).arg

[issue37287] picke cannot dump Exception subclasses with different super() args

2019-06-14 Thread Brian Quinlan
Change by Brian Quinlan : -- title: picke cannot dump exceptions subclasses with different super() args -> picke cannot dump Exception subclasses with different super() args ___ Python tracker __

[issue37208] Weird exception behaviour in ProcessPoolExecutor

2019-06-14 Thread Brian Quinlan
Change by Brian Quinlan : -- resolution: -> duplicate superseder: -> picke cannot dump Exception subclasses with different super() args ___ Python tracker ___ __

[issue37288] Windows arm32 buildbot build is broken

2019-06-14 Thread Paul Monson
New submission from Paul Monson : https://github.com/python/cpython/pull/14065 breaks building with --no-tkinter. Which breaks the Windows arm32 buildbot `C:\Users\buildbot\buildarea\3.x.monson-win-arm32.nondebug\build\PCbuild\python.vcxproj(158,9): error MSB4184: The expression "[System.IO.

[issue37288] Fix Windows build when --no-tkinter is specified

2019-06-14 Thread Paul Monson
Paul Monson added the comment: Change title: Fix Windows build when --no-tkinter is specified I noticed this because the Windows arm32 buildbot build was broken. -- title: Windows arm32 buildbot build is broken -> Fix Windows build when --no-tkinter is specified _

[issue37288] Fix Windows build when --no-tkinter is specified

2019-06-14 Thread Paul Monson
Change by Paul Monson : -- keywords: +patch pull_requests: +13951 stage: -> patch review pull_request: https://github.com/python/cpython/pull/14096 ___ Python tracker ___

[issue31200] address sanitizer build fails

2019-06-14 Thread Julien Palard
Change by Julien Palard : -- pull_requests: +13952 pull_request: https://github.com/python/cpython/pull/13168 ___ Python tracker ___ ___

[issue32846] Deletion of large sets of strings is extra slow

2019-06-14 Thread Inada Naoki
Change by Inada Naoki : -- resolution: wont fix -> stage: resolved -> status: closed -> open versions: +Python 3.9 -Python 3.7, Python 3.8 ___ Python tracker ___

[issue36707] The "m" ABI flag of SOABI for pymalloc is no longer needed

2019-06-14 Thread STINNER Victor
STINNER Victor added the comment: New changeset 7efc526e5cfb929a79c192ac2dcf7eb78d3a4401 by Victor Stinner in branch 'master': bpo-36707: Document "m" removal from sys.abiflags (GH-14090) https://github.com/python/cpython/commit/7efc526e5cfb929a79c192ac2dcf7eb78d3a4401 -- _

[issue36707] The "m" ABI flag of SOABI for pymalloc is no longer needed

2019-06-14 Thread miss-islington
Change by miss-islington : -- pull_requests: +13953 pull_request: https://github.com/python/cpython/pull/14097 ___ Python tracker ___ __

[issue36707] The "m" ABI flag of SOABI for pymalloc is no longer needed

2019-06-14 Thread miss-islington
miss-islington added the comment: New changeset 3fde750cc4e4057076650a92946ec1d492464799 by Miss Islington (bot) in branch '3.8': bpo-36707: Document "m" removal from sys.abiflags (GH-14090) https://github.com/python/cpython/commit/3fde750cc4e4057076650a92946ec1d492464799 -- nosy: +

[issue32846] Deletion of large sets of strings is extra slow

2019-06-14 Thread Tim Peters
Tim Peters added the comment: Looks likely that the _major_ cause of the quadratic-time delete behavior was due to that obmalloc used a linear-time method to keep its linked list of usable arenas sorted in order of number of free pools. When a pool became unused, its arena's count of free p

[issue32846] Deletion of large sets of strings is extra slow

2019-06-14 Thread Tim Peters
Change by Tim Peters : -- stage: resolved -> commit review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue32846] Deletion of large sets of strings is extra slow

2019-06-14 Thread Raymond Hettinger
Raymond Hettinger added the comment: Can we close this now? ISTM the issue has less to do with sets and more to do with memory allocation quirks and that on modern CPUs random memory accesses are slower than sequential memory accesses. It is not a bug that sets are unordered collections th

[issue32846] Deletion of large sets of strings is extra slow

2019-06-14 Thread Tim Peters
Tim Peters added the comment: Raymond, please read my very recent comment one above yours. A (overall) quadratic-time algorithm (O(A**2) where A is the number of arenas) in obmalloc.c is (to my eyes) probably the _primary_ cause of the sloth here. That's been fixed for 3.8, but I don't hav

[issue4963] mimetypes.guess_extension result changes after mimetypes.init()

2019-06-14 Thread Abhilash Raj
Change by Abhilash Raj : -- nosy: +maxking ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue26543] [EASY] imaplib noop Debug: bytes vs Unicode bug in debug mode

2019-06-14 Thread Abhilash Raj
Change by Abhilash Raj : -- nosy: +maxking ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue37289] regression in cython due to peephole optomization

2019-06-14 Thread Thomas Caswell
New submission from Thomas Caswell : The fix for https://bugs.python.org/issue37213 in 3498c642f4e83f3d8e2214654c0fa8e0d51cebe5 (https://github.com/python/cpython/pull/13969) seems to break building numpy (master) with cython (master) due to a pickle failure. The traceback (which is mostly i

[issue28708] Low FD_SETSIZE limit on Windows

2019-06-14 Thread Andrei Zene
Andrei Zene added the comment: That's actually a great explanation Nathaniel. Thanks for putting that all together. -- ___ Python tracker ___

[issue32846] Deletion of large sets of strings is extra slow

2019-06-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: I reran the code in msg312188. Ints as before, string deletion +- linear up to 100 million, much better than before. millions old stringsnew strings of items create delete create delete 4 1.55.36 1.7.38 8 3.18.76

[issue37289] regression in cython due to peephole optomization

2019-06-14 Thread Thomas Caswell
Thomas Caswell added the comment: This change also causes failures in the cython test suite (see attached). -- Added file: https://bugs.python.org/file48422/cython_test_log.txt ___ Python tracker ___

[issue37290] Mistranslation

2019-06-14 Thread p
New submission from p : https://docs.python.org/ja/3.5/library/multiprocessing.html?highlight=multiprocessing#module-multiprocessing (名前付きセマフォのリンク解除は、システムが個数の上限のみ許可している場合に深刻な問題になるため、それらは再起動されるまで自動的にリンク解除されることはありません。) -->(名前付きセマフォのリンク解除はシステムが限られた数しか許可しないので重大な問題であり、それらは次の再起動まで自動的にリンク解除されません。) ---

<    1   2