[issue32940] IDLE: pyparse - simplify StringTranslatePseudoMapping

2018-02-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: To me, it is plausible but not slam-dunk obvious that preloading ascii to 'x' mappings will make ascii lookup faster. On #21765, where the pyparse special translation was a side-issue, Tal Einat claimed that the unpublished regex he tried

[issue29237] Create enum for pstats sorting options

2018-02-25 Thread Ethan Furman
Ethan Furman added the comment: Thanks for catching that! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue32929] Change dataclasses hashing to use unsafe_hash boolean (default to False)

2018-02-25 Thread Eric V. Smith
Eric V. Smith added the comment: I'm going to close this. Steven: if you gain support for a parameter name change, please open another issue. -- priority: release blocker -> normal resolution: -> fixed stage: patch review -> resolved status: open -> closed

[issue32880] IDLE: Fix and update and cleanup pyparse

2018-02-25 Thread Cheryl Sabella
Cheryl Sabella added the comment: Looking at the creation of the instances of pyparse.PyParse() and hyperparser.HyperParser(), I was a little surprised that they (the instances) are local variables to the methods and aren't instance variables. Since they are called fairly

[issue31454] Include "import as" in tutorial

2018-02-25 Thread miss-islington
Change by miss-islington : -- pull_requests: +5667 ___ Python tracker ___

[issue25059] Mistake in input-output tutorial regarding print() seperator

2018-02-25 Thread miss-islington
miss-islington added the comment: New changeset ddf2485103c1e56ba4f290641247dfa07fcbe7f3 by Miss Islington (bot) in branch '3.7': bpo-25059: Clarify the print separator usage in tutorial (GH-5879)

[issue31454] Include "import as" in tutorial

2018-02-25 Thread miss-islington
Change by miss-islington : -- pull_requests: +5666 ___ Python tracker ___

[issue31454] Include "import as" in tutorial

2018-02-25 Thread miss-islington
miss-islington added the comment: New changeset 5a07608d0855e4104e4070328155b52010dec4e7 by Miss Islington (bot) in branch '3.6': bpo-31454: Include information about "import X as Y" in Modules tutorial (GH-4041)

[issue18369] X509 cert class for ssl module

2018-02-25 Thread Christian Heimes
Christian Heimes added the comment: I won't be able to land this in time for b2. It's most done but not production ready. I have only a limited amount of time and will use it to fix TLS 1.3 bits and pieces. Rescheduling for 3.8 -- priority: deferred blocker ->

[issue26471] load_verify_locations(cadata) should load AUX ASN.1 to supported trusted certs

2018-02-25 Thread Christian Heimes
Change by Christian Heimes : -- priority: high -> normal versions: +Python 3.8 -Python 2.7, Python 3.5, Python 3.6, Python 3.7 ___ Python tracker

[issue25115] SSL_set_verify_depth not exposed by the ssl module

2018-02-25 Thread Christian Heimes
Christian Heimes added the comment: Both Alex and I agree that verify depth is not the right solution to solve your problem. I'd rather not add more APIs unless they are useful for general audience. OpenSSL has a good default for verify depth. -- resolution: ->

[issue17123] Add OCSP support to ssl module

2018-02-25 Thread Christian Heimes
Change by Christian Heimes : -- versions: +Python 3.8 -Python 3.7 ___ Python tracker ___

[issue32378] test_npn_protocols broken with LibreSSL 2.6.1+

2018-02-25 Thread Christian Heimes
Christian Heimes added the comment: NPN issue has been fixed in BPO #30622. Thanks for your help! -- resolution: -> duplicate stage: patch review -> resolved status: open -> closed superseder: -> Fix NPN guard for OpenSSL 1.1

[issue5840] "Thread State and the Global Interpreter Lock" section of the docs doesn't cover TLS APIs

2018-02-25 Thread Cheryl Sabella
Cheryl Sabella added the comment: I believe this issue is superseded by PEP539 and issue25658? -- nosy: +csabella ___ Python tracker

[issue32929] Change dataclasses hashing to use unsafe_hash boolean (default to False)

2018-02-25 Thread Guido van Rossum
Guido van Rossum added the comment: @steven.daprano the name was +1'ed by many people in the python-dev discussion as sending the right message. So I'm reluctant to change it. If you can cause a landslide of support for `_hash` there we can change it in b3. --

[issue32929] Change dataclasses hashing to use unsafe_hash boolean (default to False)

2018-02-25 Thread Eric V. Smith
Eric V. Smith added the comment: New changeset dbf9cff48a4ad0fd58e1c623ce1f36c3dd3d5f38 by Eric V. Smith in branch 'master': bpo-32929: Dataclasses: Change the tri-state hash parameter to the boolean unsafe_hash. (#5891)

[issue32929] Change dataclasses hashing to use unsafe_hash boolean (default to False)

2018-02-25 Thread miss-islington
Change by miss-islington : -- pull_requests: +5672 ___ Python tracker ___

[issue29988] with statements are not ensuring that __exit__ is called if __enter__ succeeds

2018-02-25 Thread Nick Coghlan
Nick Coghlan added the comment: With issue 17611 merged (which moves stack unwinding to the compiler), I expect the exact details of this problem to have changed, but the general problem still exists: Ctrl-C may lead to __exit__ (or __aexit__) not being called even after

[issue25059] Mistake in input-output tutorial regarding print() seperator

2018-02-25 Thread miss-islington
Change by miss-islington : -- pull_requests: +5664 ___ Python tracker ___

[issue25059] Mistake in input-output tutorial regarding print() seperator

2018-02-25 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset 84c4b0cc67ceb4b70842b78c718b6e8214874d6a by Mariatta (Cheryl Sabella) in branch 'master': bpo-25059: Clarify the print separator usage in tutorial (GH-5879)

[issue13790] In str.format an incorrect error message for list, tuple, dict, set

2018-02-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: In msg151730, R. David Murry said "Terry's [first] patch with the ("{}") removed should be committed, though." In msg151738, Eric V. Smith said "I agree with your comment about Terry's patch." My second patch removed "{}" but also made more

[issue31454] Include "import as" in tutorial

2018-02-25 Thread miss-islington
Change by miss-islington : -- pull_requests: +5668 ___ Python tracker ___

[issue32872] backport of #32305 causes regressions in various packages

2018-02-25 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I'd personally prefer to keep the fix (I ran into some problems w/3.6), but I'll defer to the RM. I'll revert the change for 3.6, but I want to test it with importlib_resources first, since I'll probably have to spin a new release of that

[issue29413] ssl.SSLSocket.unwrap() is not flexible enough

2018-02-25 Thread Christian Heimes
Change by Christian Heimes : -- assignee: -> christian.heimes versions: +Python 3.8 -Python 3.7 ___ Python tracker ___

[issue32394] socket lib beahavior change in 3.6.4

2018-02-25 Thread Ned Deily
Ned Deily added the comment: What's the status of this issue? 3.7.0b2 is tagging in 48 hours or so and 3.6.5rc1 is in less than 2 weeks. -- ___ Python tracker

[issue25059] Mistake in input-output tutorial regarding print() seperator

2018-02-25 Thread miss-islington
Change by miss-islington : -- pull_requests: +5665 ___ Python tracker ___

[issue25059] Mistake in input-output tutorial regarding print() seperator

2018-02-25 Thread miss-islington
miss-islington added the comment: New changeset b9678d3aa156996947655ed66b554f6307b29546 by Miss Islington (bot) in branch '3.6': bpo-25059: Clarify the print separator usage in tutorial (GH-5879)

[issue31454] Include "import as" in tutorial

2018-02-25 Thread miss-islington
miss-islington added the comment: New changeset 76349471adfa4366a92438c88fd05a0e1e94c59b by Miss Islington (bot) in branch '2.7': bpo-31454: Include information about "import X as Y" in Modules tutorial (GH-4041)

[issue21541] Provide configure option --with-ssl for compilation with custom openssl

2018-02-25 Thread Christian Heimes
Christian Heimes added the comment: Python 3.7+ uses https://www.gnu.org/software/autoconf-archive/ax_check_openssl.html to detect OpenSSL. It provides --with-openssl=DIR or can utilize pkg-config. I'm closing this feature issue as duplicate of #32598. --

[issue25059] Mistake in input-output tutorial regarding print() seperator

2018-02-25 Thread Cheryl Sabella
Change by Cheryl Sabella : -- pull_requests: +5669 ___ Python tracker ___ ___

[issue12345] Add math.tau

2018-02-25 Thread Mark Dickinson
Change by Mark Dickinson : -- pull_requests: -5653 ___ Python tracker ___ ___

[issue18293] ssl.wrap_socket (cert_reqs=...), getpeercert, and unvalidated certificates

2018-02-25 Thread Christian Heimes
Christian Heimes added the comment: BPO #31372 and #18369 provide the necessary bits and pieces for your request. I didn't have enough time to finish both in time for 3.7 feature freeze. Hostname verification improvements and TLS 1.3 were more important. I'm closing this

[issue27876] Add SSLContext.set_version_range(minver, maxver=None)

2018-02-25 Thread Christian Heimes
Christian Heimes added the comment: My issue #32609 provides a better implementation. -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Add setter and getter for min/max protocol ersion ___

[issue32911] Doc strings no longer stored in body of AST

2018-02-25 Thread Ned Deily
Ned Deily added the comment: Is this going to get resolved in time for 3.7.0b2? If we need to change this behavior, I really do not want to delay this for b3 which is when the 3.7.0 ABI freezes; otherwise such a major behavior change would likely need to wait until 3.8.

[issue32500] PySequence_Length() raises TypeError on dict type

2018-02-25 Thread miss-islington
miss-islington added the comment: New changeset 139e64694f546982a8cc801dda30670abadb8d06 by Miss Islington (bot) in branch '3.7': bpo-32500: Correct the documentation for PySequence_Size() and PySequence_Length() (GH-5767)

[issue32945] sorted(generator) is slower than sorted(list-comprehension)

2018-02-25 Thread Raymond Hettinger
Raymond Hettinger added the comment: FYI, here is the disassembly of the inner code objects. It shows where the difference in speed arises: >>> from dis import dis >>> def f(): lc = [i for i in [1, 2]] ge = (i for i in [1, 2]) return lc,

[issue32500] PySequence_Length() raises TypeError on dict type

2018-02-25 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: Thanks! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue31355] Remove Travis CI macOS job: rely on buildbots

2018-02-25 Thread Brett Cannon
Brett Cannon added the comment: Awesome, thanks for taking the time to verify all of that! And I agree with your logic to not bother backporting. -- ___ Python tracker

[issue32932] better error message when __all__ contains non-str objects

2018-02-25 Thread Brett Cannon
Brett Cannon added the comment: This is only for `import *`, though, right? So I would argue you're already tossing import perf out the window if you're willing to pollute your namespace like that. -- ___ Python tracker

[issue31454] Include "import as" in tutorial

2018-02-25 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: > PR 4041 looks good to me. Mariatta, do you have time to look at Mario's patch? Sorry I just saw this now, months later. Looks good to me. I can merge and backport once the CI passed. Thanks! --

[issue32929] Change dataclasses hashing to use unsafe_hash boolean (default to False)

2018-02-25 Thread Eric V. Smith
Eric V. Smith added the comment: I've been focused on getting the code fix in for the next beta release on 2018-02-26, and leaving the possible parameter name change for later. I don't feel strongly about the parameter name. Right now it's unsafe_hash, per Guido's

[issue32872] backport of #32305 causes regressions in various packages

2018-02-25 Thread Ned Deily
Ned Deily added the comment: Thanks, Barry! I don't see that either action is ideal but I am concerned about breaking third-party packages and 2 (already known) breakages is worrisome. And thanks, @doko, for bringing the matter up. --

[issue31454] Include "import as" in tutorial

2018-02-25 Thread miss-islington
miss-islington added the comment: New changeset e48e6499bbad56f7cc665efa25ae4847f51dbc38 by Miss Islington (bot) in branch '3.7': bpo-31454: Include information about "import X as Y" in Modules tutorial (GH-4041)

[issue32500] PySequence_Length() raises TypeError on dict type

2018-02-25 Thread miss-islington
Change by miss-islington : -- pull_requests: +5670 ___ Python tracker ___

[issue32500] PySequence_Length() raises TypeError on dict type

2018-02-25 Thread miss-islington
miss-islington added the comment: New changeset ecaa372f74eeb6c032791c520af6b23e527d335f by Miss Islington (bot) in branch '2.7': bpo-32500: Correct the documentation for PySequence_Size() and PySequence_Length() (GH-5767)

[issue32929] Change dataclasses hashing to use unsafe_hash boolean (default to False)

2018-02-25 Thread Eric V. Smith
Change by Eric V. Smith : -- keywords: +patch pull_requests: +5663 stage: -> patch review ___ Python tracker ___

[issue31454] Include "import as" in tutorial

2018-02-25 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset fbee88244e8921afdb29fde51a9a010a8ae18277 by Mariatta (Mario Corchero) in branch 'master': bpo-31454: Include information about "import X as Y" in Modules tutorial (GH-4041)

[issue32872] backport of #32305 causes regressions in various packages

2018-02-25 Thread Ned Deily
Ned Deily added the comment: OK, I agree with Brett and Nick. Barry, are you OK with reverting this change for 3.6? If so, can you do the honors? -- stage: -> needs patch ___ Python tracker

[issue32604] Expose the subinterpreters C-API in Python for testing use.

2018-02-25 Thread Ned Deily
Ned Deily added the comment: What's the status of this issue? 3.7.0b2 is tagging in 48 hours or so. -- versions: +Python 3.8 ___ Python tracker

[issue31454] Include "import as" in tutorial

2018-02-25 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: Thanks everyone. I've merged Marios's PR. The backport PRs have started and will automerge. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python

[issue32952] Add __qualname__ for attributes of Mock instances

2018-02-25 Thread Sergey Kostyuk
New submission from Sergey Kostyuk : Good day. I have a question (or proposal, if you like) For now Mocks from unittest.mock module allows to mimic an interface of a some class or object instance. They pass isinstance checks, they allows to wrap callables with respect to

[issue32819] match_hostname() error reporting bug

2018-02-25 Thread Christian Heimes
Change by Christian Heimes : -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker ___

[issue25059] Mistake in input-output tutorial regarding print() seperator

2018-02-25 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset b7c1a94f94305d82fc77f833fd68cc8616991bd4 by Mariatta (Cheryl Sabella) in branch '2.7': [2.7] bpo-25059: Clarify the print separator usage in tutorial (GH-5879)

[issue25059] Mistake in input-output tutorial regarding print() seperator

2018-02-25 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: Thanks! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 2.7, Python 3.7, Python 3.8 -Python 3.5 ___ Python tracker

[issue31961] subprocess._execute_child doesn't accept a single PathLike argument for args

2018-02-25 Thread Ned Deily
Ned Deily added the comment: What's the status of this issue? We need to make a decision soon about what to do for 3.7.0. -- ___ Python tracker

[issue13474] Mention of "-m" Flag Missing From Doc on Execution Model

2018-02-25 Thread Cheryl Sabella
Change by Cheryl Sabella : -- keywords: +easy type: -> enhancement versions: +Python 3.7, Python 3.8 -Python 3.2, Python 3.3 ___ Python tracker

[issue32500] PySequence_Length() raises TypeError on dict type

2018-02-25 Thread miss-islington
Change by miss-islington : -- pull_requests: +5671 ___ Python tracker ___

[issue29237] Create enum for pstats sorting options

2018-02-25 Thread Cheryl Sabella
Cheryl Sabella added the comment: Can this one be closed since it was an enhancement and doesn't need to be backported? -- nosy: +csabella ___ Python tracker

[issue32949] Simplify "with"-related opcodes

2018-02-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This will not solve issue29988 but will open a way for solving it at least for synchronous "with" (swap POP_BLOCK and the following LOAD_CONST and disable interrupting after POP_BLOCK). -- nosy: +ncoghlan

[issue32880] IDLE: Fix and update and cleanup pyparse

2018-02-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: If you [view] a message, there is an unlink button at the bottom for the author (and believe) and tracker gardeners. I did this for the duplicate and incomplete messages. In the future, lets put timing data for an idea on a separate issue

[issue32876] HTMLParser raises exception on some inputs

2018-02-25 Thread Ezio Melotti
Change by Ezio Melotti : -- assignee: -> ezio.melotti ___ Python tracker ___ ___

[issue32880] IDLE: Fix and update and cleanup pyparse

2018-02-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: As I mentioned before, Parser.set_code strongly suggests that Parser instances were intended to be reused. But you discovered the bug that prevented this, at least for one code result. With that fixed, it should be possible to have one

[issue32880] IDLE: Fix and update and cleanup pyparse

2018-02-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: from idlelib.pyparse import Parser import timeit code='def f():\n' print(timeit.timeit("statement", # for example "p=Parser(4,4)", globals = globals())) statement microseconds Parser.1 # test timeit code

[issue32953] Dataclasses: frozen should not be inherited

2018-02-25 Thread Eric V. Smith
New submission from Eric V. Smith : Reported by Raymond Hettinger: When working on the docs for dataclasses, something unexpected came up. If a dataclass is specified to be frozen, that characteristic is inherited by subclasses which prevents them from assigning

[issue17286] Make subprocess handling text output with universal_newlines more obious

2018-02-25 Thread bbayles
bbayles added the comment: This is fixed in 3.7 with the `text` parameter. See GitHub PR 4049: https://github.com/python/cpython/pull/4049 -- nosy: +bbayles ___ Python tracker

[issue19894] zipfile ignores deflate level settings in zipinfo object

2018-02-25 Thread bbayles
bbayles added the comment: This was fixed in issue 21417, in Github PR 5385: https://github.com/python/cpython/pull/5385 -- nosy: +bbayles ___ Python tracker

[issue32953] Dataclasses: frozen should not be inherited

2018-02-25 Thread Eric V. Smith
Eric V. Smith added the comment: A related issue is that dataclasses derived from frozen dataclasses are automatically "promoted" to being frozen. >>> @dataclass(frozen=True) ... class A: ... i: int ... >>> @dataclass ... class B(A): ... j: int ... >>> b = B(1, 2)

[issue31870] add timeout parameter for get_server_certificate in ssl.py

2018-02-25 Thread Christian Heimes
Christian Heimes added the comment: It's too late to land a new feature in 3.7. -- stage: patch review -> needs patch versions: +Python 3.8 -Python 3.7 ___ Python tracker

[issue32647] Undefined references when compiling ctypes on binutils 2.29.1 with gcc -Wl, -z, undefs (Fedora 28)

2018-02-25 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +5650 ___ Python tracker ___ ___

[issue12345] Add math.tau

2018-02-25 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +5651 ___ Python tracker ___ ___

[issue32945] sorted(generator) is slower than sorted(list-comprehension)

2018-02-25 Thread Stefan Behnel
Stefan Behnel added the comment: > as `range` may have been shadowed at that point No, range() has in fact already been executed at that point. And it returned an iterable that knows its length (search for "LengthHint" in the CPython sources). --

[issue17288] cannot jump from a return after setting f_lineno

2018-02-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Example in msg183254 doesn't crash Python 3.8. -- ___ Python tracker ___

[issue32946] Speed up import from non-packages

2018-02-25 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +5646 stage: -> patch review ___ Python tracker ___

[issue12345] Add math.tau

2018-02-25 Thread Mark Dickinson
Change by Mark Dickinson : -- pull_requests: -5651 ___ Python tracker ___ ___

[issue32940] IDLE: pyparse - simplify StringTranslatePseudoMapping

2018-02-25 Thread Cheryl Sabella
Cheryl Sabella added the comment: A similar regular expression version was mentioned on issue21765 and I had run some tests on it yesterday to verify. On my system, it ran at a factor of 10x slower, so if the translate finished in 0.003, the regex took 0.03. This was

[issue32947] Support OpenSSL 1.1.1

2018-02-25 Thread Christian Heimes
New submission from Christian Heimes : I'm using this ticket as an epos to track commits and required changes for OpenSSL 1.1.1 and TLS 1.3. Fixes need to be backported to 2.7 and 3.6 to 3.8. We might have to consider backports to 3.4 and 3.5, too. If all goes to plan,

[issue30622] Fix NPN guard for OpenSSL 1.1

2018-02-25 Thread Christian Heimes
Christian Heimes added the comment: New changeset 48707a1baf4fd553fbc4516d9080cb3968af21aa by Christian Heimes in branch '3.6': [3.6] bpo-30622: Improve NPN support detection (GH-5859) (#5861) https://github.com/python/cpython/commit/48707a1baf4fd553fbc4516d9080cb3968af21aa

[issue32185] SSLContext.wrap_socket sends SNI Extension when server_hostname is IP

2018-02-25 Thread Christian Heimes
Christian Heimes added the comment: The issue has been fixed in 2.7, 3.6-3.8 for OpenSSL >= 1.0.2 or platforms with inet_pton. I didn't bother to fix platforms without inet_pton since OpenSSL 1.0.1 and earlier are no longer support any way. -- resolution: -> fixed

[issue30622] Fix NPN guard for OpenSSL 1.1

2018-02-25 Thread Christian Heimes
Christian Heimes added the comment: New changeset 3d87f4cf9c19da9fe8ae8f91f5bb86e642b74a50 by Christian Heimes in branch '2.7': [2.7] bpo-30622: Improve NPN support detection (GH-5859) (#5863) https://github.com/python/cpython/commit/3d87f4cf9c19da9fe8ae8f91f5bb86e642b74a50

[issue31809] ssl module unnecessarily pins the client curve when using ECDH

2018-02-25 Thread Christian Heimes
Christian Heimes added the comment: New changeset ff7528f089b60f8372c658f3bc3b14b059114da9 by Christian Heimes (Miss Islington (bot)) in branch '3.7': [3.7] bpo-31809: test secp ECDH curves (GH-4036) (#5872)

[issue30622] Fix NPN guard for OpenSSL 1.1

2018-02-25 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +5649 ___ Python tracker ___ ___

[issue32945] sorted(generator) is slower than sorted(list-comprehension)

2018-02-25 Thread Stefan Behnel
Stefan Behnel added the comment: The constant function call overhead doesn't make a big difference: $ /opt/python3.7-opt/bin/python3 -m timeit 'list(i for i in range(1000))' 5000 loops, best of 5: 55 usec per loop $ /opt/python3.7-opt/bin/python3 -m timeit '[i for i in

[issue32945] sorted(generator) is slower than sorted(list-comprehension)

2018-02-25 Thread Antony Lee
New submission from Antony Lee : Consider e.g. In [2]: %timeit sorted([i for i in range(100)]) 4.74 µs ± 24.3 ns per loop (mean ± std. dev. of 7 runs, 10 loops each) In [3]: %timeit sorted(i for i in range(100)) 7.05 µs ± 25.7 ns per loop (mean ± std.

[issue25404] ssl.SSLcontext.load_dh_params() does not handle unicode filenames properly

2018-02-25 Thread Christian Heimes
Change by Christian Heimes : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue31809] ssl module unnecessarily pins the client curve when using ECDH

2018-02-25 Thread Christian Heimes
Christian Heimes added the comment: New changeset b7b9225831a729bff84eb7c43bad138416b994fe by Christian Heimes in branch 'master': bpo-31809: test secp ECDH curves (#4036) https://github.com/python/cpython/commit/b7b9225831a729bff84eb7c43bad138416b994fe --

[issue31809] ssl module unnecessarily pins the client curve when using ECDH

2018-02-25 Thread miss-islington
Change by miss-islington : -- pull_requests: +5645 ___ Python tracker ___

[issue32945] sorted(generator) is slower than sorted(list-comprehension)

2018-02-25 Thread Antony Lee
Antony Lee added the comment: > But with a list or other sequence with a known length, the interpreter can > allocate the right number of items up front, and avoid growing or shrinking > the new list. I believe that this is the time saving you are seeing. But certainly

[issue25059] Mistake in input-output tutorial regarding print() seperator

2018-02-25 Thread Cheryl Sabella
Cheryl Sabella added the comment: Created a PR based on the discussion and not the original patch. -- nosy: +csabella ___ Python tracker

[issue25059] Mistake in input-output tutorial regarding print() seperator

2018-02-25 Thread Cheryl Sabella
Change by Cheryl Sabella : -- keywords: +patch pull_requests: +5652 stage: -> patch review ___ Python tracker ___

[issue32647] Undefined references when compiling ctypes on binutils 2.29.1 with gcc -Wl, -z, undefs (Fedora 28)

2018-02-25 Thread Christian Heimes
Christian Heimes added the comment: New changeset 4bb9b9aea04b1a96632da1b30a58fb31cbe6ec92 by Christian Heimes in branch '2.7': [2.7] bpo-32647: Link ctypes extension with libdl. (GH-5550) (#5877)

[issue12345] Add math.tau

2018-02-25 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +5653 ___ Python tracker ___ ___

[issue30622] Fix NPN guard for OpenSSL 1.1

2018-02-25 Thread miss-islington
Change by miss-islington : -- pull_requests: +5654 ___ Python tracker ___

[issue30622] Fix NPN guard for OpenSSL 1.1

2018-02-25 Thread Christian Heimes
Christian Heimes added the comment: New changeset 29eab55309b9f78b79074d26db16a44e7841c639 by Christian Heimes in branch 'master': bpo-30622: Fix NPN for OpenSSL 1.1.1-pre1 (#5876) https://github.com/python/cpython/commit/29eab55309b9f78b79074d26db16a44e7841c639 --

[issue30622] Fix NPN guard for OpenSSL 1.1

2018-02-25 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +5657 ___ Python tracker ___ ___

[issue32185] SSLContext.wrap_socket sends SNI Extension when server_hostname is IP

2018-02-25 Thread miss-islington
Change by miss-islington : -- pull_requests: +5644 ___ Python tracker ___

[issue32945] sorted(generator) is slower than sorted(list-comprehension)

2018-02-25 Thread Stefan Behnel
Stefan Behnel added the comment: sorted() *does* convert its input to a list first, and only then sorts it. It calls PySequence_List() for that, which in turn uses list_extend(), which then applies the obvious optimisation of copying input lists (and tuples) directly.

[issue32185] SSLContext.wrap_socket sends SNI Extension when server_hostname is IP

2018-02-25 Thread Christian Heimes
Christian Heimes added the comment: New changeset e9370a47389903bb72badc95032ec84a0ebbf8cc by Christian Heimes in branch '3.6': bpo-32185: Don't send IP in SNI TLS extension (#5865) https://github.com/python/cpython/commit/e9370a47389903bb72badc95032ec84a0ebbf8cc

[issue32946] Speed up import from non-packages

2018-02-25 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : The proposed PR optimizes "from ... import ..." from non-package modules. $ ./python -m perf timeit 'from locale import getlocale' Unpatched: Mean +- std dev: 811 ns +- 27 ns Patched:Mean +- std dev: 624 ns +- 17 ns

[issue25404] ssl.SSLcontext.load_dh_params() does not handle unicode filenames properly

2018-02-25 Thread Christian Heimes
Christian Heimes added the comment: New changeset 6e8f395001b026daea047cf225dcca5a973ae824 by Christian Heimes in branch '2.7': bpo-25404: SSLContext.load_dh_params() non-ASCII path (GH-3459) https://github.com/python/cpython/commit/6e8f395001b026daea047cf225dcca5a973ae824

[issue32932] better error message when __all__ contains non-str objects

2018-02-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: On other hand, adding checks in Python code will add a slowdown. See issue32946 which moves in contrary direction. -- ___ Python tracker

  1   2   >