[issue30836] test_c_locale_coercion fails on AIX

2017-07-04 Thread Nick Coghlan
Changes by Nick Coghlan : -- stage: -> needs patch type: -> behavior ___ Python tracker ___

[issue30836] test_c_locale_coercion fails on AIX

2017-07-04 Thread Nick Coghlan
Nick Coghlan added the comment: Note that as far as I'm aware, AIX doesn't actually provide any of our coercion target locales yet, so the question in my previous comment is about how we want 3.7.x releases to behave on AIX if IBM *do* introduce a C.UTF-8 locale. The main argument I see in

[issue30836] test_c_locale_coercion fails on AIX

2017-07-04 Thread Nick Coghlan
Nick Coghlan added the comment: Removing the "easy" tag, as I realised this isn't as clearcut a change as I first thought. Specifically, I'm wondering if in addition to changing the expectations for this particular test, we should *also* be disabling locale coercion on AIX in general. After

[issue9949] os.path.realpath on Windows does not follow symbolic links

2017-07-04 Thread Ethan Smith
Changes by Ethan Smith : -- nosy: +Ethan Smith ___ Python tracker ___ ___ Python-bugs-list

[issue30777] IDLE: configdialog -- add docstrings and improve comments

2017-07-04 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker ___

[issue21624] Idle: Improve htests

2017-07-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 1278d29000794085f1d9e25f2dadbf70b9076e30 by terryjreedy in branch '3.6': [3.6] bpo-21624: IDLE -- minor htest fixes (GH-2575) (#2578) https://github.com/python/cpython/commit/1278d29000794085f1d9e25f2dadbf70b9076e30 --

[issue30777] IDLE: configdialog -- add docstrings and improve comments

2017-07-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset e5bb112ba2048cb3ea19481a7b38fe1433c5a7ef by terryjreedy in branch '3.6': [3.6] bpo-30777: IDLE: configdialog - add docstrings and improve comments (GH-2440) (#2577)

[issue30814] Import dotted name as alias breaks with concurrency

2017-07-04 Thread Nick Coghlan
Nick Coghlan added the comment: Documenting explicitly what I believe the expected order of module lock acquisition would be in this case: Thread A acquires package.subpackage lock Thread B blocks on package.subpackage lock Thread A acquires package lock Thread A releases

[issue30850] [2.7] bsddb3: test01_basic_replication() of test_bsddb3 fails randomly on AMD64 Windows8.1 Refleaks 2.7

2017-07-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: First at all replace self.assertTrue(time.time()

[issue30852] _PyObject_GC_UNTRACK corruption when call a lambda function with C API

2017-07-04 Thread 盛茂家
New submission from 盛茂家: This corruption is so strange that I can't even reappear it. (gdb) bt #0 0x006d7e9f in func_dealloc.lto_priv () at Objects/funcobject.c:451 #1 0x005c730b in ask (printException=true, okIfFunctionNull=, errorPrefix=0x884bca "", pArgs=0x300dd440,

[issue30441] os.environ raises RuntimeError: dictionary changed size during iteration

2017-07-04 Thread Osvaldo Santana Neto
Osvaldo Santana Neto added the comment: Hi Serhiy Storchaka, I need to thank you for your valuable guidance. -- ___ Python tracker ___

[issue30777] IDLE: configdialog -- add docstrings and improve comments

2017-07-04 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- pull_requests: +2649 ___ Python tracker ___ ___

[issue21624] Idle: Improve htests

2017-07-04 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- pull_requests: +2648 ___ Python tracker ___ ___

[issue30777] IDLE: configdialog -- add docstrings and improve comments

2017-07-04 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- pull_requests: +2647 ___ Python tracker ___ ___

[issue30777] IDLE: configdialog -- add docstrings and improve comments

2017-07-04 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- pull_requests: +2646 ___ Python tracker ___ ___

[issue21624] Idle: Improve htests

2017-07-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 2000150c569941584994ec4ec59171961209bec3 by terryjreedy in branch 'master': bpo-21624: IDLE -- minor htest fixes (#2575) https://github.com/python/cpython/commit/2000150c569941584994ec4ec59171961209bec3 --

[issue21624] Idle: Improve htests

2017-07-04 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- pull_requests: +2645 ___ Python tracker ___ ___

[issue30777] IDLE: configdialog -- add docstrings and improve comments

2017-07-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 7eb5883ac59833bf63f0e1f7fb95671a1ac1ee08 by terryjreedy (csabella) in branch 'master': bpo-30777: IDLE: configdialog - add docstrings and improve comments (#2440) https://github.com/python/cpython/commit/7eb5883ac59833bf63f0e1f7fb95671a1ac1ee08

[issue30851] IDLE: configdialog -- fix tkinter Variables

2017-07-04 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- dependencies: +IDLE: configdialog - add tests for ConfigDialog GUI. ___ Python tracker ___

[issue30851] IDLE: configdialog -- fix tkinter Variables

2017-07-04 Thread Terry J. Reedy
New submission from Terry J. Reedy: As part of #30777, Cheryl Sabella listed Variables defined for a tab page, and the use thereof, in the docstring for the tab page. This revealed some anomalies. Duplicate: font_name is defined on font and highlight pages. The first StringVariable should

[issue21624] Idle: Improve htests

2017-07-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: Current htest issues from this and two other issues, notes, and running htests with htest.py. (Default master window placement is ok. Can move.) h1. At least one test window overlaps the test window. Others are not centered (y-position). Fix by passing

[issue27636] Refactor IDLE htest

2017-07-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: Htest should extract version from __file__, and module from spec, and display both. -- versions: +Python 3.7 ___ Python tracker

[issue1612262] Class Browser doesn't show internal classes

2017-07-04 Thread Cheryl Sabella
Changes by Cheryl Sabella : -- pull_requests: +2644 ___ Python tracker ___ ___

[issue30726] [Windows] Warnings in elementtree due to new expat

2017-07-04 Thread Segev Finer
Segev Finer added the comment: > The approach used to suppress this warning will also suppress other warnings > that might be fixable. Hard to say it's definitely a good thing in this case, > though in general I agree that selectively suppressing warnings that cannot > be fixed is a good

[issue30726] [Windows] Warnings in elementtree due to new expat

2017-07-04 Thread Steve Dower
Steve Dower added the comment: > I like decreasing the number of warnings. It helps to detect new warnings, > and so to prevent bugs. The approach used to suppress this warning will also suppress other warnings that might be fixable. Hard to say it's definitely a good thing in this case,

[issue30726] [Windows] Warnings in elementtree due to new expat

2017-07-04 Thread STINNER Victor
STINNER Victor added the comment: > It doesn't even fix a warning - only suppresses it. Since there is no > behavior change at all, I'm not inclined to backport any further than is > trivial. I like decreasing the number of warnings. It helps to detect new warnings, and so to prevent bugs.

[issue30726] [Windows] Warnings in elementtree due to new expat

2017-07-04 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: -> fixed stage: backport needed -> resolved status: open -> closed ___ Python tracker

[issue30726] [Windows] Warnings in elementtree due to new expat

2017-07-04 Thread STINNER Victor
STINNER Victor added the comment: Thanks Segev Finer for backports. -- ___ Python tracker ___ ___

[issue30814] Import dotted name as alias breaks with concurrency

2017-07-04 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- priority: normal -> high ___ Python tracker ___ ___

[issue30794] Add multiprocessing.Process.kill()

2017-07-04 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thank you Vitor! I posted some review comments on your PR. -- ___ Python tracker ___

[issue30726] [Windows] Warnings in elementtree due to new expat

2017-07-04 Thread STINNER Victor
STINNER Victor added the comment: New changeset d0ae4be443332d63fafb304944842fbaece734a3 by Victor Stinner (Segev Finer) in branch '2.7': bpo-30726: Add _CRT_SECURE_NO_WARNINGS to _elementtree and pyexpat projects (#2572)

[issue30726] [Windows] Warnings in elementtree due to new expat

2017-07-04 Thread STINNER Victor
STINNER Victor added the comment: New changeset 320ee67f981f766ff55c55ef87d5ef17ce297824 by Victor Stinner (Segev Finer) in branch '3.5': [3.5] bpo-30726: Also fix pyexpat.vcxproj (GH-2375) (#2571) https://github.com/python/cpython/commit/320ee67f981f766ff55c55ef87d5ef17ce297824 --

[issue30726] [Windows] Warnings in elementtree due to new expat

2017-07-04 Thread STINNER Victor
STINNER Victor added the comment: New changeset d02c8416fe1b29b3322004b73133bf6c8a2e353a by Victor Stinner (Segev Finer) in branch '3.6': [3.6] bpo-30726: Also fix pyexpat.vcxproj (GH-2375) (#2570) https://github.com/python/cpython/commit/d02c8416fe1b29b3322004b73133bf6c8a2e353a --

[issue30794] Add multiprocessing.Process.kill()

2017-07-04 Thread Vitor Pereira
Vitor Pereira added the comment: Hey, I submitted a PR and just signed the CLA. If you could please take a look. Thanks! -- ___ Python tracker ___

[issue30726] [Windows] Warnings in elementtree due to new expat

2017-07-04 Thread Segev Finer
Changes by Segev Finer : -- pull_requests: +2643 ___ Python tracker ___ ___

[issue30726] [Windows] Warnings in elementtree due to new expat

2017-07-04 Thread Segev Finer
Segev Finer added the comment: Python 2.7 diverged https://github.com/python/cpython/commit/ab3b0ade505ce07a3d5ec4fbc991a154242732e6. It's only missing _CRT_SECURE_NO_WARNINGS. :P -- ___ Python tracker

[issue30726] [Windows] Warnings in elementtree due to new expat

2017-07-04 Thread Segev Finer
Changes by Segev Finer : -- pull_requests: +2641 ___ Python tracker ___ ___

[issue30726] [Windows] Warnings in elementtree due to new expat

2017-07-04 Thread Segev Finer
Changes by Segev Finer : -- pull_requests: +2642 ___ Python tracker ___ ___

[issue30828] Out of bounds write in _asyncio_Future_remove_done_callback

2017-07-04 Thread Yury Selivanov
Changes by Yury Selivanov : -- pull_requests: +2640 ___ Python tracker ___ ___

[issue30814] Import dotted name as alias breaks with concurrency

2017-07-04 Thread Brett Cannon
Brett Cannon added the comment: My guess is the import of package has completed but package.submodule hasn't (I don't know what state it would be in, but obviously before the module is assigned as an attribute on the package), a context switch occurs, and then the assignment fails due to

[issue29406] asyncio SSL contexts leak sockets after calling close with certain Apache servers

2017-07-04 Thread Yury Selivanov
Yury Selivanov added the comment: > Yury, based on the most recent comments, can this issue be closed now? Not sure, I'm reviewing the patch for #30698, let's see if it fixes the problem. -- ___ Python tracker

[issue30844] selectors: Add exceptional conditions event

2017-07-04 Thread Antoine Pitrou
Antoine Pitrou added the comment: About naming: it is true that the manpage for select() uses the wording "exceptional condition". But the Linux man page for poll() (and by extension epoll_wait()) does not use that wording, it says "There is urgent data to read". The POSIX man page for

[issue12910] urrlib.quote quotes too many chars, e.g., '()'

2017-07-04 Thread Jörn Hees
Changes by Jörn Hees : -- versions: +Python 2.7, Python 3.4, Python 3.5, Python 3.6, Python 3.7 ___ Python tracker ___

[issue30850] [2.7] bsddb3: test01_basic_replication() of test_bsddb3 fails randomly on AMD64 Windows8.1 Refleaks 2.7

2017-07-04 Thread STINNER Victor
New submission from STINNER Victor: See also bpo-30778: "test_bsddb3 crash on x86 Windows XP 2.7". http://buildbot.python.org/all/builders/AMD64%20Windows8.1%20Refleaks%202.7/builds/40/steps/test/logs/stdio 1:07:30 [145/403/1] test_bsddb3 failed -- running: test_weakref (4038 sec), test_io

[issue30849] test_stress_delivery_dependent() randomly fails on AMD64 Debian root 3.6

2017-07-04 Thread STINNER Victor
New submission from STINNER Victor: Antoine: I told you that such stess-test is going to require work to polish it. So here is another example of failure. Enjoy :-) http://buildbot.python.org/all/builders/AMD64%20Debian%20root%203.6/builds/534/steps/test/logs/stdio == CPython 3.6.2rc1+

[issue12910] urrlib.quote quotes too many chars, e.g., '()'

2017-07-04 Thread Jörn Hees
Jörn Hees added the comment: It's been a while... nowadays I would mostly change the documentation of the quote function to point out that it is likely to quote more characters than absolutely necessary by SPEC. The function is in place for so long, (even in py3) that people will rely on the

[issue30848] test_multiprocessing_forkserver hangs on AMD64 FreeBSD CURRENT Debug 3.x

2017-07-04 Thread STINNER Victor
STINNER Victor added the comment: This buildbot run uses --timeout=900, so test_multiprocessing_forkserver was supposed to be killed after 15 minutes by faulthandler, but buildbot had to kill it after 20 min. Moreover, the main regrtest process is supposed to log "running: ..." messages every

[issue12910] urrlib.quote quotes too many chars, e.g., '()'

2017-07-04 Thread Jörn Hees
Changes by Jörn Hees : -- pull_requests: +2638 ___ Python tracker ___ ___

[issue30848] test_multiprocessing_forkserver hangs on AMD64 FreeBSD CURRENT Debug 3.x

2017-07-04 Thread STINNER Victor
New submission from STINNER Victor: http://buildbot.python.org/all/builders/AMD64%20FreeBSD%20CURRENT%20Debug%203.x/builds/546/steps/test/logs/stdio ... 0:23:06 load avg: 0.73 [402/406] test_multiprocessing_fork passed (84 sec) -- running: test_multiprocessing_forkserver (287 sec) 0:23:06 load

[issue30844] selectors: Add exceptional conditions event

2017-07-04 Thread Pim Klanke
Changes by Pim Klanke : -- title: selectors: Add exceptional urgent data event -> selectors: Add exceptional conditions event ___ Python tracker

[issue30844] selectors: Add exceptional urgent data event

2017-07-04 Thread STINNER Victor
STINNER Victor added the comment: I don't know anything about OOB data, so I continue to add more pointers :-) https://en.wikipedia.org/wiki/Out-of-band_data "Out of band data is a logically independent transmission channel between a pair of connected stream sockets." --

[issue30844] selectors: Add exceptional urgent data event

2017-07-04 Thread STINNER Victor
STINNER Victor added the comment: http://man7.org/linux/man-pages/man7/tcp.7.html Sockets API TCP provides limited support for out-of-band data, in the form of (a single byte of) urgent data. In Linux this means if the other end sends newer out-of-band data the older

[issue30844] selectors: Add exceptional urgent data event

2017-07-04 Thread STINNER Victor
STINNER Victor added the comment: > To be able to use GPIO Sysfs Interface on our embedded platforms we require > exceptional event support. Antoine Pitrou noticed that "exception" term can be confusion in Python, since exceptions are like "raise ValueError(...)". The manual page mentions

[issue27784] Random failure of test_TCPServer() of test.test_socketserver.SocketServerTest and test_handle_accept() of test.test_asyncore.TestAPI_UseIPv6Select on FreeBSD buildbots

2017-07-04 Thread STINNER Victor
STINNER Victor added the comment: Duplicate of bpo-30319. -- ___ Python tracker ___ ___ Python-bugs-list

[issue30319] Change socket.close() to ignore ECONNRESET

2017-07-04 Thread Alex Gaynor
Changes by Alex Gaynor : -- nosy: -alex ___ Python tracker ___ ___ Python-bugs-list

[issue30391] test_threading_handled() and test_threading_not_handled() of test_socketserver hangs randomly on AMD64 FreeBSD 10.x Shared 3.6

2017-07-04 Thread STINNER Victor
STINNER Victor added the comment: I marked bpo-30652 as duplicate of this issue. Copy of the first message msg295903: http://buildbot.python.org/all/builders/AMD64%20FreeBSD%2010.x%20Shared%203.6/builds/218/steps/test/logs/stdio 0:16:16 [405/405] test_socketserver crashed Timeout (0:15:00)!

[issue30652] test_threading_not_handled() of test_socketserver hangs randomly on AMD64 FreeBSD 10.x Shared 3.6

2017-07-04 Thread STINNER Victor
STINNER Victor added the comment: While the traceback is not identify, this issue really looks like a duplicate of bpo-30391. -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> test_threading_handled() of test_socketserver hangs randomly on AMD64

[issue30319] Change socket.close() to ignore ECONNRESET

2017-07-04 Thread STINNER Victor
STINNER Victor added the comment: I don't see the link between this issue and bpo-30652 or bpo-30391, I removed these dependencies. I marked bpo-27784, bpo-30328, bpo-30543 and bpo-30315 as duplicates of this issue. bpo-30106 was already fixed, differently, but I mentioned this issue in it.

[issue27784] Random failure of test_TCPServer() of test.test_socketserver.SocketServerTest and test_handle_accept() of test.test_asyncore.TestAPI_UseIPv6Select on FreeBSD buildbots

2017-07-04 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: out of date -> duplicate superseder: -> Change socket.close() to ignore ECONNRESET ___ Python tracker

[issue30106] test_asyncore: test_handle_write() fails in tearDown()

2017-07-04 Thread STINNER Victor
STINNER Victor added the comment: File "/usr/home/buildbot/python/3.x.koobs-freebsd-current.nondebug/build/Lib/socket.py", line 411, in _real_close _ss.close(self) ConnectionResetError: [Errno 54] Connection reset by peer This bug was fixed by bpo-30319. --

[issue30315] test_ftplib.TestTLS_FTPClass: "[Errno 54] Connection reset by peer" on "AMD64 FreeBSD CURRENT Debug 3.x" buildbot

2017-07-04 Thread STINNER Victor
STINNER Victor added the comment: This issue seems like a duplicate of bpo-30319. While I'm not 100% confident, I'm quite sure that ignoring ECONNRESET in socket.close() should help ;-) -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Change

[issue30328] test_ssl.test_connect_with_context(): ConnectionResetError on AMD64 FreeBSD 9.x 3.6

2017-07-04 Thread STINNER Victor
STINNER Victor added the comment: Duplicate of bpo-30319. -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Change socket.close() to ignore ECONNRESET ___ Python tracker

[issue30319] Change socket.close() to ignore ECONNRESET

2017-07-04 Thread STINNER Victor
STINNER Victor added the comment: Ok. I modified socket.close() to ignore ECONNRESET in Python 3.6 and 3.7. I will leave the issue open a few days to see if it helps to reduce buildbot failure rate. -- ___ Python tracker

[issue30543] test_timeout fails on AMD64 FreeBSD CURRENT Debug 3.x: ConnectionResetError: [Errno 54] Connection reset by peer

2017-07-04 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Change socket.close() to ignore ECONNRESET ___ Python tracker

[issue30319] Change socket.close() to ignore ECONNRESET

2017-07-04 Thread STINNER Victor
STINNER Victor added the comment: New changeset 580cd5cd3603317d294a881628880a92ea221334 by Victor Stinner in branch '3.6': bpo-30319: socket.close() now ignores ECONNRESET (#2565) (#2566) https://github.com/python/cpython/commit/580cd5cd3603317d294a881628880a92ea221334 --

[issue26685] Raise errors from socket.close()

2017-07-04 Thread STINNER Victor
STINNER Victor added the comment: New changeset 580cd5cd3603317d294a881628880a92ea221334 by Victor Stinner in branch '3.6': bpo-30319: socket.close() now ignores ECONNRESET (#2565) (#2566) https://github.com/python/cpython/commit/580cd5cd3603317d294a881628880a92ea221334 --

[issue30843] [2.7] Lib/test/bisect.py conflicts with Lib/bisect.py when running tests

2017-07-04 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +2637 ___ Python tracker ___ ___

[issue26685] Raise errors from socket.close()

2017-07-04 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +2636 ___ Python tracker ___ ___

[issue30319] Change socket.close() to ignore ECONNRESET

2017-07-04 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +2635 ___ Python tracker ___ ___

[issue26685] Raise errors from socket.close()

2017-07-04 Thread STINNER Victor
STINNER Victor added the comment: New changeset 67e1478dba6efe60b8e1890192014b8b06dd6bd9 by Victor Stinner in branch 'master': bpo-30319: socket.close() now ignores ECONNRESET (#2565) https://github.com/python/cpython/commit/67e1478dba6efe60b8e1890192014b8b06dd6bd9 --

[issue30319] Change socket.close() to ignore ECONNRESET

2017-07-04 Thread STINNER Victor
STINNER Victor added the comment: New changeset 67e1478dba6efe60b8e1890192014b8b06dd6bd9 by Victor Stinner in branch 'master': bpo-30319: socket.close() now ignores ECONNRESET (#2565) https://github.com/python/cpython/commit/67e1478dba6efe60b8e1890192014b8b06dd6bd9 --

[issue30847] asyncio: selector_events: add_excepter(), 3rd argument of select.select()

2017-07-04 Thread Pim Klanke
Pim Klanke added the comment: To be able to use GPIO Sysfs Interface with asyncio on our embedded platforms, we require exceptional event support in asyncio. depends on bpo-30844 -- ___ Python tracker

[issue30847] asyncio: selector_events: add_excepter(), 3rd argument of select.select()

2017-07-04 Thread STINNER Victor
STINNER Victor added the comment: Does the Windows Proactor event loop has a similar concept of "excepter"? -- ___ Python tracker ___

[issue30847] asyncio: selector_events: add_excepter(), 3rd argument of select.select()

2017-07-04 Thread STINNER Victor
STINNER Victor added the comment: Please elaborate the description :-) -- nosy: +haypo ___ Python tracker ___

[issue30847] asyncio: selector_events: add_excepter(), 3rd argument of select.select()

2017-07-04 Thread Pim Klanke
New submission from Pim Klanke: depends on bpo-30844 -- components: asyncio messages: 297652 nosy: pklanke, yselivanov priority: normal severity: normal status: open title: asyncio: selector_events: add_excepter(), 3rd argument of select.select() type: enhancement versions: Python 3.7

[issue30844] selectors: Add exceptional urgent data event

2017-07-04 Thread Pim Klanke
Changes by Pim Klanke : -- title: selectors: add_excepter(), 3rd argument of select.select() -> selectors: Add exceptional urgent data event ___ Python tracker

[issue30231] test_imaplib needs a TLS server accepting self-signed certificates

2017-07-04 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +2634 ___ Python tracker ___ ___

[issue30319] Change socket.close() to ignore ECONNRESET

2017-07-04 Thread STINNER Victor
STINNER Victor added the comment: I wrote https://github.com/python/cpython/pull/2565 because the ConnectionResetError error on socket.close() is more and more a cause of failures on FreeBSD buildbots. I mean that I fixed enough other bugs to start to only see one specific bug more often ;-)

[issue30844] selectors: add_excepter(), 3rd argument of select.select()

2017-07-04 Thread Pim Klanke
Changes by Pim Klanke : -- components: -asyncio title: selectors and asyncio: add_excepter(), 3rd argument of select.select() -> selectors: add_excepter(), 3rd argument of select.select() ___ Python tracker

[issue30319] Change socket.close() to ignore ECONNRESET

2017-07-04 Thread STINNER Victor
STINNER Victor added the comment: Ok, I rewrote my PR to only ignore ECONNRESET in socket.close(). -- ___ Python tracker ___

[issue30789] Redesign PyCodeObject.co_extras to use a single memory block, instead of two

2017-07-04 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue30319] Change socket.close() to ignore ECONNRESET

2017-07-04 Thread Antoine Pitrou
Antoine Pitrou added the comment: Le 04/07/2017 à 14:00, STINNER Victor a écrit : > > Antoine Pitrou: "shutdown() is not the same thing as close()." > > I consider that the bug is similar to socket.close() error, > [...] First, let's not call it a bug when an error is reported to the user. A

[issue30789] Redesign PyCodeObject.co_extras to use a single memory block, instead of two

2017-07-04 Thread STINNER Victor
STINNER Victor added the comment: New changeset 378ebb6578b9d709f38b888d23874c0b18125249 by Victor Stinner (Serhiy Storchaka) in branch 'master': bpo-30789: Use a single memory block for co_extra. (#2555) https://github.com/python/cpython/commit/378ebb6578b9d709f38b888d23874c0b18125249

[issue29796] [2.7] test_weakref hangs on Python 2.7 on Windows

2017-07-04 Thread STINNER Victor
STINNER Victor added the comment: With commit 1fef0154d97bd7f01c5bc59954a278bacf1a3f0e, test_weakref takes 11 seconds on my Windows VM. Without this fix, test_weakref runs for longer than 2 hour and 19 min on my Windows VM. I decided to kill the test, I don't want to burn my CPU too long :-)

[issue30319] Change socket.close() to ignore ECONNRESET

2017-07-04 Thread STINNER Victor
STINNER Victor added the comment: I wrote https://github.com/python/cpython/pull/2565 * socket.close() now ignores ECONNRESET error * socket.shutdown() now ignores ENOTCONN and WSAEINVAL errors -- ___ Python tracker

[issue30319] Change socket.close() to ignore ECONNRESET

2017-07-04 Thread STINNER Victor
STINNER Victor added the comment: Antoine Pitrou: "shutdown() is not the same thing as close()." I consider that the bug is similar to socket.close() error, since we also get an exception because the peer closed the connection. It's just the error code which is different. Antoine Pitrou:

[issue30319] Change socket.close() to ignore ECONNRESET

2017-07-04 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +2632 ___ Python tracker ___ ___

[issue30319] Change socket.close() to ignore ECONNRESET

2017-07-04 Thread Antoine Pitrou
Antoine Pitrou added the comment: shutdown() is not the same thing as close(). If you want to ignore errors on shutdown() you should open a separate issue (and argument for it, because "I saw the error on the buildbots" is not a sufficient reason IMHO). --

[issue30319] Change socket.close() to ignore ECONNRESET

2017-07-04 Thread STINNER Victor
STINNER Victor added the comment: I propose to ignore ECONNRESET in socket.close() and ENOTCONN and WSAEINVAL on socket.shutdown(). If we see more failures later, we can extend these lists. asyncore also ignores ENOTCONN on socket.close(), but I don't trust this module at this point: it

[issue30844] selectors and asyncio: add_excepter(), 3rd argument of select.select()

2017-07-04 Thread STINNER Victor
Changes by STINNER Victor : -- title: selector_events.py lacks exceptional event support -> selectors and asyncio: add_excepter(), 3rd argument of select.select() versions: -Python 3.4, Python 3.5, Python 3.6 ___ Python

[issue30844] selector_events.py lacks exceptional event support

2017-07-04 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +neologix ___ Python tracker ___ ___

[issue30845] [3.5] test_first_completed_some_already_completed() of test_concurrent_futures.ProcessPoolWaitTests: time.sleep() fails with "sleep length must be non-negative" in setUp() on x86 Tiger 3.

2017-07-04 Thread STINNER Victor
STINNER Victor added the comment: New changeset 3df9dec425b0254df1cdf41922fd8d6b08bf47e4 by Victor Stinner in branch 'master': bpo-30845: Enhance test_concurrent_futures cleanup (#2564) https://github.com/python/cpython/commit/3df9dec425b0254df1cdf41922fd8d6b08bf47e4 --

[issue30846] [3.6] test_rapid_restart() of test_multiprocessing_fork fails randomly on AMD64 Debian PGO 3.6

2017-07-04 Thread STINNER Victor
Changes by STINNER Victor : -- title: test_rapid_restart() of test_multiprocessing_fork fails randomly on AMD64 Debian PGO 3.6 -> [3.6] test_rapid_restart() of test_multiprocessing_fork fails randomly on AMD64 Debian PGO 3.6

[issue30846] test_rapid_restart() of test_multiprocessing_fork fails randomly on AMD64 Debian PGO 3.6

2017-07-04 Thread STINNER Victor
New submission from STINNER Victor: http://buildbot.python.org/all/builders/AMD64%20Debian%20PGO%203.6/builds/517/steps/test/logs/stdio == ERROR: test_rapid_restart

[issue30845] [3.5] test_first_completed_some_already_completed() of test_concurrent_futures.ProcessPoolWaitTests: time.sleep() fails with "sleep length must be non-negative" in setUp() on x86 Tiger 3.

2017-07-04 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +2631 ___ Python tracker ___ ___

[issue29868] multiprocessing.dummy missing cpu_count

2017-07-04 Thread STINNER Victor
STINNER Victor added the comment: multiprocessing.dummy lacks many symbols: >>> set(multiprocessing.__all__) - set(multiprocessing.dummy.__all__) {'RawArray', 'set_forkserver_preload', 'ProcessError', 'RawValue', 'BufferTooShort', 'reducer', 'set_executable', 'Array', 'cpu_count',

[issue30845] [3.5] test_first_completed_some_already_completed() of test_concurrent_futures.ProcessPoolWaitTests: time.sleep() fails with "sleep length must be non-negative" in setUp() on x86 Tiger 3.

2017-07-04 Thread STINNER Victor
New submission from STINNER Victor: Code of the setUp() method: class ExecutorMixin: worker_count = 5 def setUp(self): self.t1 = time.time() try: self.executor = self.executor_type(max_workers=self.worker_count) except NotImplementedError as e:

[issue29796] [2.7] test_weakref hangs on Python 2.7 on Windows

2017-07-04 Thread STINNER Victor
STINNER Victor added the comment: Oh wow! The commit 1fef0154d97bd7f01c5bc59954a278bacf1a3f0e fixed PGO compilation on Python 2.7: http://buildbot.python.org/all/builders/AMD64%20Debian%20PGO%202.7/builds/227 is the first successful build since June 20. I didn't notice that the PGO buildbot

[issue30843] [2.7] Lib/test/bisect.py conflicts with Lib/bisect.py when running tests

2017-07-04 Thread STINNER Victor
STINNER Victor added the comment: Fixed: I renamed Lib/test/bisect.py to Lib/test/bisectcmd.py. -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker

[issue30843] [2.7] Lib/test/bisect.py conflicts with Lib/bisect.py when running tests

2017-07-04 Thread STINNER Victor
STINNER Victor added the comment: New changeset 28b72baf3c1e57af0c9338fb41c89d62aa47a355 by Victor Stinner in branch '2.7': bpo-30843: Rename Lib/test/bisect.py to Lib/test/bisectcmd.py (#2563) https://github.com/python/cpython/commit/28b72baf3c1e57af0c9338fb41c89d62aa47a355 --

  1   2   >