[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

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

[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

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

[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

[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

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

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

[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

[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

[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

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

[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

[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

[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

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

[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

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

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

[issue32500] PySequence_Length() raises TypeError on dict type

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

[issue32500] PySequence_Length() raises TypeError on dict type

2018-02-25 Thread miss-islington
Change by miss-islington : -- pull_requests: +5670 ___ 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

[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

[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

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

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

[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

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

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

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

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

[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

[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

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

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

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

[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

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

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

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

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

[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

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

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

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

[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

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

[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

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

2018-02-25 Thread miss-islington
Change by miss-islington : -- pull_requests: +5665 ___ 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: +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)

[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

[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
Change by Eric V. Smith : -- keywords: +patch pull_requests: +5663 stage: -> patch review ___ 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

[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

[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

[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: if unsafe_hash: # If there's already a __hash__, raise TypeError, otherwise add __hash__. if has_explicit_hash: hash_action = 'exception' else: hash_action = 'add' else: #

[issue32925] AST optimizer: Change a list into tuple in iterations and containment tests

2018-02-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The direct inspiration of this optimization was your note that similar optimization was implemented in Python. -- ___ Python tracker

[issue32856] Optimize the `for y in [x]` idiom in comprehensions

2018-02-25 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- priority: normal -> low ___ 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: I don't know if I'm unique, but I find such a table with 4 Boolean keys hard to understand. I'd rather see it written up as a series of nested 'if' statements. -- ___ Python tracker

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

2018-02-25 Thread Raymond Hettinger
Raymond Hettinger added the comment: [Antony Lee] > so both cases are much more similar -- superficially, at least. Try disassembling the inner code object as well -- that is where the work gets done and the list comprehension can take advantage of the LIST_APPEND

[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: Here's the simplest way I can describe this, and it's also the table used inside the code. The column "has-explicit-hash?" is trying to answer the question "is there a __hash__ function defined in this class?". It is set to False if

[issue32951] Prohibit direct instantiation of SSLSocket and SSLObject

2018-02-25 Thread Christian Heimes
Change by Christian Heimes : -- keywords: +patch pull_requests: +5662 stage: needs patch -> patch review ___ Python tracker ___

[issue32951] Prohibit direct instantiation of SSLSocket and SSLObject

2018-02-25 Thread Christian Heimes
Christian Heimes added the comment: Antoine Pitrou replied: The ssl.SSLSocket constructor was never meant to be called by user code directly (and I don't think we document it as such). Anyone doing this is asking for trouble (including compatibility breakage as we change the

[issue32951] Prohibit direct instantiation of SSLSocket and SSLObject

2018-02-25 Thread Christian Heimes
New submission from Christian Heimes : The constructors of SSLObject and SSLSocket were never documented, tested, or meant to be used directly. Instead users were suppose to use ssl.wrap_socket or an SSLContext object. The ssl.wrap_socket() function and direct instantiation

[issue12345] Add math.tau

2018-02-25 Thread Guido van Rossum
Change by Guido van Rossum : -- nosy: -gvanrossum ___ Python tracker ___ ___

[issue32622] Implement loop.sendfile

2018-02-25 Thread miss-islington
miss-islington added the comment: New changeset 632c1cb57176d268d65a9fd7b00582f32e0884ee by Miss Islington (bot) in branch '3.7': bpo-32622: Native sendfile on windows (GH-5565)

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

2018-02-25 Thread Cheryl Sabella
Cheryl Sabella added the comment: >From the examples in msg220401, issue28385 changed it to print the object type >in the message. >>> format([], 'd') Traceback (most recent call last): File "", line 1, in TypeError: unsupported format string passed to list.__format__

[issue32622] Implement loop.sendfile

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

[issue32622] Implement loop.sendfile

2018-02-25 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset a19fb3c6aaa7632410d1d9dcb395d7101d124da4 by Andrew Svetlov in branch 'master': bpo-32622: Native sendfile on windows (#5565) https://github.com/python/cpython/commit/a19fb3c6aaa7632410d1d9dcb395d7101d124da4 --

[issue32759] multiprocessing.Array do not release shared memory

2018-02-25 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue28124] Rework SSL module documentation

2018-02-25 Thread Christian Heimes
Change by Christian Heimes : -- keywords: +patch pull_requests: +5660 stage: needs patch -> patch review ___ Python tracker ___

[issue13897] Move fields relevant to sys.exc_info out of frame into generator/threadstate

2018-02-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Aren't they were moved in issue25612? Is there something that should be done in this issue? -- nosy: +serhiy.storchaka ___ Python tracker

[issue13897] Move fields relevant to sys.exc_info out of frame into generator/threadstate

2018-02-25 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- status: open -> pending ___ Python tracker ___

[issue32017] profile.Profile() has no method enable()

2018-02-25 Thread bbayles
bbayles added the comment: I've made a pull request that clarifies things in the docs. As csabella notes, there are some more differences that could be pointed out. The 'subcalls' and 'builtins' arguments could be explained as well. Nonetheless, I think the PR does fix

[issue32017] profile.Profile() has no method enable()

2018-02-25 Thread bbayles
Change by bbayles : -- keywords: +patch pull_requests: +5659 stage: needs patch -> patch review ___ Python tracker ___

[issue13607] Move generator specific sections out of ceval.

2018-02-25 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- status: open -> pending ___ Python tracker ___

[issue13607] Move generator specific sections out of ceval.

2018-02-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The WHY_* codes are gone in 3.8 (see issue17611). Exception state was moved from frame to generator in 3.7 (see issue25612). Can some parts of the patch be applied to the current code? Or it is completely outdated? --

[issue32950] profiling python gc

2018-02-25 Thread Luavis
New submission from 강성일 (Luavis) : There is way to logging python garbage collection event. but no way to profiling it. -- messages: 312816 nosy: 강성일 (Luavis) priority: normal severity: normal status: open title: profiling python gc type: enhancement versions:

[issue17611] Move unwinding of stack for "pseudo exceptions" from interpreter to compiler.

2018-02-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Finally it is merged, and seems successfully. Thank you all involved, and first at all Mark, the original author. This unblocked further changes, issue32489 and issue32949. And we can try implement other ideas. Changes in the

[issue32017] profile.Profile() has no method enable()

2018-02-25 Thread bbayles
bbayles added the comment: I'm afraid that profile.Profile and cProfile.Profile behave pretty differently, and there's not a good way to bring the methods from the C version to the Python version. The example at [1] shows a cProfile.Profile object being instantiated and

[issue32949] Simplify "with"-related opcodes

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

[issue32949] Simplify "with"-related opcodes

2018-02-25 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : There are some issues with "with"-related opcodes. All other opcodes has constant stack effect for particular control flow. For example FOR_ITER always has the stack effect 1 if not jump (pushes the next item) and -1 if jumps

[issue30622] Fix NPN guard for OpenSSL 1.1

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

[issue30622] Fix NPN guard for OpenSSL 1.1

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

[issue32948] clang compiler warnings on Travis

2018-02-25 Thread Christian Heimes
New submission from Christian Heimes : I'm seeing a bunch of compile errors on 2.7 branch, https://travis-ci.org/python/cpython/jobs/345906584 /home/travis/build/python/cpython/Modules/_heapqmodule.c:600:21: warning: illegal character encoding in string literal

[issue28883] Python 3.5.2 crashers (from PyPy)

2018-02-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: C5 is fixed in 3.8 by issue17611. -- nosy: +serhiy.storchaka ___ Python tracker ___

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

[issue30622] Fix NPN guard for OpenSSL 1.1

2018-02-25 Thread Christian Heimes
Christian Heimes added the comment: New changeset 961774184eb950e2547ab0d42653439adc735924 by Christian Heimes (Miss Islington (bot)) in branch '3.7': [3.7] bpo-30622: Fix NPN for OpenSSL 1.1.1-pre1 (GH-5876) (#5880)

  1   2   >