[issue31347] possible undefined behavior in _PyObject_FastCall_Prepend

2017-09-04 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___

[issue31347] possible undefined behavior in _PyObject_FastCall_Prepend

2017-09-04 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset a3070d530c70477273cacbc61660b318582fff44 by Benjamin Peterson in branch 'master': bpo-31347: _PyObject_FastCall_Prepend: do not call memcpy if args might not be null (#3329)

[issue17852] Built-in module _io can loose data from buffered files at exit

2017-09-04 Thread Neil Schemenauer
Neil Schemenauer added the comment: New changeset db564238db440d4a2d8eb9d60ffb94ef291f6d30 by Neil Schemenauer in branch 'master': Revert "bpo-17852: Maintain a list of BufferedWriter objects. Flush them on exit. (#1908)" (#3337)

[issue31342] test.bisect module causes tests to fail

2017-09-04 Thread Neil Schemenauer
Neil Schemenauer added the comment: The key is how the test is run. If you run: $ ./python Lib/test/.py Then the Lib/test gets added to the first part of sys.path. Then "import bisect" imports the Lib/test/bisect.py module rather than Lib/bisect.py. Obvious options seem to be: 1. rename

[issue17852] Built-in module _io can loose data from buffered files at exit

2017-09-04 Thread Neil Schemenauer
Changes by Neil Schemenauer : -- pull_requests: +3352 ___ Python tracker ___ ___

[issue26692] cgroups support in multiprocessing

2017-09-04 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___

[issue17852] Built-in module _io can loose data from buffered files at exit

2017-09-04 Thread Neil Schemenauer
Neil Schemenauer added the comment: New changeset e38d12ed34870c140016bef1e0ff10c8c3d3f213 by Neil Schemenauer in branch 'master': bpo-17852: Maintain a list of BufferedWriter objects. Flush them on exit. (#1908)

[issue31348] webbrowser BROWSER with MacOSXOSAScript type

2017-09-04 Thread Michael Lazar
New submission from Michael Lazar: Hello, I have found that [1] is an open issue, but I have discovered what appears to be a completely separate bug than the one described in that ticket. The issue is that there is no way to specify a MacOSXOSAScript browser using the BROWSER variable. The

[issue31333] Implement ABCMeta in C

2017-09-04 Thread INADA Naoki
INADA Naoki added the comment: > Hm, indeed, but I see that module 'abc' is in 'sys.modules', probably it is > then only used by 'collections.abc'/'_collections_abc'. This means that the > influence of 'ABCMeta' on interpreter start-up time will be smaller than I > thought. But still start-up

[issue14191] argparse doesn't allow optionals within positionals

2017-09-04 Thread Glenn Linderman
Glenn Linderman added the comment: I would dearly love to discard my private copies of argparse subclasses to implement this that I have been using for the last 5 years. Please, some other committer, concur here! -- ___ Python tracker

[issue31265] Remove doubly-linked list from C OrderedDict

2017-09-04 Thread INADA Naoki
INADA Naoki added the comment: FYI, my approach is not original, but copied from PyPy. https://bitbucket.org/pypy/pypy/src/3e52029e9a5a677f7de62ef49f36090465cfbf4c/rpython/rtyper/lltypesystem/rordereddict.py?at=default=file-view-default#rordereddict.py-1437:1551 --

[issue31333] Implement ABCMeta in C

2017-09-04 Thread Guido van Rossum
Guido van Rossum added the comment: I've heard many anecdotal complaints about the lack of speed of ABCs. Even if it doesn't affect core Python startup, it does affect startup of apps, and if people are afraid to use them because of this, it's reasonable to try to do something about it.

[issue29988] (async) with blocks and try/finally are not as KeyboardInterrupt-safe as one might like

2017-09-04 Thread Nathaniel Smith
Nathaniel Smith added the comment: In bpo-30703 Antoine fixed signal handling so it doesn't use Py_AddPendingCall anymore. At this point the only time the interpreter itself uses Py_AddPendingCall is when there's an error writing to the signal_fd, which should never happen in normal usage.

[issue31333] Implement ABCMeta in C

2017-09-04 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- nosy: +gvanrossum ___ Python tracker ___ ___

[issue31342] test.bisect module causes tests to fail

2017-09-04 Thread STINNER Victor
STINNER Victor added the comment: Can you put the whole traceback? I'm unable to reproduce the issue. Which datetime test uses biesct? -- ___ Python tracker

[issue31170] Update to expat 2.2.4 (expat: utf8_toUtf8 cannot properly handle exhausting buffer)

2017-09-04 Thread STINNER Victor
STINNER Victor added the comment: New changeset 759e30ec47048cb9835c62aaeac48748c8151390 by Victor Stinner in branch 'master': bpo-31170: Update libexpat from 2.2.3 to 2.2.4 (#3315) https://github.com/python/cpython/commit/759e30ec47048cb9835c62aaeac48748c8151390 --

[issue28411] Eliminate PyInterpreterState.modules.

2017-09-04 Thread Eric Snow
Changes by Eric Snow : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue28411] Eliminate PyInterpreterState.modules.

2017-09-04 Thread Eric Snow
Eric Snow added the comment: New changeset 86b7afdfeee77993fe896a2aa13b3f4f95973f16 by Eric Snow in branch 'master': bpo-28411: Remove "modules" field from Py_InterpreterState. (#1638) https://github.com/python/cpython/commit/86b7afdfeee77993fe896a2aa13b3f4f95973f16 --

[issue16565] Increase Py_AddPendingCall array size

2017-09-04 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- versions: +Python 3.7 -Python 2.7, Python 3.3, Python 3.4, Python 3.5 ___ Python tracker ___

[issue29988] (async) with blocks and try/finally are not as KeyboardInterrupt-safe as one might like

2017-09-04 Thread Gregory P. Smith
Gregory P. Smith added the comment: I do wonder if this is going to raise the urgency of https://bugs.python.org/issue16565 (Increase Py_AddPendingCall array size) or other refactoring of how pending calls are tracked. -- ___ Python tracker

[issue31341] remove IRIX support code

2017-09-04 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset 069306312addf87252e2dbf250fc7632fc8b7da3 by Benjamin Peterson in branch 'master': remove IRIX support (closes bpo-31341) (#3310) https://github.com/python/cpython/commit/069306312addf87252e2dbf250fc7632fc8b7da3 -- resolution: ->

[issue31347] possible undefined behavior in _PyObject_FastCall_Prepend

2017-09-04 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- pull_requests: +3351 ___ Python tracker ___ ___

[issue31347] possible undefined behavior in _PyObject_FastCall_Prepend

2017-09-04 Thread Benjamin Peterson
New submission from Benjamin Peterson: As seen by ubsan: ../cpython/Objects/call.c:858:9: runtime error: null pointer passed as argument 2, which is declared to never be null -- messages: 301283 nosy: benjamin.peterson priority: normal severity: normal status: open title: possible

[issue31346] Prefer PROTOCOL_TLS_CLIENT/SERVER

2017-09-04 Thread Christian Heimes
Changes by Christian Heimes : -- pull_requests: +3349 ___ Python tracker ___ ___

[issue15427] Describe use of args parameter of argparse.ArgumentParser.parse_args

2017-09-04 Thread R. David Murray
Changes by R. David Murray : -- pull_requests: +3350 ___ Python tracker ___ ___

[issue15427] Describe use of args parameter of argparse.ArgumentParser.parse_args

2017-09-04 Thread R. David Murray
Changes by R. David Murray : -- pull_requests: +3348 ___ Python tracker ___ ___

[issue31346] Prefer PROTOCOL_TLS_CLIENT/SERVER

2017-09-04 Thread Christian Heimes
New submission from Christian Heimes: Since Python 3.6 the ssl module has three new protocols: * PROTOCOL_TLS is the new, preferred, and less confusing name of PROTOCOL_SSLv23. It performs auto-negotiation of the best TLS/SSL protocol supported by client and server. * PROTOCOL_TLS_CLIENT is

[issue30622] Fix NPN guard for OpenSSL 1.1

2017-09-04 Thread Christian Heimes
Christian Heimes added the comment: New changeset 72ed233167b10d3a488d30a8ec3a17e412a7dd69 by Christian Heimes in branch '2.7': [2.7] bpo-30622: Change NPN detection: (GH-2079) (#3316) https://github.com/python/cpython/commit/72ed233167b10d3a488d30a8ec3a17e412a7dd69 --

[issue31345] Backport docstring improvements to the C version of OrderedDict

2017-09-04 Thread Raymond Hettinger
New submission from Raymond Hettinger: The help() for collections.OrderedDict.popitem is not showing the default value of last=True. --- Prior versions are unhelpful -- ~/npython $ python3.6 Python 3.6.2 (v3.6.2:5fd33b5926, Jul 16 2017, 20:11:06) [GCC 4.2.1 (Apple Inc.

[issue30450] Pull Windows dependencies from GitHub rather than svn.python.org

2017-09-04 Thread Zachary Ware
Zachary Ware added the comment: New changeset 986b7ffc650919b3022ccaa458a843bb8a95d2bd by Zachary Ware in branch '2.7': [2.7] bpo-30450: Pull Windows dependencies from GitHub rather than SVN (GH-1783) (GH-3306) https://github.com/python/cpython/commit/986b7ffc650919b3022ccaa458a843bb8a95d2bd

[issue30502] Fix buffer handling of OBJ_obj2txt

2017-09-04 Thread Christian Heimes
Changes by Christian Heimes : -- pull_requests: +3347 ___ Python tracker ___ ___

[issue29988] (async) with blocks and try/finally are not as KeyboardInterrupt-safe as one might like

2017-09-04 Thread Nick Coghlan
Nick Coghlan added the comment: Right, if you look at the comments in the draft test case, we realised there are three things we currently need to protect: 1. POP_BLOCK -> WITH_CLEANUP_START (synchronous CM) 2. POP_BLOCK -> GET_AWAITABLE (asynchronous CM) 3. GET_AWAITABLE -> YIELD_FROM

[issue30502] Fix buffer handling of OBJ_obj2txt

2017-09-04 Thread Christian Heimes
Changes by Christian Heimes : -- pull_requests: +3346 ___ Python tracker ___ ___

[issue29988] (async) with blocks and try/finally are not as KeyboardInterrupt-safe as one might like

2017-09-04 Thread Nathaniel Smith
Nathaniel Smith added the comment: This would still provide value even if you have to do a GET_AWAITABLE in the protected region: the most common case is that __aenter__ is a coroutine function, which means that its __await__ is implemented in C and already protected against interrupts.

[issue30502] Fix buffer handling of OBJ_obj2txt

2017-09-04 Thread Christian Heimes
Christian Heimes added the comment: New changeset e503ca52889bf66ac502702569e726caa7970299 by Christian Heimes (Serhiy Storchaka) in branch 'master': bpo-30502: Fix handling of long oids in ssl. (#2909) https://github.com/python/cpython/commit/e503ca52889bf66ac502702569e726caa7970299

[issue14191] argparse doesn't allow optionals within positionals

2017-09-04 Thread R. David Murray
R. David Murray added the comment: I've turned intermixed.patch into a PR. I tweaked the documentation so that it does not refer to the details of the implementation. I tweaked the implementation to have the 'try' start before the code that modifies the state, and did the line wrapping to

[issue14191] argparse doesn't allow optionals within positionals

2017-09-04 Thread R. David Murray
Changes by R. David Murray : -- pull_requests: +3345 ___ Python tracker ___ ___

[issue31343] Include major(), minor(), makedev() from sysmacros

2017-09-04 Thread Christian Heimes
Changes by Christian Heimes : -- pull_requests: +3344 ___ Python tracker ___ ___

[issue29988] (async) with blocks and try/finally are not as KeyboardInterrupt-safe as one might like

2017-09-04 Thread Nick Coghlan
Changes by Nick Coghlan : -- dependencies: +f_trace_opcodes frame attribute to switch to per-opcode tracing ___ Python tracker ___

[issue29988] (async) with blocks and try/finally are not as KeyboardInterrupt-safe as one might like

2017-09-04 Thread Nick Coghlan
Nick Coghlan added the comment: https://github.com/ncoghlan/cpython/pull/2/files provides a test case that reliably reproduces the problem for both synchronous and asynchronous context managers. It's inspired by Nathaniel's proposal above, but relies on a modified version of sys.settrace

[issue31344] f_trace_opcodes frame attribute to switch to per-opcode tracing

2017-09-04 Thread Nick Coghlan
New submission from Nick Coghlan: In order to test issue 29988 reliably, we want the ability to run trace hooks for every opcode in a frame, rather than for every line. The simplest API we've been able to come up with for that is a "f_trace_opcodes" attribute on the frame which we set from

[issue31343] Include major(), minor(), makedev() from sysmacros

2017-09-04 Thread Christian Heimes
New submission from Christian Heimes: On Fedora 26, GCC is emitting warnings because we are using minor(), major() and makedev() from sys/types.h. The macros should be included from sys/sysmacros.h instead: ./Modules/posixmodule.c: In function ‘os_major_impl’: ./Modules/posixmodule.c:8758:13:

[issue31342] test.bisect module causes tests to fail

2017-09-04 Thread Neil Schemenauer
New submission from Neil Schemenauer: After a lot of head scratching, I have discovered why tests are failing for me. E.g. "./python Lib/test/test_datetime.py" results in AttributeError: module 'bisect' has no attribute 'bisect_right' Running tests this way causes test/bisect to be imported

[issue30622] Fix NPN guard for OpenSSL 1.1

2017-09-04 Thread Christian Heimes
Changes by Christian Heimes : -- pull_requests: +3343 ___ Python tracker ___ ___

[issue31170] Update to expat 2.2.4 (expat: utf8_toUtf8 cannot properly handle exhausting buffer)

2017-09-04 Thread STINNER Victor
STINNER Victor added the comment: I produced attached PR 3315 using attached cpython_rebuild_expat_dir.sh + revert Modules/expat/expat_external.h change to keep #include "pyexpatns.h". -- ___ Python tracker

[issue31170] Update to expat 2.2.4 (expat: utf8_toUtf8 cannot properly handle exhausting buffer)

2017-09-04 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +3342 ___ Python tracker ___ ___

[issue31170] Update to expat 2.2.4 (expat: utf8_toUtf8 cannot properly handle exhausting buffer)

2017-09-04 Thread STINNER Victor
Changes by STINNER Victor : Added file: http://bugs.python.org/file47118/cpython_rebuild_expat_dir.sh ___ Python tracker ___

[issue31170] Update to expat 2.2.4 (expat: utf8_toUtf8 cannot properly handle exhausting buffer)

2017-09-04 Thread STINNER Victor
Changes by STINNER Victor : -- title: expat: utf8_toUtf8 cannot properly handle exhausting buffer -> Update to expat 2.2.4 (expat: utf8_toUtf8 cannot properly handle exhausting buffer) ___ Python tracker

[issue30622] Fix NPN guard for OpenSSL 1.1

2017-09-04 Thread Christian Heimes
Changes by Christian Heimes : -- pull_requests: +3341 ___ Python tracker ___ ___

[issue30947] Update embeded copy of libexpat from 2.2.1 to 2.2.3

2017-09-04 Thread STINNER Victor
STINNER Victor added the comment: Expat 2.2.3 has a bug: see bpo-31170 :-( -- ___ Python tracker ___ ___

[issue30622] Fix NPN guard for OpenSSL 1.1

2017-09-04 Thread Christian Heimes
Christian Heimes added the comment: New changeset b2d096bd2a5ff86e53c25d00ee5fa097b36bf1d8 by Christian Heimes (Melvyn Sopacua) in branch 'master': bpo-30622: Change NPN detection: (#2079) https://github.com/python/cpython/commit/b2d096bd2a5ff86e53c25d00ee5fa097b36bf1d8 --

[issue24896] It is undocumented that re.UNICODE and re.LOCALE affect re.IGNORECASE

2017-09-04 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- pull_requests: +3340 ___ Python tracker ___ ___

[issue1198569] string.Template not flexible enough to subclass (regexes)

2017-09-04 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: New changeset 973b901212bd84d279904bab6654709f4ec32470 by Barry Warsaw in branch 'master': What's New for bpo-1198569 (#3303) https://github.com/python/cpython/commit/973b901212bd84d279904bab6654709f4ec32470 --

[issue31340] Use VS 2017 compiler for build

2017-09-04 Thread Steve Dower
Changes by Steve Dower : -- pull_requests: +3339 ___ Python tracker ___ ___

[issue22536] subprocess should include filename in FileNotFoundError exception

2017-09-04 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 1dba3789e335f06e3b01cdc84070f2e828c9b861 by Gregory P. Smith in branch '3.6': bpo-22536 [3.6] Set filename in FileNotFoundError (#3305) https://github.com/python/cpython/commit/1dba3789e335f06e3b01cdc84070f2e828c9b861 --

[issue31341] remove IRIX support code

2017-09-04 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- pull_requests: +3338 ___ Python tracker ___ ___

[issue31326] concurrent.futures: ProcessPoolExecutor.shutdown(wait=True) should wait for the call queue thread

2017-09-04 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +3337 ___ Python tracker ___ ___

[issue31339] [2.7] time.asctime() crash with year > 9999 using musl C library

2017-09-04 Thread STINNER Victor
STINNER Victor added the comment: Christian Heimes: "I'm ok to replace the asctime with our own implementation that can handle year >. Please include range checks for year, wday and month, though." Done. By the way, I discussed with Alex Gaynor on #python-dev to define the severity of

[issue31339] [2.7] time.asctime() crash with year > 9999 using musl C library

2017-09-04 Thread STINNER Victor
STINNER Victor added the comment: Ok, there are 3 choices: * Do nothing: musl crash on year > , glibc supports year > , behaviour is likely undefined on other libc * PR 3296: Reject year > on all platforms: can be seen as a Python 2.7 regression when running with glibc * PR 3293:

[issue22650] set up and use VM for net access in the test suite

2017-09-04 Thread Christian Heimes
Christian Heimes added the comment: FYI, sha256.tbs-internet.com is no longer used in tests. -- nosy: +christian.heimes ___ Python tracker ___

[issue25674] test_ssl (test_algorithms) failures on bolen-ubuntu slaves: sha256.tbs-internet.com unknown host

2017-09-04 Thread Christian Heimes
Changes by Christian Heimes : -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker ___

[issue25674] test_ssl (test_algorithms) failures on bolen-ubuntu slaves: sha256.tbs-internet.com unknown host

2017-09-04 Thread Christian Heimes
Christian Heimes added the comment: New changeset 57d963b0b559078ca419811d0d25fea27d42f30c by Christian Heimes in branch '2.7': [2.7] bpo-25674: remove sha256.tbs-internet.com ssl test (GH-3297) (#3301) https://github.com/python/cpython/commit/57d963b0b559078ca419811d0d25fea27d42f30c

[issue25674] test_ssl (test_algorithms) failures on bolen-ubuntu slaves: sha256.tbs-internet.com unknown host

2017-09-04 Thread Christian Heimes
Christian Heimes added the comment: I've removed the sha256.tbs-internet.com from 2.7, 3.6, and master. 3.5 and previous versions are in security fix-only mode. -- ___ Python tracker

[issue31341] remove IRIX support code

2017-09-04 Thread Benjamin Peterson
New submission from Benjamin Peterson: IRIX hasn't been officially supported, since 2013. Per PEP 11, we're going to remove the code in Python 3.7. -- components: Build messages: 301260 nosy: benjamin.peterson priority: normal severity: normal status: open title: remove IRIX support

[issue31340] Use VS 2017 compiler for build

2017-09-04 Thread Jeremy Kloth
Changes by Jeremy Kloth : -- nosy: +jkloth ___ Python tracker ___ ___

[issue30450] Pull Windows dependencies from GitHub rather than svn.python.org

2017-09-04 Thread Zachary Ware
Changes by Zachary Ware : -- pull_requests: +3336 ___ Python tracker ___ ___

[issue31339] [2.7] time.asctime() crash with year > 9999 using musl C library

2017-09-04 Thread Christian Heimes
Christian Heimes added the comment: I'm ok to replace the asctime with our own implementation that can handle year >. Please include range checks for year, wday and month, though. -- nosy: +christian.heimes ___ Python tracker

[issue22536] subprocess should include filename in FileNotFoundError exception

2017-09-04 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- pull_requests: +3335 ___ Python tracker ___ ___

[issue25674] test_ssl (test_algorithms) failures on bolen-ubuntu slaves: sha256.tbs-internet.com unknown host

2017-09-04 Thread Christian Heimes
Christian Heimes added the comment: New changeset 4bc8ef0eeed191f9398a90e748f732cfba67546d by Christian Heimes in branch '3.6': [3.6] bpo-25674: remove sha256.tbs-internet.com ssl test (GH-3297) (#3300) https://github.com/python/cpython/commit/4bc8ef0eeed191f9398a90e748f732cfba67546d

[issue1198569] string.Template not flexible enough to subclass (regexes)

2017-09-04 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- pull_requests: +3334 ___ Python tracker ___ ___

[issue31339] [2.7] time.asctime() crash with year > 9999 using musl C library

2017-09-04 Thread STINNER Victor
STINNER Victor added the comment: Oh, I forgot to describe the bug. asctime() (and ctime()?) do crash on year > with musl. musl uses an hardcoded buffer of 26 bytes: http://git.musl-libc.org/cgit/musl/tree/src/time/__asctime.c musl developers consider that the caller must reject year

[issue1198569] string.Template not flexible enough to subclass (regexes)

2017-09-04 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker ___

[issue25674] test_ssl (test_algorithms) failures on bolen-ubuntu slaves: sha256.tbs-internet.com unknown host

2017-09-04 Thread Christian Heimes
Changes by Christian Heimes : -- pull_requests: + ___ Python tracker ___ ___

[issue1198569] string.Template not flexible enough to subclass (regexes)

2017-09-04 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: New changeset ba4279683f8eb8f59be10d12547ea89480614388 by Barry Warsaw in branch 'master': bpo-1198569: Allow string.Template braced pattern to be different (#3288) https://github.com/python/cpython/commit/ba4279683f8eb8f59be10d12547ea89480614388 --

[issue31339] [2.7] time.asctime() buffer overflow for year > 9999 using mucl (C library)

2017-09-04 Thread STINNER Victor
STINNER Victor added the comment: To be honest, I'm not sure that the issue must be categorized as a security vulnerability, nor that it should be fixed. I opened an issue to discuss if it's worth it. To be clear: Python 3 is safe (at least since Python 3.3, I didn't check older Python 3.x

[issue25674] test_ssl (test_algorithms) failures on bolen-ubuntu slaves: sha256.tbs-internet.com unknown host

2017-09-04 Thread Christian Heimes
Changes by Christian Heimes : -- pull_requests: +3332 ___ Python tracker ___ ___

[issue25674] test_ssl (test_algorithms) failures on bolen-ubuntu slaves: sha256.tbs-internet.com unknown host

2017-09-04 Thread Christian Heimes
Christian Heimes added the comment: New changeset 002d64039b60c1a9289f981fe73a5cf91d082136 by Christian Heimes in branch 'master': bpo-25674: remove sha256.tbs-internet.com ssl test (#3297) https://github.com/python/cpython/commit/002d64039b60c1a9289f981fe73a5cf91d082136 --

[issue31340] Use VS 2017 compiler for build

2017-09-04 Thread Steve Dower
New submission from Steve Dower: The newer MSVC (v141) is available and reliable, and theoretically binary compatible with v140. This means we can update both Python 3.6 and 3.7 to build with it. Testing for this should include: * pythoncore with v141 and remainder with v140 * Python with

[issue31338] Use abort() for code we never expect to hit

2017-09-04 Thread Stefan Krah
Stefan Krah added the comment: Regarding lint warnings, I may have confused abort() with exit(). Lintian has the shlib-calls-exit tag, somehow I thought there was a similar one for abort(), but I can't find it now. -- ___ Python tracker

[issue25674] test_ssl (test_algorithms) failures on bolen-ubuntu slaves: sha256.tbs-internet.com unknown host

2017-09-04 Thread Christian Heimes
Changes by Christian Heimes : -- pull_requests: +3331 ___ Python tracker ___ ___

[issue31339] [2.7] time.asctime() buffer overflow for year > 9999 using mucl (C library)

2017-09-04 Thread STINNER Victor
STINNER Victor added the comment: Antoine: "What if this produces a different result and breaks some code on some platforms?" No idea. It would call that a regression. I wrote another much simpler change: https://github.com/python/cpython/pull/3296 raises a ValueError for year larger than

[issue31339] [2.7] time.asctime() buffer overflow for year > 9999 using mucl (C library)

2017-09-04 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +3330 ___ Python tracker ___ ___

[issue25674] test_ssl (test_algorithms) failures on bolen-ubuntu slaves: sha256.tbs-internet.com unknown host

2017-09-04 Thread Christian Heimes
Christian Heimes added the comment: The sha256.tbs-internet.com has been down for a while and the DNS record is no longer available. Alex and I agreed that the test no longer makes sense, too. RSA certs with SHA-256 signatures are de-facto standard and supported by OpenSSL for a long time. We

[issue30423] [asyncio] orphan future close loop and cause "RuntimeError: Event loop stopped before Future completed."

2017-09-04 Thread Jimmy Lai
Changes by Jimmy Lai : -- pull_requests: +3329 ___ Python tracker ___ ___ Python-bugs-list

[issue1198569] string.Template not flexible enough to subclass (regexes)

2017-09-04 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Never mind; I crafted a decent test for the PR. -- ___ Python tracker ___

[issue31172] Py_Main() is totally broken on Visual Studio 2017

2017-09-04 Thread Steve Dower
Changes by Steve Dower : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___

[issue29988] (async) with blocks and try/finally are not as KeyboardInterrupt-safe as one might like

2017-09-04 Thread Gregory P. Smith
Gregory P. Smith added the comment: Yury's in the room here and pointed out how Nick and I are wrong. :) [yay sprints!] async def __aexit__(self, *e): spamity_spam return Awaitable If we resolve the GET_AWAITABLE at BEFORE_ASYNC_WITH time, the spamity_spam within __aexit__ is executed

[issue31339] [2.7] time.asctime() buffer overflow for year > 9999 using mucl (C library)

2017-09-04 Thread Antoine Pitrou
Antoine Pitrou added the comment: What if this produces a different result and breaks some code on some platforms? -- nosy: +pitrou, serhiy.storchaka ___ Python tracker

[issue31339] [2.7] time.asctime() buffer overflow for year > 9999 using mucl (C library)

2017-09-04 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +3328 ___ Python tracker ___ ___

[issue31339] [2.7] time.asctime() buffer overflow for year > 9999 using mucl (C library)

2017-09-04 Thread STINNER Victor
New submission from STINNER Victor: Attached PR backports (and adapts) the _asctime() function from the master branch to Python 2.7, so time.asctime() and time.ctime() don't call asctime() and ctime() functions of the external C library, but use portable and safe C code. --

[issue31337] Small opportunity for NULL dereference in compile.c

2017-09-04 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: See bpo-31338 for adopting the abort() idiom. -- ___ Python tracker ___

[issue31338] Use abort() for code we never expect to hit

2017-09-04 Thread Barry A. Warsaw
New submission from Barry A. Warsaw: Over in bpo-31337 the observation was made that we often use the following pattern in situations we never expect to hit: assert(0); return NULL; but this isn't strictly optimal. First, the asserts can be compiled away. Second, it's possible that our

[issue15427] Describe use of args parameter of argparse.ArgumentParser.parse_args

2017-09-04 Thread R. David Murray
Changes by R. David Murray : -- versions: +Python 3.6, Python 3.7 -Python 3.2, Python 3.3, Python 3.4 ___ Python tracker ___

[issue15427] Describe use of args parameter of argparse.ArgumentParser.parse_args

2017-09-04 Thread R. David Murray
R. David Murray added the comment: I've turned this into a PR. The example was already changed in a previous checkin. I reworded the optparse porting addition to match the existing style of the list. -- nosy: +r.david.murray ___ Python tracker

[issue15427] Describe use of args parameter of argparse.ArgumentParser.parse_args

2017-09-04 Thread R. David Murray
Changes by R. David Murray : -- pull_requests: +3327 ___ Python tracker ___ ___

[issue31331] IDLE: Move prompts with input.

2017-09-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: In my example the screen before the output had >>> go() >>> a = 12,| where '|' is the blinking input cursor. The '\n' terminated print output is inserted *after* '>>> ' but before the imcomplete statement. When the statement I want it *before*

[issue31333] Implement ABCMeta in C

2017-09-04 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: Eric, > the only ABCs in importlib are in importlib.abc (and used by importlib.util). > This does not impact interpreter startup. Hm, indeed, but I see that module 'abc' is in 'sys.modules', probably it is then only used by

[issue31336] Speed up _PyType_Lookup() for class creation

2017-09-04 Thread Stefan Behnel
Stefan Behnel added the comment: > I would prefer to use the _Py_IDENTIFIER API rather than using > _PyDict_GetItem_KnownHash(). Do you mean for the table of slot descriptions? I'm not sure that the effect would be comparable. > Maybe there are other opportunities for optimization? I would

[issue31328] _sha3 is missing from Setup.dist

2017-09-04 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___

[issue12633] sys.modules doc entry should reflect restrictions

2017-09-04 Thread Eric Snow
Eric Snow added the comment: We're dropping PyInterpreterState.modules (#28411). -- resolution: -> wont fix stage: -> resolved status: open -> closed superseder: -> Eliminate PyInterpreterState.modules. ___ Python tracker

  1   2   >