[issue36116] test_multiprocessing_spawn fails on AMD64 Windows8 3.x

2019-03-04 Thread STINNER Victor
STINNER Victor added the comment: > It's also possible that the child process is causing the segfault because of > misconfiguration (e.g. broken environment variables). Maybe, but the test also produces core dump on FreeBSD: bpo-36114. It looks more like a real bug. I set the priority again

[issue33608] [subinterpreters] Add a cross-interpreter-safe mechanism to indicate that an object may be destroyed.

2019-03-04 Thread STINNER Victor
STINNER Victor added the comment: > I suspect changes for this issue may be creating test_io failures on my > windows builders, (...) I created bpo-36177 to track this regression. -- ___ Python tracker ___

[issue36177] test_io: test_daemon_threads_shutdown_stdout_deadlock() fails on x86 Windows7 3.x

2019-03-04 Thread STINNER Victor
New submission from STINNER Victor : I don't recall this failure previously, it looks like a regression. https://buildbot.python.org/all/#/builders/58/builds/2001 == FAIL: test_daemon_threads_shutdown_stdout_deadlock (test.tes

[issue36114] test_multiprocessing_spawn dumps core in AMD64 FreeBSD CURRENT Shared 3.x

2019-03-04 Thread STINNER Victor
Change by STINNER Victor : -- title: test_multiprocessing_spawn dumps core in AMD64 FreeBSD CURRENT Shared custom -> test_multiprocessing_spawn dumps core in AMD64 FreeBSD CURRENT Shared 3.x ___ Python tracker

[issue36177] test_io: test_daemon_threads_shutdown_stdout_deadlock() fails on x86 Windows7 3.x

2019-03-04 Thread STINNER Victor
STINNER Victor added the comment: Oh, David also wrote: """ If I can help with testing or builder access or anything just let me know. It appears that I can pretty reliably trigger the error through just the individual tests (test_daemon_threads_shutdown_std{out,err}_deadlock) in isolation

[issue35828] test_multiprocessing_fork - crashes in PyDict_GetItem - segmentation error

2019-03-04 Thread Michael Felt
Michael Felt added the comment: I see I already asked howto better utilize this info: ConnectionRefusedError: [Errno 79] Connection refused Warning -- files was modified by test_multiprocessing_fork Before: [] After: ['core'] -- so, more specific -- which module, or file, is doing this c

[issue36116] test_multiprocessing_spawn fails on AMD64 Windows8 3.x

2019-03-04 Thread STINNER Victor
STINNER Victor added the comment: test_mymanager and test_mymanager_context of test_multiprocessing_spawn.WithManagerTestMyManager failed in this build: > https://buildbot.python.org/all/#/builders/58/builds/1983/steps/3/logs/stdio ERROR: test_multiprocessing (test.test_venv.BasicTest) FAIL:

[issue36114] test_multiprocessing_spawn dumps core in AMD64 FreeBSD CURRENT Shared 3.x

2019-03-04 Thread STINNER Victor
STINNER Victor added the comment: I can reproduce the crash on my FreeBSD 12 VM: vstinner@freebsd$ ./python -m test --fail-env-changed test_multiprocessing_spawn -v FAIL: test_mymanager_context_prestarted (test.test_multiprocessing_spawn.WithManagerTestMyManager) ---

[issue36178] type.__init__ called instead of cls.__init__ when inheriting from type.

2019-03-04 Thread Hameer Abbasi
New submission from Hameer Abbasi : I may be completely misunderstanding here, but: here's a reproducible example: class MyMeta(type): def __new__(cls, *args, **kwargs): print('__new__', *args, **kwargs) super().__new__(cls, *args, **kwargs) def __init__(self, a):

[issue31904] Python should support VxWorks RTOS

2019-03-04 Thread Peixing Xin
Change by Peixing Xin : -- pull_requests: +12155 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue36114] test_multiprocessing_spawn dumps core in AMD64 FreeBSD CURRENT Shared 3.x

2019-03-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Interesting, I tried several hours to reproduce the crash on the buildbot itself manually and I could not do it. -- ___ Python tracker __

[issue36114] test_multiprocessing_spawn dumps core in AMD64 FreeBSD CURRENT Shared 3.x

2019-03-04 Thread STINNER Victor
STINNER Victor added the comment: I recently (Feb 25) fixed the config of this slow buildbot to change the timeout from 15 min to 20 min: https://github.com/python/buildmaster-config/commit/37cf09ca9a5b6ce14b4e9b481101d559c4e55485 https://github.com/python/buildmaster-config/commit/e4155a7448

[issue36114] test_multiprocessing_spawn dumps core in AMD64 FreeBSD CURRENT Shared 3.x

2019-03-04 Thread STINNER Victor
STINNER Victor added the comment: I set the priority to release blocker to remind to fix this regression. I guess that it's the same bug than bpo-36116, but since it's a different OS (FreeBSD / Windows), I prefer to continue to use separated issues. -- nosy: +lukasz.langa priority: n

[issue31904] Python should support VxWorks RTOS

2019-03-04 Thread STINNER Victor
STINNER Victor added the comment: New changeset f4b0a1c0da80318e0a4f4c70d2722f01ce3512dd by Victor Stinner (pxinwr) in branch 'master': bpo-31904: Add encoding support for VxWorks RTOS (GH-12051) https://github.com/python/cpython/commit/f4b0a1c0da80318e0a4f4c70d2722f01ce3512dd -- _

[issue36114] test_multiprocessing_spawn dumps core in AMD64 FreeBSD CURRENT Shared 3.x

2019-03-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Can you paste traceback of the dump that you were able to generate in your FreeBSD? I wonder if you can get the symbols that the one I pasted were missing (likely in libthr.so). -- ___ Python tracker

[issue36178] type.__init__ called instead of cls.__init__ when inheriting from type.

2019-03-04 Thread Steven D'Aprano
Steven D'Aprano added the comment: Your metaclass.__new__ method returns None instead of the new class. The rule for calling __init__ is: - if the constructor __new__ returns an instance of the type, then call the initializer __init__ - otherwise, don't call __init__ at all. https://docs.p

[issue36178] type.__init__ called instead of cls.__init__ when inheriting from type.

2019-03-04 Thread Hameer Abbasi
Hameer Abbasi added the comment: Ah, I wasn't aware I had to return... The bug was deliberate to show that not even a different signature makes a difference. ;) -- ___ Python tracker __

[issue36114] test_multiprocessing_spawn: WithProcessesTestSharedMemory dumps core in AMD64 FreeBSD CURRENT Shared 3.x

2019-03-04 Thread STINNER Victor
Change by STINNER Victor : -- title: test_multiprocessing_spawn dumps core in AMD64 FreeBSD CURRENT Shared 3.x -> test_multiprocessing_spawn: WithProcessesTestSharedMemory dumps core in AMD64 FreeBSD CURRENT Shared 3.x ___ Python tracker

[issue36179] _hashopenssl has reference leaks in OOM case

2019-03-04 Thread Christian Heimes
New submission from Christian Heimes : Charalampos Stratakis from Red Hat's Python Maintenance Team found two minor reference leaks in _hashopenssl.c. Ref counts of newly allocated are not decreased when allocation of another object fails. -- assignee: christian.heimes components: Ext

[issue36179] _hashopenssl has reference leaks in OOM case

2019-03-04 Thread Christian Heimes
Change by Christian Heimes : -- keywords: +patch pull_requests: +12156 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue35859] Capture behavior depends on the order of an alternation

2019-03-04 Thread Ma Lin
Ma Lin added the comment: Found another bug in re: >>> re.match(r'(?:.*?\b(?=(\t)|(x))x)*', 'a\txa\tx').groups() ('\t', 'x') Expected result: (None, 'x') PHP 7.3.2 NULL, "x" Java 11.0.2 "\t", "x" Perl 5.28.1 "\t", "x" Ruby 2.6.1 nil, "x" Go 1.12

[issue36124] Provide convenient C API for storing per-interpreter state

2019-03-04 Thread Petr Viktorin
Petr Viktorin added the comment: PyModule_GetState() gives you *per-module* state, not per-interpreter state. Module objects are shared across subinterpreters, unless you use multi-phase initialization. > PyModule_GetState() requires having the module object that corresponds > to the given i

[issue36124] Provide convenient C API for storing per-interpreter state

2019-03-04 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue36114] test_multiprocessing_spawn: WithProcessesTestSharedMemory dumps core in AMD64 FreeBSD CURRENT Shared 3.x

2019-03-04 Thread STINNER Victor
STINNER Victor added the comment: Example of crash: * Thread 2 exit Python: PyRun_SimpleStringFlags->PyErr_PrintEx->handle_system_exit->Py_Exit->OPENSSL_cleanup... * Thread 1 tries to acquire the GIL to close a file * Thread 3 is waiting in socket.socket.accept() Problem: PyThreadState of Th

[issue36180] mboxMessage.get_payload throws TypeError on malformed content type

2019-03-04 Thread Enrico Zini
New submission from Enrico Zini : This simple code: ``` import mailbox mbox = mailbox.mbox("broken.mbox") for msg in mbox: msg.get_payload() ``` Fails rather unexpectedly: ``` $ python3 broken.py Traceback (most recent call last): File "broken.py", line 5, in msg.get_payload()

[issue36180] mboxMessage.get_payload throws TypeError on malformed content type

2019-03-04 Thread Mattia Rizzolo
Change by Mattia Rizzolo : -- nosy: +mapreri ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue36114] test_multiprocessing_spawn: WithProcessesTestSharedMemory dumps core in AMD64 FreeBSD CURRENT Shared 3.x

2019-03-04 Thread STINNER Victor
STINNER Victor added the comment: Sometimes, I can reproduce the crash using: ./python -m test --matchfile=bisect5 test_multiprocessing_spawn --fail-env-changed -F Using this file: test.test_multiprocessing_spawn.WithThreadsTestQueue.test_timeout test.test_multiprocessing_spawn.WithProcesses

[issue36114] test_multiprocessing_spawn dumps core in AMD64 FreeBSD CURRENT Shared 3.x

2019-03-04 Thread STINNER Victor
Change by STINNER Victor : -- title: test_multiprocessing_spawn: WithProcessesTestSharedMemory dumps core in AMD64 FreeBSD CURRENT Shared 3.x -> test_multiprocessing_spawn dumps core in AMD64 FreeBSD CURRENT Shared 3.x ___ Python tracker

[issue36180] mboxMessage.get_payload throws TypeError on malformed content type

2019-03-04 Thread SilentGhost
Change by SilentGhost : -- components: +email nosy: +barry, r.david.murray stage: -> test needed type: -> behavior versions: +Python 3.7, Python 3.8 ___ Python tracker ___ __

[issue36114] test_multiprocessing_spawn dumps core in AMD64 FreeBSD CURRENT Shared 3.x

2019-03-04 Thread STINNER Victor
STINNER Victor added the comment: Currently guilty: commit ef4ac967e2f3a9a18330cc6abe14adb4bc3d0465 Author: Eric Snow Date: Sun Feb 24 15:40:47 2019 -0800 bpo-33608: Factor out a private, per-interpreter _Py_AddPendingCall(). (GH-11617) This involves moving the global "pendin

[issue36144] Dictionary addition.

2019-03-04 Thread Viktor Kharkovets
Viktor Kharkovets added the comment: If we're going to forget about commutativity of +, should we also implement +/+= for sets? -- nosy: +slam ___ Python tracker ___

[issue36114] test_multiprocessing_spawn dumps core in AMD64 FreeBSD CURRENT Shared 3.x

2019-03-04 Thread STINNER Victor
STINNER Victor added the comment: Ok, I confirm that the commit ef4ac967e2f3a9a18330cc6abe14adb4bc3d0465 introduced a regression in test.test_multiprocessing_spawn.WithThreadsTestManagerRestart.test_rapid_restart. -- ___ Python tracker

[issue33608] [subinterpreters] Add a cross-interpreter-safe mechanism to indicate that an object may be destroyed.

2019-03-04 Thread STINNER Victor
STINNER Victor added the comment: The commit ef4ac967e2f3a9a18330cc6abe14adb4bc3d0465 introduced a regression in test.test_multiprocessing_spawn.WithThreadsTestManagerRestart.test_rapid_restart: bpo-36114. Would it be possible to revert it until the bug is properly understood and fixed? --

[issue36179] _hashopenssl has reference leaks in OOM case

2019-03-04 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +cstratak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[issue36181] Add mode parameter to PurePath.write_text to allow for 'a' mode

2019-03-04 Thread Vinay Rao
New submission from Vinay Rao : - Default should be 'w' for compatibility. - There should be a check that makes sure mode is either 'w' or 'a', or else raise ValueError. -- components: Library (Lib) messages: 337097 nosy: vinayluzrao priority: normal severity: normal status: open titl

[issue36181] Add mode parameter to PurePath.write_text to allow for 'a' mode

2019-03-04 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: append_text helper was proposed as part of issue35095 and adding a parameter append was also discussed as part of the original API issue20218 . Adding @pitrou to decide upon the API. -- nosy: +pitrou, xtreak ___

[issue33608] [subinterpreters] Add a cross-interpreter-safe mechanism to indicate that an object may be destroyed.

2019-03-04 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +12157 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue36181] Add mode parameter to PurePath.write_text to allow for 'a' mode

2019-03-04 Thread Lysandros Nikolaou
Lysandros Nikolaou added the comment: Not that it makes a big difference, but write_text is a method of the Path class, not PurePath. -- nosy: +lys.nikolaou ___ Python tracker __

[issue36182] Path.write_text() docs do not include the case that a file exists

2019-03-04 Thread Lysandros Nikolaou
New submission from Lysandros Nikolaou : Hi, in the pathlib.Path.write_bytes() documentation it is clearly stated that "An existing file of the same name is overwritten." Wouldn't it make sense to include something similar to the pathlib.Path.write_text() docs. I had to quickly test it manua

[issue36182] Path.write_text() docs do not include the case that a file exists

2019-03-04 Thread Lysandros Nikolaou
Lysandros Nikolaou added the comment: For reference, https://docs.python.org/3/library/pathlib.html#pathlib.Path.write_bytes. -- ___ Python tracker ___ __

[issue36181] Add mode parameter to PurePath.write_text to allow for 'a' mode

2019-03-04 Thread Vinay Rao
Vinay Rao added the comment: Upon reading the issue threads linked by @xtreak, I have changed my mind and think this is a bad idea. 1) It adds more to maintain without offering much benefit (the use case of the shortcut is probably quite rare) 2) The argument 'mode' only accepting two options

[issue36181] Add mode parameter to PurePath.write_text to allow for 'a' mode

2019-03-04 Thread Vinay Rao
Vinay Rao added the comment: Oh, and write_bytes would have to go thorough the same modification to make them consistent. -- ___ Python tracker ___ __

[issue20906] Issues in Unicode HOWTO

2019-03-04 Thread miss-islington
miss-islington added the comment: New changeset 84fa6b9e5932af981cb299c0c5ac80b9cc37c3fa by Miss Islington (bot) in branch '3.7': bpo-20906: Various revisions to the Unicode howto (GH-8394) https://github.com/python/cpython/commit/84fa6b9e5932af981cb299c0c5ac80b9cc37c3fa -- nosy: +

[issue34484] Unicode HOWTO incorrectly refers to Private Use Area for surrogateescape

2019-03-04 Thread miss-islington
miss-islington added the comment: New changeset 84fa6b9e5932af981cb299c0c5ac80b9cc37c3fa by Miss Islington (bot) in branch '3.7': bpo-20906: Various revisions to the Unicode howto (GH-8394) https://github.com/python/cpython/commit/84fa6b9e5932af981cb299c0c5ac80b9cc37c3fa -- nosy: +

[issue36182] Path.write_text() docs do not include the case that a file exists

2019-03-04 Thread Inada Naoki
Inada Naoki added the comment: It may be removed accidentally by this commit. https://github.com/python/cpython/commit/8477ed60486a22f79f257ee49f0bc18d0e73f216#diff-56cd2f82cd518e7baf1edab64771f619 -- nosy: +inada.naoki ___ Python tracker

[issue36144] Dictionary addition.

2019-03-04 Thread Stefan Behnel
Stefan Behnel added the comment: > should we also implement +/+= for sets? The question is: what would that do? The same as '|=' ? That would be rather confusing, I think. "|" (meaning: "or") seems a very natural operation for sets, in the same way that "|" operates on bits in integers. That

[issue36182] Path.write_text() docs do not include the case that a file exists

2019-03-04 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I was searching along similar lines since this was present as part of the original commit : https://hg.python.org/cpython/rev/a4da150fbfd4 . I guess it makes sense to restore the text. -- nosy: +xtreak _

[issue36177] test_io: test_daemon_threads_shutdown_stdout_deadlock() fails on x86 Windows7 3.x

2019-03-04 Thread STINNER Victor
STINNER Victor added the comment: It seems like the test started to fail in this build (at Feb 25): https://buildbot.python.org/all/#/builders/58/builds/1977 -- ___ Python tracker ___

[issue33608] [subinterpreters] Add a cross-interpreter-safe mechanism to indicate that an object may be destroyed.

2019-03-04 Thread STINNER Victor
STINNER Victor added the comment: > The commit ef4ac967e2f3a9a18330cc6abe14adb4bc3d0465 introduced a regression > in > test.test_multiprocessing_spawn.WithThreadsTestManagerRestart.test_rapid_restart: > bpo-36114. There is a very similar bug on Windows: bpo-36116. I'm now also quite confid

[issue36177] test_io: test_daemon_threads_shutdown_stdout_deadlock() fails on x86 Windows7 3.x

2019-03-04 Thread STINNER Victor
STINNER Victor added the comment: It seems like this issue is a regression caused by bpo-33608. -- ___ Python tracker ___ ___ Pytho

[issue36182] Path.write_text() docs do not include the case that a file exists

2019-03-04 Thread Lysandros Nikolaou
Lysandros Nikolaou added the comment: I'll submit a PR shortly. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue23689] Memory leak in Modules/sre_lib.h

2019-03-04 Thread Ma Lin
Change by Ma Lin : -- pull_requests: +12158 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue23689] Memory leak in Modules/sre_lib.h

2019-03-04 Thread Ma Lin
Ma Lin added the comment: PR11926 (closed) tried to allocate SRE_REPEAT on state's stack. It's feasible, but messes up the code in sre_lib.h, and reduces performance a little (roughly 6% slower), so I gave up this solution. PR12160 uses a memory pool, this solution doesn't mess up the code. 🔾

[issue36097] Use only public C-API in _xxsubinterpreters module.

2019-03-04 Thread STINNER Victor
STINNER Victor added the comment: New changeset 4d61e6e3b802399be62a521d6fa785698cb670b5 by Victor Stinner in branch 'master': Revert: bpo-33608: Factor out a private, per-interpreter _Py_AddPendingCall(). (GH-11617) (GH-12159) https://github.com/python/cpython/commit/4d61e6e3b802399be62a521

[issue33608] [subinterpreters] Add a cross-interpreter-safe mechanism to indicate that an object may be destroyed.

2019-03-04 Thread STINNER Victor
STINNER Victor added the comment: Hi Eric, I'm sorry but I had to revert your recent work. It introduced regressions in at least in test_io and test_multiprocessing_spawn on Windows and FreeBSD. I simply don't have the bandwidth to investigate this regression yet, whereas we really need the

[issue33608] [subinterpreters] Add a cross-interpreter-safe mechanism to indicate that an object may be destroyed.

2019-03-04 Thread STINNER Victor
STINNER Victor added the comment: New changeset 4d61e6e3b802399be62a521d6fa785698cb670b5 by Victor Stinner in branch 'master': Revert: bpo-33608: Factor out a private, per-interpreter _Py_AddPendingCall(). (GH-11617) (GH-12159) https://github.com/python/cpython/commit/4d61e6e3b802399be62a521

[issue36182] Path.write_text() docs do not include the case that a file exists

2019-03-04 Thread Lysandros Nikolaou
Change by Lysandros Nikolaou : -- keywords: +patch pull_requests: +12159 stage: -> patch review ___ Python tracker ___ ___ Python-b

[issue33608] [subinterpreters] Add a cross-interpreter-safe mechanism to indicate that an object may be destroyed.

2019-03-04 Thread STINNER Victor
STINNER Victor added the comment: For curious people, Pablo Galindo spent a few hours to investigate https://bugs.python.org/issue36114 and I spent a few more hours to finish the analysis. The bug indirectly crashed my laptop :-) https://twitter.com/VictorStinner/status/1102528982036201478 T

[issue35859] Capture behavior depends on the order of an alternation

2019-03-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your great work Ma Lin! But it will take a time to make a review of it. Could you please create and run some microbenchmarks to measure possible performance penalty of additional MARH_PUSHes? I am especially interesting in worst cases. If th

[issue36181] Add mode parameter to PurePath.write_text to allow for 'a' mode

2019-03-04 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Pytho

[issue36158] Regex search behaves differently in list comprehension

2019-03-04 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[issue36183] test_gdb failed on AMD64 FreeBSD CURRENT Shared 3.x failed

2019-03-04 Thread STINNER Victor
New submission from STINNER Victor : test_gdb failed on AMD64 FreeBSD CURRENT Shared 3.x failed. Can it be related to my revert, commit 4d61e6e3b802399be62a521d6fa785698cb670b5? https://buildbot.python.org/all/#/builders/168/builds/676 FAIL: test_corrupt_tp_flags (test.test_gdb.PrettyPrintTes

[issue36184] test_gdb.test_threads() is specific to _POSIX_THREADS, fail on FreeBSD

2019-03-04 Thread STINNER Victor
New submission from STINNER Victor : On my FreeBSD VM, _POSIX_THREADS is not defined: sys.thread_info: sys.thread_info(name='pthread', lock='semaphore', version=None) test_gdb fails with: Verify that "py-bt" indicates threads that are waiting for the GIL ... FAIL

[issue36184] [EASY] test_gdb.test_threads() is specific to _POSIX_THREADS, fail on FreeBSD

2019-03-04 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +easy title: test_gdb.test_threads() is specific to _POSIX_THREADS, fail on FreeBSD -> [EASY] test_gdb.test_threads() is specific to _POSIX_THREADS, fail on FreeBSD ___ Python tracker

[issue36183] test_gdb failed on AMD64 FreeBSD CURRENT Shared 3.x failed

2019-03-04 Thread STINNER Victor
STINNER Victor added the comment: > https://buildbot.python.org/all/#/builders/168/builds/676 Extract of pythoninfo: gdb_version: GNU gdb (GDB) 8.2.1 [GDB v8.2.1 for FreeBSD] sys.thread_info: sys.thread_info(name='pthread', lock='semaphore', version=None) I'm unable to reproduce the issue on

[issue36185] [EASY DOC] typo: Doc/c-api/objbuffer.rst: There is a typo in "corresponding"

2019-03-04 Thread STINNER Victor
New submission from STINNER Victor : Issue reported at: https://github.com/python/cpython/pull/9/files/650ed79e9dcd6f12b2cd0adcc9d6e3fd1ea929d0#diff-dec96ce8ae89cc364fa198f94357a1ab > There is a typo in "corresponding" Does someone want to write a PR? -- assignee: docs@python comp

[issue35198] Build issue while compiling cpp files in AIX

2019-03-04 Thread miss-islington
Change by miss-islington : -- pull_requests: +12160 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue35198] Build issue while compiling cpp files in AIX

2019-03-04 Thread STINNER Victor
STINNER Victor added the comment: New changeset 800d5cd75025876d79ab05980925a05d8e36b63d by Victor Stinner (Kevin Adler) in branch 'master': bpo-35198 Fix C++ extension compilation on AIX (GH-10437) https://github.com/python/cpython/commit/800d5cd75025876d79ab05980925a05d8e36b63d --

[issue20906] Issues in Unicode HOWTO

2019-03-04 Thread STINNER Victor
STINNER Victor added the comment: I see a change, so I guess that this old issue can now be fixed. Anything, the issue didn't get much activity last years. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python t

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

2019-03-04 Thread STINNER Victor
STINNER Victor added the comment: Interesting code in test_ssl.py: except (ConnectionResetError, BrokenPipeError) as e: # We treat ConnectionResetError as though it were an # SSLError - OpenSSL on Ubuntu abruptly closes the # connecti

[issue36183] test_gdb failed on AMD64 FreeBSD CURRENT Shared 3.x failed

2019-03-04 Thread STINNER Victor
STINNER Victor added the comment: I tested gdb on the buildbot and I got permission errors, at least under my user "haypo": warning: Could not trace the inferior process. Error: warning: ptrace: Operation not permitted Logs: CURRENT-amd64% gdb -args ./python Lib/test/gdb_sample.py GNU gdb

[issue36183] test_gdb failed on AMD64 FreeBSD CURRENT Shared 3.x failed

2019-03-04 Thread STINNER Victor
STINNER Victor added the comment: On my FreeBSD 12.0 VM, "py-bt" works as expected. It might be a recent change in FreeBSD CURRENT kernel? -- ___ Python tracker ___ _

[issue35198] Build issue while compiling cpp files in AIX

2019-03-04 Thread miss-islington
miss-islington added the comment: New changeset 06e9953d5e3f0144ec8247b61541e7be85d55b50 by Miss Islington (bot) in branch '3.7': bpo-35198 Fix C++ extension compilation on AIX (GH-10437) https://github.com/python/cpython/commit/06e9953d5e3f0144ec8247b61541e7be85d55b50 -- nosy: +mis

[issue36185] [EASY DOC] typo: Doc/c-api/objbuffer.rst: There is a typo in "corresponding"

2019-03-04 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: Shouldn't this be kept for the documentation sprint? -- nosy: +cheryl.sabella, remi.lapeyre ___ Python tracker ___ _

[issue35198] Build issue while compiling cpp files in AIX

2019-03-04 Thread STINNER Victor
STINNER Victor added the comment: Thanks Kevin Adler. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue36183] test_gdb failed on AMD64 FreeBSD CURRENT Shared 3.x

2019-03-04 Thread STINNER Victor
Change by STINNER Victor : -- title: test_gdb failed on AMD64 FreeBSD CURRENT Shared 3.x failed -> test_gdb failed on AMD64 FreeBSD CURRENT Shared 3.x ___ Python tracker ___ _

[issue36186] [2.7] Coverity scan: Modules/linuxaudiodev.c , fd handle is not closed.

2019-03-04 Thread Charalampos Stratakis
New submission from Charalampos Stratakis : There are two places [0][1] in the code where NULL is returned but the fd handle is not closed. [0] https://github.com/python/cpython/blob/2.7/Modules/linuxaudiodev.c#L129 [1] https://github.com/python/cpython/blob/2.7/Modules/linuxaudiodev.c#L133 -

[issue13096] ctypes: segfault with large POINTER type names

2019-03-04 Thread STINNER Victor
STINNER Victor added the comment: New changeset 710dcfd2f4bee034894a39026388f9c21ea976f1 by Victor Stinner (stratakis) in branch '2.7': [2.7] bpo-13096: Fix memory leak in ctypes POINTER handling of large values (GH-12100) https://github.com/python/cpython/commit/710dcfd2f4bee034894a39026388

[issue36186] [2.7] Coverity scan: Modules/linuxaudiodev.c , fd handle is not closed.

2019-03-04 Thread Charalampos Stratakis
Change by Charalampos Stratakis : -- keywords: +patch pull_requests: +12161 stage: -> patch review ___ Python tracker ___ ___ Pytho

[issue36179] _hashopenssl has reference leaks in OOM case

2019-03-04 Thread miss-islington
miss-islington added the comment: New changeset b7bc283ab6a23ee98784400ebffe7fe410232a2e by Miss Islington (bot) (Christian Heimes) in branch 'master': bpo-36179: Fix ref leaks in _hashopenssl (GH-12158) https://github.com/python/cpython/commit/b7bc283ab6a23ee98784400ebffe7fe410232a2e -

[issue36179] _hashopenssl has reference leaks in OOM case

2019-03-04 Thread miss-islington
Change by miss-islington : -- pull_requests: +12162 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue36183] test_gdb failed on AMD64 FreeBSD CURRENT Shared 3.7 and 3.x

2019-03-04 Thread STINNER Victor
STINNER Victor added the comment: Same errors on AMD64 FreeBSD CURRENT Shared 3.7: https://buildbot.python.org/all/#/builders/173/builds/333 -- title: test_gdb failed on AMD64 FreeBSD CURRENT Shared 3.x -> test_gdb failed on AMD64 FreeBSD CURRENT Shared 3.7 and 3.x __

[issue31861] add aiter() and anext() functions to operator module

2019-03-04 Thread Joshua Bronson
Joshua Bronson added the comment: If the deciders prefer to have these in the operator module for 3.8 (as Yury and Jelle requested above), my PR from a few months ago which implements this (https://github.com/python/cpython/pull/8895) can still be merged with no conflicts. I don't think any

[issue31861] add aiter() and anext() functions to operator module

2019-03-04 Thread Giampaolo Rodola'
Change by Giampaolo Rodola' : -- nosy: -giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue36179] _hashopenssl has reference leaks in OOM case

2019-03-04 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +12163 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue36179] _hashopenssl has reference leaks in OOM case

2019-03-04 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +12164 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue36187] Get rid of NamedStore

2019-03-04 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : The proposed PR refactors the code for assignment expression and removes the NamedStore value of the expr_context_ty enum added in issue35224. This value is undistinguished from Store except two places in Python/ast.c and Python/symtable.c, but in that c

[issue36187] Get rid of NamedStore

2019-03-04 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +12165 stage: -> patch review ___ Python tracker ___ ___ Python-bug

[issue36179] _hashopenssl has reference leaks in OOM case

2019-03-04 Thread miss-islington
miss-islington added the comment: New changeset a59d33a1b08bd3dc9dc2584d4360ca81b0f1ad49 by Miss Islington (bot) in branch '3.7': bpo-36179: Fix ref leaks in _hashopenssl (GH-12158) https://github.com/python/cpython/commit/a59d33a1b08bd3dc9dc2584d4360ca81b0f1ad49 -- ___

[issue29167] Race condition in enum.py:_decompose()

2019-03-04 Thread Martin
Martin added the comment: Our production system hit this issue using Python 3.6.7 once a few days ago, so presumably the race is still possible with the applied patch, just less likely? ``` RuntimeError: dictionary changed size during iteration at _decompose (/usr/lib/python3.6/enum.py:858) a

[issue36085] Enable better DLL resolution

2019-03-04 Thread Steve Dower
Steve Dower added the comment: Adding Ɓukasz for his RM opinion on Win7 support for 3.8. According to PEP 11, we've already dropped support for Win7 without Service Pack 1. Win7 SP1 would be dropped ~2-3 months after 3.8 releases, which means we still have to support it for all of 3.8. My co

[issue36179] _hashopenssl has reference leaks in OOM case

2019-03-04 Thread miss-islington
miss-islington added the comment: New changeset 84b5ac9ba6fd71ba9d0ef98e2a166a35189b263f by Miss Islington (bot) (Christian Heimes) in branch '2.7': [2.7] bpo-36179: Fix ref leaks in _hashopenssl (GH-12158) (GH-12166) https://github.com/python/cpython/commit/84b5ac9ba6fd71ba9d0ef98e2a166a3518

[issue29205] col_offset for AsyncFunctionDef AST nodes is wrong

2019-03-04 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue36158] Regex search behaves differently in list comprehension

2019-03-04 Thread Josh Rosenberg
Josh Rosenberg added the comment: Sounds like at least one such entity's trigger attribute doesn't match the regex. In the spelled out loop, you'd still get the exception on a failed match, but you'd store the results for however many entities matched before then (so catching the exception a

[issue36187] Get rid of NamedStore

2019-03-04 Thread Josh Rosenberg
Change by Josh Rosenberg : -- nosy: +josh.r ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue12169] Factor out common code for d2 commands register, upload and upload_docs

2019-03-04 Thread Martijn Pieters
Change by Martijn Pieters : -- pull_requests: +12166 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue36188] Remove vestiges of Python 2 unbound methods from Python 3

2019-03-04 Thread Martijn Pieters
New submission from Martijn Pieters : The implementation of method_hash, method_call and method_descr_get all still contain assumptions that __self__ can be set to None, a holdover from Python 2 where methods could be *unbound*. These vestiges can safely be removed, because method_new() and P

[issue36188] Remove vestiges of Python 2 unbound methods from Python 3

2019-03-04 Thread Martijn Pieters
Change by Martijn Pieters : -- keywords: +patch pull_requests: +12167 stage: -> patch review ___ Python tracker ___ ___ Python-bugs

[issue36172] csv module internal consistency

2019-03-04 Thread Josh Rosenberg
Josh Rosenberg added the comment: Unless someone disagrees soon, I'm going to close this as documented behavior/not a bug. AFAICT, the only "fixes" available for this are: 1. Changing the default dialect from 'excel' to something else. Problem: Breaks correct code dependent on the excel dial

[issue36149] use of uninitialised memory in cPickle.

2019-03-04 Thread Thomas Wouters
Thomas Wouters added the comment: New changeset d9bf7f4198871132714cfe7d702baaa02206e9f1 by T. Wouters in branch '2.7': [2.7] bpo-36149 Fix potential use of uninitialized memory in cPickle (#12105) https://github.com/python/cpython/commit/d9bf7f4198871132714cfe7d702baaa02206e9f1 --

  1   2   >