[issue32349] Add detailed return value information for set.intersection function

2017-12-18 Thread 양유석
양유석 added the comment: Ok, I got a point of implementation-dependent things. Thank you for comments. -- ___ Python tracker ___ ___ P

[issue32362] multiprocessing.connection.Connection misdocumented as multiprocessing.Connection

2017-12-18 Thread Mark
New submission from Mark : https://docs.python.org/3/library/multiprocessing.html#multiprocessing.Connection purports to document the multiprocessing.Connection class. There's no such thing: Python 3.6.1 (v3.6.1:69c0db5050, Mar 21 2017, 01:21:04) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on

[issue32360] Save OrderedDict imports in various stdlibs.

2017-12-18 Thread INADA Naoki
New submission from INADA Naoki : csv and re has issues already. There are some remaining OrderdDict, including docstring. It looks like some of them can be removed easily without doc update. This is `ag --exclude-dir=test OrderedDict`, exluding csv, re, pprint and collections. typing: 2109:

[issue32361] global / nonlocal interference : is this a bug, a feature or a design hole ?

2017-12-18 Thread Camion
New submission from Camion : Hello, "PEP 3104 -- Access to Names in Outer Scopes" introduced the keywords "global" and "nonlocal". but didn't make clear (to me) if this behaviour is a bug, an intentional feature, or a design hole which might be considered good or bad. I have observed that w

[issue32359] Add getters for all SSLContext internal configuration

2017-12-18 Thread Christian Heimes
Christian Heimes added the comment: Let's see what's missing: * alpn_protocols -- OpenSSL doesn't have SSL_CTX_get_alpn_protos(), so we'd have to keep the list around ourselves. * npn_protocols -- deprecated, I'd rather add a getter * servername_callback -- simply expose the PyObject* from our

[issue32360] Save OrderedDict imports in various stdlibs.

2017-12-18 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- dependencies: +Dict order is now guaranteed, so add tests and doc for it ___ Python tracker ___ ___ P

[issue32338] Save OrderedDict import in re

2017-12-18 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- dependencies: +Dict order is now guaranteed, so add tests and doc for it ___ Python tracker ___ ___ P

[issue32336] Save OrderedDict import in argparse

2017-12-18 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- dependencies: +Dict order is now guaranteed, so add tests and doc for it ___ Python tracker ___ ___ P

[issue32360] Save OrderedDict imports in various stdlibs.

2017-12-18 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- components: +Library (Lib) dependencies: +Save OrderedDict import in argparse, Save OrderedDict import in re type: -> performance versions: +Python 3.7 ___ Python tracker

[issue32359] Add getters for all SSLContext internal configuration

2017-12-18 Thread Christian Heimes
Christian Heimes added the comment: I'm considering to add CAPI capsule to the _ssl module. It would allow third parties to get hold of the internal SSL* and SSL_CTX* pointers. -- ___ Python tracker

[issue32360] Save OrderedDict imports in various stdlibs.

2017-12-18 Thread INADA Naoki
Change by INADA Naoki : -- nosy: inada.naoki priority: normal severity: normal status: open title: Save OrderedDict imports in various stdlibs. ___ Python tracker ___ __

[issue32338] Save OrderedDict import in re

2017-12-18 Thread INADA Naoki
INADA Naoki added the comment: * del cache[next(iter(cache))] happens only when sre.compile() is called. * del cache[next(iter(cache))] is much faster than sre.compile(). OK, performance difference is negligible, surely. -- ___ Python tracker

[issue30121] Windows: subprocess debug assertion on failure to execute the process

2017-12-18 Thread STINNER Victor
STINNER Victor added the comment: Oops, I merged the pull requests, but I forgot to close the issue. -- ___ Python tracker ___ ___ P

[issue32359] Add getters for all SSLContext internal configuration

2017-12-18 Thread Nathaniel Smith
New submission from Nathaniel Smith : Suppose you're writing a library that allows users to make or accept SSL/TLS connections. You use the 'ssl' module, because that's convenient. You need to let your users configure your SSL/TLS connections, and there really isn't any generic abstract way to

[issue19764] subprocess: use PROC_THREAD_ATTRIBUTE_HANDLE_LIST with STARTUPINFOEX on Windows Vista

2017-12-18 Thread STINNER Victor
STINNER Victor added the comment: Thank you Sergev Finer for finishing the implementation of my PEP 446. Supporting to only inherit a set of Windows handles was a "small note" my PEP 446, mostly because I didn't feel able to implement the feature, but also because we still supported Windows v

[issue19764] subprocess: use PROC_THREAD_ATTRIBUTE_HANDLE_LIST with STARTUPINFOEX on Windows Vista

2017-12-18 Thread STINNER Victor
STINNER Victor added the comment: Copy of my comment on the PR. https://github.com/python/cpython/pull/1218#issuecomment-352372211 > Merged from master... Again... Hopefully this won't end up missing 3.7 > entirely... 😔 Oops sorry, I wanted this feature but I didn't follow closely the PR.

[issue32338] Save OrderedDict import in re

2017-12-18 Thread INADA Naoki
INADA Naoki added the comment: > We are talking about a dictionary of 512 items in the worst case. On such > very tiny collection, benchmarking matters more than O(...) complexity ;-) You're right. Rob Pike said: "Fancy algorithms are slow when n is small, and n is usually small." http://user

[issue19764] subprocess: use PROC_THREAD_ATTRIBUTE_HANDLE_LIST with STARTUPINFOEX on Windows Vista

2017-12-18 Thread STINNER Victor
STINNER Victor added the comment: New changeset b2a6083eb0384f38839d3f1ed32262a3852026fa by Victor Stinner (Segev Finer) in branch 'master': bpo-19764: Implemented support for subprocess.Popen(close_fds=True) on Windows (#1218) https://github.com/python/cpython/commit/b2a6083eb0384f38839d3f1e

[issue32338] Save OrderedDict import in re

2017-12-18 Thread STINNER Victor
STINNER Victor added the comment: > del d[next(iter(d))] is not O(1) on current dict implementation. We are talking about a dictionary of 512 items in the worst case. On such very tiny collection, benchmarking matters more than O(...) complexity ;-) -- nosy: +vstinner ___

[issue32338] Save OrderedDict import in re

2017-12-18 Thread INADA Naoki
INADA Naoki added the comment: Hmm, 0.3 μs for each lookup may be negligible compared to re.compile() speed? -- ___ Python tracker ___ _

[issue32338] Save OrderedDict import in re

2017-12-18 Thread INADA Naoki
INADA Naoki added the comment: > This is surprising. But OrderedDict also can be O(N) here. Current dict implementation doesn't skip empty entries. So next(iter(D)) takes time. On the other hand, OrderedDict uses doubly-linked list to find first entry. (I fixed it in compact ODict branch, but

[issue32338] Save OrderedDict import in re

2017-12-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is surprising. But OrderedDict also can be O(N) here. Do you have benchmarking results Inada? -- ___ Python tracker ___ __

[issue32354] Unclear intention of deprecating Py_UNICODE_TOLOWER / Py_UNICODE_TOUPPER

2017-12-18 Thread STINNER Victor
STINNER Victor added the comment: Py_UNICODE_TOLOWER / Py_UNICODE_TOUPPER *API* doesn't respect the latest Unicode standard. For example, it doesn't support this operation: >>> "ß".upper() 'SS' -- ___ Python tracker

[issue32349] Add detailed return value information for set.intersection function

2017-12-18 Thread Raymond Hettinger
Raymond Hettinger added the comment: The implementation detail is not documented because it is not guaranteed. The behavior has changed over time and other implementation are allowed to do something different. For example, collections.abc.Set.__and__ has different behavior. -- reso

<    1   2