[issue36839] Support the buffer protocol in code objects

2019-06-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The managed buffer can be shared if it refers to the same bytes. But different code objects in the same process refer to different bytes, therefore they should have distinct managed buffers. -- ___ Python tracke

[issue36781] Optimize sum() for bools

2019-06-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I am not sure that this optimization should be added. sum(pred(x) for x in data) will be always slower than sum(1 for x in data if pred(x)) because more items is passed to sun() in the former case. It can be considered as an anti-pattern. --

[issue32865] os.pipe creates inheritable FDs with a bad internal state on Windows

2019-06-01 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch pull_requests: +13622 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/13739 ___ Python tracker ___

[issue35964] shutil.make_archive (xxx, tar, root_dir) is adding './' entry to archive which is wrong

2019-06-01 Thread Jeffrey Kintscher
Jeffrey Kintscher added the comment: I submitted a pull request that excludes '.' directory entries when adding directories to a tar archive. -- ___ Python tracker ___ __

[issue35964] shutil.make_archive (xxx, tar, root_dir) is adding './' entry to archive which is wrong

2019-06-01 Thread Jeffrey Kintscher
Change by Jeffrey Kintscher : -- keywords: +patch pull_requests: +13621 stage: -> patch review pull_request: https://github.com/python/cpython/pull/13738 ___ Python tracker __

[issue36839] Support the buffer protocol in code objects

2019-06-01 Thread Inada Naoki
Inada Naoki added the comment: > And I understood that Dino proposed to share one code instance as a memory > mapped file for *all* processes. What instance means? code object? co_code? Anyway, Dino didn't propose such thing. He only proposed accepting buffer object for code constructor. H

[issue5680] Simulate command-line arguments for program run in IDLE

2019-06-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: Cheryl, go ahead after reading the notes above. Use an f-string for the runcommand argument and remember that it is run within the pristine user environment. Otherwise, let's start with minimal changes. -- ___ P

[issue5680] Simulate command-line arguments for program run in IDLE

2019-06-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: My suspicion about posix=False was wrong. >>> shlex.split(''' 1 "'a' 'b'" ''', posix=False) ['1', '"\'a\' \'b\'"'] # len(...[1]) = 9 >>> shlex.split(''' 1 '"a" "b"' ''') ['1', '"a" "b"'] # len = 7 f:\dev\3x>py -c "import sys; print(sys.argv)" 1 "'a' 'b'" ['-

[issue37130] pathlib.with_name() doesn't like unnamed files.

2019-06-01 Thread N.P. Khelili
New submission from N.P. Khelili : Hi guys! I'm new to python and working on my first real project with it I'm sorry if it's not the right place for posting this. I noticed that that pathlib.with_name() method does not accept to give a name to a path that does not already have one. It se

[issue5680] Simulate command-line arguments for program run in IDLE

2019-06-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: When running IDLE normally, with a subprocess, it would be possible to pass arguments to python itself when IDLE restarts the user process (with shell.restart_shell()). That would be another issue. We would have to look at whether any options would disable

[issue5680] Simulate command-line arguments for program run in IDLE

2019-06-01 Thread Cheryl Sabella
Cheryl Sabella added the comment: I'll can work on a PR for this, unless you want to do it based on your research. -- nosy: +cheryl.sabella ___ Python tracker ___ _

[issue36984] typing docs "versionadded" is inaccurate for many attributes

2019-06-01 Thread Ivan Levkivskyi
Change by Ivan Levkivskyi : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue36984] typing docs "versionadded" is inaccurate for many attributes

2019-06-01 Thread miss-islington
Change by miss-islington : -- pull_requests: +13620 pull_request: https://github.com/python/cpython/pull/13737 ___ Python tracker ___ __

[issue5680] Simulate command-line arguments for program run in IDLE

2019-06-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: 3 recent 'doit' requests (2 on PR 1589) raise my priority for this issue. When a user runs a file from an editor, IDLE simulates, as well as it can, the user entering 'python -i path' in a system command line shell. Both on a command line and in IDLE, the

[issue36985] typing.ForwardRef is undocumented

2019-06-01 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: Guido, I remember you were against exposing `ForwardRef` as public at some point, but recently you approved https://github.com/python/cpython/pull/13456 that added it to `typing.__all__`. I don't have any particular opinion on this, but if you don't object,

[issue33608] Add a cross-interpreter-safe mechanism to indicate that an object may be destroyed.

2019-06-01 Thread Eric Snow
Eric Snow added the comment: FYI, after merging that PR I realized that the COMPUTE_EVAL_BREAKER macro isn't quite right. While the following scenario worked before, now it doesn't: 1. interpreter A: _PyEval_AddPendingCall() causes the global eval breaker to be set 2. interpreter B: the n

[issue33608] Add a cross-interpreter-safe mechanism to indicate that an object may be destroyed.

2019-06-01 Thread Eric Snow
Eric Snow added the comment: So far so good. :) I'll keep an eye on things and if the buildbots are still happy then I'll add back _PyEval_FinishPendingCalls() in _Py_FinalizeEx() in a few days. -- ___ Python tracker

[issue35431] Add a function for computing binomial coefficients to the math module

2019-06-01 Thread David Radcliffe
David Radcliffe added the comment: I think that binomial(n, k) should return 0 when k > n or k < 0. This is a practical consideration. I'm concerned about evaluating sums involving binomial coefficients. Mathematicians are often rather loose about specifying the upper and lower bounds of sum

[issue32411] Idlelib.browser: stop sorting dicts created by pyclbr

2019-06-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: yes ;-) -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue32411] Idlelib.browser: stop sorting dicts created by pyclbr

2019-06-01 Thread miss-islington
miss-islington added the comment: New changeset ac60d1afd2b04f61fe4c965740fa32809f2b84ed by Miss Islington (bot) in branch '3.7': bpo-32411: IDLE: Remove line number sort in browser.py (GH-5011) https://github.com/python/cpython/commit/ac60d1afd2b04f61fe4c965740fa32809f2b84ed -- nos

[issue37129] Add RWF_APPEND flag

2019-06-01 Thread Michal
Change by Michal : -- keywords: +patch pull_requests: +13618 stage: -> patch review pull_request: https://github.com/python/cpython/pull/13735 ___ Python tracker ___ _

[issue37129] Add RWF_APPEND flag

2019-06-01 Thread Michal
Change by Michal : -- components: Library (Lib) nosy: bezoka, pablogsal, vstinner priority: normal severity: normal status: open title: Add RWF_APPEND flag type: enhancement versions: Python 3.8 ___ Python tracker

[issue33608] Add a cross-interpreter-safe mechanism to indicate that an object may be destroyed.

2019-06-01 Thread Eric Snow
Eric Snow added the comment: New changeset 6a150bcaeb190d1731b38ab9c7a5d1a352847ddc by Eric Snow in branch 'master': bpo-33608: Factor out a private, per-interpreter _Py_AddPendingCall(). (gh-13714) https://github.com/python/cpython/commit/6a150bcaeb190d1731b38ab9c7a5d1a352847ddc -

[issue35431] Add a function for computing binomial coefficients to the math module

2019-06-01 Thread Raymond Hettinger
Change by Raymond Hettinger : -- pull_requests: +13617 pull_request: https://github.com/python/cpython/pull/13734 ___ Python tracker ___ ___

[issue35431] Add a function for computing binomial coefficients to the math module

2019-06-01 Thread Tim Peters
Tim Peters added the comment: Strongly prefer requiring 0 <= k <= n at first. This is a programming language: it will be applied to real problems, not to abstract proofs where some slop can be helpful in reducing the number of cases that need to be considered. The Twitter fellow is certai

[issue34722] Non-deterministic bytecode generation

2019-06-01 Thread Raymond Hettinger
Raymond Hettinger added the comment: Bumping up the priority a bit on this one. It would be nice to get it in for 3.8. -- priority: normal -> high versions: +Python 3.8 -Python 3.7 ___ Python tracker _

[issue29414] Change 'the for statement is such an iterator' in Tutorial

2019-06-01 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue29414] Change 'the for statement is such an iterator' in Tutorial

2019-06-01 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 218e47b61862470477922e9aba1a23fd3dab18ae by Raymond Hettinger (Marco Buttu) in branch 'master': bpo-29414: Change 'the for statement is such an iterator' in Tutorial (GH-273) https://github.com/python/cpython/commit/218e47b61862470477922e9aba

[issue35431] Add a function for computing binomial coefficients to the math module

2019-06-01 Thread Mark Dickinson
Mark Dickinson added the comment: I'm particularly sceptical about real-world use-cases for k < 0. Maybe we should consider removing just the k > n requirement. -- ___ Python tracker ___

[issue35431] Add a function for computing binomial coefficients to the math module

2019-06-01 Thread Raymond Hettinger
Raymond Hettinger added the comment: > I'd say leave it as-is for 3.8, see what the reaction is, > and maybe relax constraints in 3.9 if that seems appropriate. I concur. That said, the referenced tweet was a reaction :-) FWIW, itertools.combinations(seq, r) returns 0 values when r > len(se

[issue20092] type() constructor should bind __int__ to __index__ when __index__ is defined and __int__ is not

2019-06-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset bdbad71b9def0b86433de12cecca022eee91bd9f by Serhiy Storchaka in branch 'master': bpo-20092. Use __index__ in constructors of int, float and complex. (GH-13108) https://github.com/python/cpython/commit/bdbad71b9def0b86433de12cecca022eee91bd9f

[issue32411] Idlelib.browser: stop sorting dicts created by pyclbr

2019-06-01 Thread miss-islington
Change by miss-islington : -- pull_requests: +13616 pull_request: https://github.com/python/cpython/pull/13732 ___ Python tracker ___ __

[issue32411] Idlelib.browser: stop sorting dicts created by pyclbr

2019-06-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 1a4d9ffa1aecd7e750195f2be06d3d16c7a3a88f by Terry Jan Reedy (Cheryl Sabella) in branch 'master': bpo-32411: IDLE: Remove line number sort in browser.py (#5011) https://github.com/python/cpython/commit/1a4d9ffa1aecd7e750195f2be06d3d16c7a3a88f -

[issue35431] Add a function for computing binomial coefficients to the math module

2019-06-01 Thread Mark Dickinson
Mark Dickinson added the comment: > What are your thoughts? Sigh. I don't object to extending to `k < 0` and `k > n`, but once we've made that extension it's impossible to undo if we decide we'd rather have had the error checking. I'd really like to see some convincing use-cases. Quotes from

[issue35431] Add a function for computing binomial coefficients to the math module

2019-06-01 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Just a heads up from issue37125: The leak is was fixed by PR13725. -- ___ Python tracker ___ _

[issue35431] Add a function for computing binomial coefficients to the math module

2019-06-01 Thread Raymond Hettinger
Raymond Hettinger added the comment: One other idea: it may be worth putting in an alias for "binomial" to improve findability and readability in contexts where a person really does what binomial coefficients and is not otherwise thinking about counting contexts. --

[issue35431] Add a function for computing binomial coefficients to the math module

2019-06-01 Thread Raymond Hettinger
Raymond Hettinger added the comment: Mark, please see: https://twitter.com/daveinstpaul/status/1134919179361034240 What are your thoughts? -- ___ Python tracker ___

[issue37128] Add math.perm()

2019-06-01 Thread Mark Dickinson
Mark Dickinson added the comment: > +0 from me. It is inevitable that this will be requested now that we have > comb(). Exactly my thoughts, too. I don't think I'll have any use for `math.perm`; the main reason to add it will be to satisfy all those who got taught combinations and permutat

[issue26468] shutil.copy2 raises OSError if filesystem doesn't support chmod

2019-06-01 Thread Jeffrey Kintscher
Change by Jeffrey Kintscher : -- nosy: +Jeffrey.Kintscher ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue37128] Add math.perm()

2019-06-01 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +13615 stage: -> patch review pull_request: https://github.com/python/cpython/pull/13731 ___ Python tracker ___

[issue37128] Add math.perm()

2019-06-01 Thread Raymond Hettinger
Raymond Hettinger added the comment: +0 from me. It is inevitable that this will be requested now that we have comb(). The need for this is much less though. -- nosy: +rhettinger ___ Python tracker __

[issue37128] Add math.perm()

2019-06-01 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : The function which returns the number of ways to choose k items from n items without repetition and without order was added in issue35431. This functions is always goes in pair with other function, which returns the number of ways to choose k items from

[issue26791] shutil.move fails to move symlink (Invalid cross-device link)

2019-06-01 Thread Jeffrey Kintscher
Change by Jeffrey Kintscher : -- nosy: +Jeffrey.Kintscher ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue29882] Add an efficient popcount method for integers

2019-06-01 Thread Tim Peters
Tim Peters added the comment: I prefer that a negative int raise ValueError, but am OK with it using the absolute value instead (i.e., what it does now). -- ___ Python tracker __

[issue29882] Add an efficient popcount method for integers

2019-06-01 Thread Mark Dickinson
Mark Dickinson added the comment: > I am going to add the imath module. Aimed at 3.8, or 3.9? This seems somewhat rushed for 3.8. -- ___ Python tracker ___ __

[issue34303] micro-optimizations in functools.reduce()

2019-06-01 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue35431] Add a function for computing binomial coefficients to the math module

2019-06-01 Thread Mark Dickinson
Mark Dickinson added the comment: I'd expect any math module function accepting integers to be sufficiently duck-typed to accept integer-like things (i.e., objects that implement `__index__`), in just the same way that the regular math module functions (sin, log, atan, sqrt, ...) accept arbi

[issue29882] Add an efficient popcount method for integers

2019-06-01 Thread Mark Dickinson
Mark Dickinson added the comment: > Is everyone comfortable with how negative numbers are handled by this patch? Not entirely, but it's not terribly wrong and it's consistent with how `int.bit_length` works. (I'm also a bit uncomfortable about `int.bit_length`s behaviour on negative numbers,

[issue34303] micro-optimizations in functools.reduce()

2019-06-01 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset e5f6207ba6cb510d9370519ba869296be01787be by Raymond Hettinger (Sergey Fedoseev) in branch 'master': bpo-34303: Micro-optimizations in functools.reduce() (GH-8598) https://github.com/python/cpython/commit/e5f6207ba6cb510d9370519ba869296be01787

[issue37125] math.comb is leaking references

2019-06-01 Thread Raymond Hettinger
Raymond Hettinger added the comment: Please file this in the tracker issue so that the discussions don't sprawl. Thx. -- ___ Python tracker ___ _

[issue35431] Add a function for computing binomial coefficients to the math module

2019-06-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: NumPy integer types are not subclasses of int. -- ___ Python tracker ___ ___ Python-bugs-list m

[issue35431] Add a function for computing binomial coefficients to the math module

2019-06-01 Thread Raymond Hettinger
Raymond Hettinger added the comment: Why do we want __index__ support? This seems like an unnecessary extension without relevant use cases. -- ___ Python tracker ___ ___

[issue36842] Implement PEP 578

2019-06-01 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 3b57f50efc16c65df96914ec53bc8d3dc28e18b6 by Pablo Galindo in branch 'master': bpo-36842: Pass positional only parameters to code_new audit hook (GH-13707) https://github.com/python/cpython/commit/3b57f50efc16c65df96914ec53bc8d3dc28e18b6

[issue29882] Add an efficient popcount method for integers

2019-06-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I am going to add the imath module. If we decide to add popcount(), it may be better to add it in this module instead of int class. -- ___ Python tracker

[issue29882] Add an efficient popcount method for integers

2019-06-01 Thread Raymond Hettinger
Raymond Hettinger added the comment: Is everyone comfortable with how negative numbers are handled by this patch? It might be better to limit the domain and raise a ValueError rather than make a presumption about what the user intends. -- nosy: +rhettinger _

[issue37125] math.comb is leaking references

2019-06-01 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Fixed by https://github.com/python/cpython/pull/13725 -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker _

[issue5680] Command-line arguments when running in IDLE

2019-06-01 Thread Raymond Hettinger
Raymond Hettinger added the comment: Can be bump this up in priority? The patch has been awaiting review for a good while. -- ___ Python tracker ___ _

[issue35431] Add a function for computing binomial coefficients to the math module

2019-06-01 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +13614 pull_request: https://github.com/python/cpython/pull/13731 ___ Python tracker ___

[issue37111] Logging - Inconsistent behaviour when handling unicode

2019-06-01 Thread Paul Moore
Paul Moore added the comment: > User would like Python logging of Unicode characters to be consistent It is consistent. The encoding of logging.basicConfig(filename='c:\\my_log.log') is consistent with the encoding of open('c:\\my_log.log') Both use the system default encoding, whi

[issue36885] Make makeunicode.py script more readable

2019-06-01 Thread Stefan Behnel
Change by Stefan Behnel : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue32515] Add an option to trace to run module as a script

2019-06-01 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue33608] Add a cross-interpreter-safe mechanism to indicate that an object may be destroyed.

2019-06-01 Thread Eric Snow
Eric Snow added the comment: I've made a few tweaks and Victor did some cleanup, so I'm going to try the PR again. At first I'm also going to disable the _PyEval_FinishPendingCalls() call in _Py_FinalizeEx() and then enable it is a separate PR. Also, I've opened bpo-37127 specifically to tr

[issue33608] Add a cross-interpreter-safe mechanism to indicate that an object may be destroyed.

2019-06-01 Thread Eric Snow
Eric Snow added the comment: That's really helpful, Pavel! Thanks for investigating so thoroughly. I'm going to double check all the places I've made the assumption that "tstate" isn't NULL and likewise for "tstate->interp". Is there an issue open for the bug in multiprocessing? If not, w

[issue37126] test_threading is leaking references

2019-06-01 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Łukasz, this PR will fix the x86 Gentoo Refleaks 3.x and friends, so I would recommend landing this before the release. -- nosy: +lukasz.langa ___ Python tracker

[issue37111] Logging - Inconsistent behaviour when handling unicode

2019-06-01 Thread Vinay Sajip
Vinay Sajip added the comment: Different people have different ideas of what a default should be. You can pretty much guarantee that whatever a default is, someone will think it should be something else. The basicConfig functionality has been around in its present form since 2003, and people

[issue37127] Handling pending calls during runtime finalization may cause problems.

2019-06-01 Thread Eric Snow
Eric Snow added the comment: Also, someone did manage to investigate and identify a likely cause: https://bugs.python.org/issue33608#msg342791 -- ___ Python tracker ___ _

[issue20092] type() constructor should bind __int__ to __index__ when __index__ is defined and __int__ is not

2019-06-01 Thread Mark Dickinson
Mark Dickinson added the comment: I like the delegation of `float` and `complex` to use `__index__` that was introduced in GH-13108; it would be nice to have that regardless of which solution is decided on for `__int__` and `__index__`. -- ___ Pyt

[issue34155] email.utils.parseaddr mistakenly parse an email

2019-06-01 Thread Abhilash Raj
Abhilash Raj added the comment: I don't know if we can make the API consistent between parseaddr and the parsing header value since they are completely different even right now. Like you already noticed there is no way to register defects and instead parseaddr returns ('', '') to denote the

[issue37111] Logging - Inconsistent behaviour when handling unicode

2019-06-01 Thread Jonathan
Jonathan added the comment: > Learning is not a waste of time. You're entitled to your opinion, but this is > not a bug in logging. We'll have to agree to disagree. I agree and value learning a great deal. However learning should happen on your own time, NOT when a program crashes randomly a

[issue20092] type() constructor should bind __int__ to __index__ when __index__ is defined and __int__ is not

2019-06-01 Thread Mark Dickinson
Change by Mark Dickinson : -- nosy: +mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue37111] Logging - Inconsistent behaviour when handling unicode

2019-06-01 Thread Vinay Sajip
Vinay Sajip added the comment: Learning is not a waste of time. You're entitled to your opinion, but this is not a bug in logging. We'll have to agree to disagree. -- ___ Python tracker

[issue36839] Support the buffer protocol in code objects

2019-06-01 Thread Stefan Krah
Stefan Krah added the comment: The managed buffer can be shared: >>> b = b'12345' >>> m1 = memoryview(b) >>> m2 = memoryview(m1) >>> gc.get_referents(m1)[0] >>> gc.get_referents(m2)[0] And I understood that Dino proposed to share one code instance as a memory mapped file for *all* process

[issue37127] Handling pending calls during runtime finalization may cause problems.

2019-06-01 Thread Eric Snow
New submission from Eric Snow : In Python/lifecycle.c (Py_FinalizeEx) we call _Py_FinishPendingCalls(), right after we stop all non-daemon Python threads but before we've actually started finalizing the runtime state. That call looks for any remaining pending calls (for the main interpreter)

[issue35431] Add a function for computing binomial coefficients to the math module

2019-06-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 2b843ac0ae745026ce39514573c5d075137bef65 by Serhiy Storchaka in branch 'master': bpo-35431: Refactor math.comb() implementation. (GH-13725) https://github.com/python/cpython/commit/2b843ac0ae745026ce39514573c5d075137bef65 -- ___

[issue28595] shlex.shlex should not augment wordchars

2019-06-01 Thread Vinay Sajip
Vinay Sajip added the comment: New changeset 56624a99a916fd27152d5b23364303acc0d707de by Vinay Sajip (Evan) in branch 'master': bpo-28595: Allow shlex whitespace_split with punctuation_chars (GH-2071) https://github.com/python/cpython/commit/56624a99a916fd27152d5b23364303acc0d707de

[issue37111] Logging - Inconsistent behaviour when handling unicode

2019-06-01 Thread Jonathan
Jonathan added the comment: > I have no idea what you mean by this. I don't see how I can be clearer. What are the reasons for NOT implementing logging to file be unicode as a default? Logging to screen is unicode as a default. What are the reasons for not wanting consistency? > A simple In

[issue37126] test_threading is leaking references

2019-06-01 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +13613 stage: -> patch review pull_request: https://github.com/python/cpython/pull/13729 ___ Python tracker __

[issue37126] test_threading is leaking references

2019-06-01 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: The problem here is that there is a reference cycle with threading.ExceptHookArgs but structseq objects are not tracked by the GC. -- ___ Python tracker

[issue36993] zipfile: tuple IndexError on extract

2019-06-01 Thread Berker Peksag
Berker Peksag added the comment: @alter-bug-tracer, could you please create test files for the cases Serhiy has just mentioned? -- ___ Python tracker ___

[issue37125] math.comb is leaking references

2019-06-01 Thread Mark Dickinson
Change by Mark Dickinson : -- nosy: +mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue34271] Please support logging of SSL master secret by env variable SSLKEYLOGFILE

2019-06-01 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +13612 pull_request: https://github.com/python/cpython/pull/13728 ___ Python tracker ___

[issue37126] test_threading is leaking references

2019-06-01 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: ❯ ./python -m test test_threading -m test_excepthook_thread_None -R : Run tests sequentially 0:00:00 load avg: 1.38 [1/1] test_threading beginning 9 repetitions 123456789 . test_threading leaked [364, 364, 364, 364] references, sum=1456 test_threa

[issue37126] test_threading is leaking references

2019-06-01 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- priority: normal -> high ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33346] Syntax error with async generator inside dictionary comprehension

2019-06-01 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Ping, should we include this in beta1 or as is a "bugfix" this can be backported? -- ___ Python tracker ___ _

[issue21879] str.format() gives poor diagnostic on placeholder mismatch

2019-06-01 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue36993] zipfile: tuple IndexError on extract

2019-06-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It is not enough. IndexError can be raised for ln == 8 or 16 when file_size, compress_size and header_offset are all set to 0x. -- ___ Python tracker

[issue37122] Make co->co_argcount represent the total number of positional arguments in the code object

2019-06-01 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue37122] Make co->co_argcount represent the total number of positional arguments in the code object

2019-06-01 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset cd74e66a8c420be675fd2fbf3fe708ac02ee9f21 by Pablo Galindo in branch 'master': bpo-37122: Make co->co_argcount represent the total number of positonal arguments in the code object (GH-13726) https://github.com/python/cpython/commit/cd74e6

[issue32411] Idlelib.browser: stop sorting dicts created by pyclbr

2019-06-01 Thread Raymond Hettinger
Raymond Hettinger added the comment: Can this move forward now? -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list ma

[issue37126] test_threading is leaking references

2019-06-01 Thread Pablo Galindo Salgado
New submission from Pablo Galindo Salgado : https://buildbot.python.org/all/#/builders/1/builds/601 OK (skipped=1) . test_threading leaked [9770, 9772, 9768] references, sum=29310 test_threading leaked [3960, 3961, 3959] memory blocks, sum=11880 2 tests failed again: test_asyncio test_threa

[issue37123] test_multiprocessing fails randomly on Windows

2019-06-01 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Sorry, I posted the same link twice. Here is the test_venv failure: https://buildbot.python.org/all/#/builders/58/builds/2538 -- ___ Python tracker _

[issue37123] test_multiprocessing fails randomly on Windows

2019-06-01 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I couldn't find the traceback for test_venv in the buildbot logs. They were skipped and fixed as part of issue35978. -- components: +Tests nosy: +xtreak type: -> behavior versions: +Python 3.8 ___ Python

[issue37125] math.comb is leaking references

2019-06-01 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: It seems that https://github.com/python/cpython/pull/13725 fixes the leak: ❯ ./python -m test test_math -R : Run tests sequentially 0:00:00 load avg: 1.55 [1/1] test_math beginning 9 repetitions 123456789 . == Tests result: SUCCESS == 1 test OK

[issue35431] Add a function for computing binomial coefficients to the math module

2019-06-01 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: math.comb is leaking, I opened https://bugs.python.org/issue37125 to track it. -- nosy: +pablogsal ___ Python tracker ___

[issue36976] email: AttributeError

2019-06-01 Thread Berker Peksag
Change by Berker Peksag : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Certain Malformed email causes email.parser to throw AttributeError ___ Python tracker __

[issue37125] math.comb is leaking references

2019-06-01 Thread Pablo Galindo Salgado
New submission from Pablo Galindo Salgado : ./python Lib/test/bisect_cmd.py test_math -R 2:2 ... WARNING: Running tests with --huntrleaks/-R and less than 3 warmup repetitions can give false positives! Run tests sequentially 0:00:00 load avg: 1.32 [1/1] test_math beginning 4 repetitions 1234

[issue36992] zipfile: AttributeError on extract (LZMA)

2019-06-01 Thread Berker Peksag
Berker Peksag added the comment: This is a duplicate of issue 36991 and will be fixed by the same PR. -- nosy: +berker.peksag resolution: not a bug -> duplicate superseder: -> zipfile: AttributeError on extract ___ Python tracker

[issue37124] test_msilib is potentially leaking references and memory blocks

2019-06-01 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: This is likely to be caused by: https://github.com/python/cpython/pull/13688 -- ___ Python tracker ___ _

[issue37124] test_msilib is potentially leaking references and memory blocks

2019-06-01 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: +steve.dower ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[issue37124] test_msilib is potentially leaking references and memory blocks

2019-06-01 Thread Pablo Galindo Salgado
New submission from Pablo Galindo Salgado : BUILDBOT FAILURE REPORT === Builder name: AMD64 Windows8.1 Refleaks 2.7 Builder url: https://buildbot.python.org/all/#/builders/33/ Build url: https://buildbot.python.org/all/#/builders/33/builds/604 Failed tests T

  1   2   >