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

2019-06-01 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 4a686504eb2bbf69adf78077458508a7ba131667 by Raymond Hettinger (Yash Aggarwal) in branch 'master': bpo-35431: Implemented math.comb (GH-11414) https://github.com/python/cpython/commit/4a686504eb2bbf69adf78077458508a7ba131667 --

[issue37120] Provide knobs to disable session ticket generation on TLS 1.3

2019-06-01 Thread Christian Heimes
Change by Christian Heimes : -- keywords: +patch pull_requests: +13607 stage: -> patch review pull_request: https://github.com/python/cpython/pull/13719 ___ 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: Leaving this open for a while in case there is more work that needs to be done or any further comments to be resolved. -- assignee: -> rhettinger ___ Python tracker

[issue37119] Equality on dict.values() are inconsistent between 2 and 3

2019-06-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See also issue12445. -- nosy: +serhiy.storchaka resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> dict view values objects are missing tp_richcmp and tp_as_number ___ Python

[issue18911] minidom does not encode correctly when calling Document.writexml

2019-06-01 Thread Stefan Behnel
Stefan Behnel added the comment: New changeset 18e23f227be59241cbb1eeb6d6669771dd7275fb by Stefan Behnel (Miss Islington (bot)) in branch '3.7': bpo-18911: clarify that the minidom XML writer receives texts but not bytes (GH-13718)

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

2019-06-01 Thread jpic
jpic added the comment: The email API does error recovery without loading invalid domains into the domain variable which could lead to dangerous situations, example with "a@foo.": >>> email.message_from_string('From: >>> a@foo.',policy=email.policy.default)['from'].addresses[0].domain '' In

[issue18911] minidom does not encode correctly when calling Document.writexml

2019-06-01 Thread Stefan Behnel
Stefan Behnel added the comment: New changeset 5ac0b988fd5f1428efe35329c531c7b5c74d37f6 by Stefan Behnel (Windson yang) in branch 'master': bpo-18911: clarify that the minidom XML writer receives texts but not bytes (GH-13352)

[issue18911] minidom does not encode correctly when calling Document.writexml

2019-06-01 Thread Stefan Behnel
Change by Stefan Behnel : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.8 -Python 2.7, Python 3.5, Python 3.6 ___ Python tracker

[issue29984] Improve test coverage for 'heapq' module

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

[issue18911] minidom does not encode correctly when calling Document.writexml

2019-06-01 Thread miss-islington
Change by miss-islington : -- pull_requests: +13605 stage: backport needed -> patch review pull_request: https://github.com/python/cpython/pull/13718 ___ Python tracker ___

[issue36518] Avoid conflicts when pass arbitrary keyword arguments to Python function

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

[issue18911] minidom does not encode correctly when calling Document.writexml

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

[issue21109] tarfile: Traversal attack vulnerability

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

[issue21872] LZMA library sometimes fails to decompress a file

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

[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

[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

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

[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

[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

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

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

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

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

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

[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

[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

[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
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +13615 stage: -> patch review pull_request: https://github.com/python/cpython/pull/13731 ___ Python tracker

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

[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

[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

[issue36411] Python 3 f.tell() gets out of sync with file pointer in binary append+read mode

2019-06-01 Thread Jeffrey Kintscher
Jeffrey Kintscher added the comment: Further testing revealed the problem and fix also apply to text mode. I submitted a pull request to fix this issue with tests for both binary and text mode. -- ___ Python tracker

[issue18911] minidom does not encode correctly when calling Document.writexml

2019-06-01 Thread Stefan Behnel
Change by Stefan Behnel : -- resolution: fixed -> stage: resolved -> backport needed status: closed -> open versions: +Python 3.7 ___ Python tracker ___

[issue37120] Provide knobs to disable session ticket generation on TLS 1.3

2019-06-01 Thread Christian Heimes
Christian Heimes added the comment: +1 for the idea Yes, for simple flags and settings, an attribute on the SSLContext is prefer. The SSLContext object is the configuration space for its connections. I would prefer to keep the setting only on the context and not clutter SSLSocket and

[issue37116] Use PEP 570 syntax for positional-only parameters

2019-06-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 2085bd0877e17ad4d98a4586d5eabb6faecbb190 by Serhiy Storchaka in branch 'master': bpo-37116: Use PEP 570 syntax for positional-only parameters. (GH-13700) https://github.com/python/cpython/commit/2085bd0877e17ad4d98a4586d5eabb6faecbb190

[issue37123] test_multiprocessing fails randomly on Windows

2019-06-01 Thread Pablo Galindo Salgado
New submission from Pablo Galindo Salgado : https://buildbot.python.org/all/#/builders/58/builds/2539 https://buildbot.python.org/all/#/builders/58/builds/2539 Traceback (most recent call last): File "D:\cygwin\home\db3l\buildarea\3.x.bolen-windows7\build\lib\test\test_venv.py", line 327,

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

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

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

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

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

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

[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

[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

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

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

[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

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

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

[issue31968] exec(): method's default arguments from dict-inherited globals

2019-06-01 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ 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:

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

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

[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

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

[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

[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

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

[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

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

[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

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

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

[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

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

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

[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

[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

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

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

[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

[issue31968] exec(): method's default arguments from dict-inherited globals

2019-06-01 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 059b9ea5ac98f432e41b05d1fa5aab4ffa22df4d by Raymond Hettinger (Anthony Shaw) in branch 'master': bpo-31968: Documentation -- add clarification on the globals dict for exec() (GH-13140)

[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

[issue36993] zipfile: tuple IndexError on extract

2019-06-01 Thread Berker Peksag
Berker Peksag added the comment: This report is valid. Serhiy has improved error reporting of the extra field in feccdb2a249a71be330765be77dee57121866779. counts can indeed be an empty tuple: elif ln == 0: counts = () If I'm reading section 4.5.3 of

[issue36993] zipfile: tuple IndexError on extract

2019-06-01 Thread Berker Peksag
Change by Berker Peksag : -- keywords: +patch pull_requests: +13611 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/13727 ___ 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

[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

[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

[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

[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

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

[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

[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

[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__`. -- ___

[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

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

[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

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

[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

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

[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

[issue37117] Simplify customization of the logging time through datefmt

2019-06-01 Thread Vinay Sajip
Vinay Sajip added the comment: > AFAIK, the converter attribute is only to "be set" with a function of such > signature. It is not documented that it can be used and it is only used on > the format time function. What do you mean by "it is not documented"? It is documented here:

  1   2   >