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

2017-09-04 Thread Christian Heimes
Changes by Christian Heimes : -- pull_requests: +3344 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[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 <8

[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

[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. Also,

[issue30502] Fix buffer handling of OBJ_obj2txt

2017-09-04 Thread Christian Heimes
Changes by Christian Heimes : -- pull_requests: +3346 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[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 (asynchr

[issue30502] Fix buffer handling of OBJ_obj2txt

2017-09-04 Thread Christian Heimes
Changes by Christian Heimes : -- pull_requests: +3347 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[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

[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. b

[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 -- __

[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 a

[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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue31346] Prefer PROTOCOL_TLS_CLIENT/SERVER

2017-09-04 Thread Christian Heimes
Changes by Christian Heimes : -- pull_requests: +3349 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[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 undef

[issue31347] possible undefined behavior in _PyObject_FastCall_Prepend

2017-09-04 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- pull_requests: +3351 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[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: -> fixe

[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

[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 ___ ___ Pyth

[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 -- __

[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 ___ ___ Pyth

[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 -- _

[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 ___

[issue31333] Implement ABCMeta in C

2017-09-04 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- nosy: +gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[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. If

[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. -

[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&fileviewer=file-view-default#rordereddict.py-1437:1551 -- _

[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

[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

[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 _s

[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) https://github.com/python/cpython/commit/e38d12ed34870c140016bef1e0ff10c8c3d3f21

[issue26692] cgroups support in multiprocessing

2017-09-04 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[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 L

[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) https://github.com/python/cpython/commit/db564238db440d4a2d8eb9

[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) https://github.com/python/cpython/commit/a3070d530c70477273cacbc61660

[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 ___ ___ Python-b

[issue14976] queue.Queue() is not reentrant, so signals and GC can cause deadlocks

2017-09-04 Thread Raymond Hettinger
Raymond Hettinger added the comment: > I can't think of a reason why deque would need to release the GIL. Yes, in deque.append(item) and deque.popleft() are atomic. Likewise list.append() and list.pop() are atomic. The heappush() and heappop() operations aren't as fortunate since they call _

[issue31336] Speed up _PyType_Lookup() for class creation

2017-09-04 Thread INADA Naoki
INADA Naoki added the comment: There is special internal API in dictobject.c _PyDict_LoadGlobal(PyDictObject *globals, PyDictObject *builtins, PyObject *key) Maybe, we can have special API like that _PyDict_LookupMro(PyObject *mro, PyObject *key); BTW, method cache in _PyType_Lookup is not good

[issue23530] os and multiprocessing.cpu_count do not respect cpuset/affinity

2017-09-04 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

<    1   2