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

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

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

[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

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

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

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

[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: https://doc

[issue36813] QueueListener not calling task_done upon termination

2019-06-01 Thread miss-islington
miss-islington added the comment: New changeset 6b282e18877ec84e927b381b4ce187eaf4ba3dd7 by Miss Islington (bot) (Bar Harel) in branch 'master': bpo-36813: Fix QueueListener to call task_done() upon termination. (GH-13113) https://github.com/python/cpython/commit/6b282e18877ec84e927b381b4ce18

[issue36813] QueueListener not calling task_done upon termination

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

[issue36813] QueueListener not calling task_done upon termination

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

[issue36813] QueueListener not calling task_done upon termination

2019-06-01 Thread miss-islington
miss-islington added the comment: New changeset f286e0373feda0955c910a9fe4ef99cd2c40969e by Miss Islington (bot) in branch '3.7': bpo-36813: Fix QueueListener to call task_done() upon termination. (GH-13113) https://github.com/python/cpython/commit/f286e0373feda0955c910a9fe4ef99cd2c40969e -

[issue36027] Support negative exponents in pow() where a modulus is specified.

2019-06-01 Thread Mark Dickinson
Mark Dickinson added the comment: I think GH-13266 is ready to go, but I'd appreciate a second pair of eyes on it if anyone has time. -- ___ Python tracker ___ __

[issue37117] Simplify customization of the logging time through datefmt

2019-06-01 Thread Mario Corchero
Mario Corchero added the comment: > What do you mean by "it is not documented"? It is documented here: As it says: "This function uses a user-configurable function to convert the creation time to a tuple. By default, time.localtime() is used; to change this for a particular formatter instan

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

2019-06-01 Thread Mark Dickinson
Mark Dickinson added the comment: Thanks, Raymond. I'm planning to do a post-merge review and test this weekend. -- ___ Python tracker ___

[issue37111] Logging - Inconsistent behaviour when handling unicode

2019-06-01 Thread Vinay Sajip
Vinay Sajip added the comment: > This seems like an attempt at victim blaming. Er, no, it was a straight question about whether you'd read the documentation. > I'm afraid this line of reasoning is suffering from selection bias, cherry > picking, confirmation bias, and probably some others to

[issue37117] Simplify customization of the logging time through datefmt

2019-06-01 Thread Vinay Sajip
Change by Vinay Sajip : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bu

[issue36461] timeit: Additional changes for autorange

2019-06-01 Thread Steven D'Aprano
Steven D'Aprano added the comment: Sorry for the late reply. > Just a question: why we need to check ``if number == 0:``? In the > proposal you asked for None too. What changed? Even if the function is > called with False, will it hurts to keep the default value? Fair question. On rethinkin

[issue36461] timeit: Additional changes for autorange

2019-06-01 Thread Steven D'Aprano
Steven D'Aprano added the comment: > ``if number is None or number < 0`` Sorry, that should be number == 0 -- ___ Python tracker ___ _

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

2019-06-01 Thread Cheryl Sabella
Change by Cheryl Sabella : -- nosy: +benjamin.peterson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue36839] Support the buffer protocol in code objects

2019-06-01 Thread Inada Naoki
Inada Naoki added the comment: On Sat, Jun 1, 2019 at 2:47 AM Brett Cannon wrote: > > Brett Cannon added the comment: > > RE: "I think it needs significant benefits for typical users, not only for > Instagram. If only Instagram get benefit from this, keep it as Instagram's > internal patch.

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

2019-06-01 Thread Cheryl Sabella
Change by Cheryl Sabella : -- nosy: +levkivskyi ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue35849] Added thousands separators to Lib/pstats.py final report

2019-06-01 Thread Cheryl Sabella
Cheryl Sabella added the comment: For reference, issue24084 is about increasing the size of the quicker timings. Both projects change the layout. -- nosy: +cheryl.sabella ___ Python tracker ___

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

2019-06-01 Thread Yash Aggarwal
Yash Aggarwal added the comment: Thanks @rhettinger for cleaning up the code and closing the pr. I didn't get what you meant by long, and sorry for not being much active as well. I am stuck with a pretty time consuming internship. -- versions: +Python 3.6 -Python 3.8 ___

[issue37101] Filterer.filter can be rewritten using built-ins just as efficient much more readable

2019-06-01 Thread Dale Visser
Dale Visser added the comment: I've learned a lot about the performance trade-offs of generator expressions. The only way of shortening this code (readability is subjective) that I've found not to negatively impact performance is this: def filter(self, record): rv = True

[issue36839] Support the buffer protocol in code objects

2019-06-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > * They need to use lightweight object for buffer. At least, > memoryview object is large (192byte > on Python 3.7.3 amd64). Actually it is larger, because you should add the size of internal objects. In 3.8: >>> sys.getsizeof(memoryview(b'')) 184 >>> s

[issue36839] Support the buffer protocol in code objects

2019-06-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The size of the code object is at least 144 bytes. >>> def f(): pass ... >>> sys.getsizeof(f.__code__) 144 If the function uses parameters, variables or constants (and you cannot do much useful without using them), their size should be added too. It overw

[issue37121] 'ა'.upper() should return 'ა'

2019-06-01 Thread Lasha Gogua
New submission from Lasha Gogua : Python's .upper() string method still translates Georgian characters this to "'Ა'" which is not right Python 3.7.3 (default, May 11 2019, 00:45:16) [GCC 8.3.1 20190223 (Red Hat 8.3.1-2)] on linux Type "help", "copyright", "credits" or "license" for more inform

[issue37121] 'ა'.upper() should return 'ა'

2019-06-01 Thread SilentGhost
SilentGhost added the comment: What changed was that python 3.7 is using Unicode 11 standard, which has introduced changes for Georgian script. See "Casing Issues" under https://www.unicode.org/versions/Unicode11.0.0/#Migration The Python is correctly implements the standard. -- nos

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

2019-06-01 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +13609 pull_request: https://github.com/python/cpython/pull/13725 ___ 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: PR 13725 is a technical fix/optimization/cleanup. Later we can apply algorithmic optimization. -- ___ Python tracker ___ _

[issue36612] Unittest document is not clear on SetUpClass calls

2019-06-01 Thread Cheryl Sabella
Cheryl Sabella added the comment: @xtreak or @lisroach, any thoughts? Thanks! -- nosy: +cheryl.sabella, lisroach, xtreak ___ 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
New submission from Pablo Galindo Salgado : Originally proposed in: https://mail.python.org/pipermail/python-dev/2019-June/157812.html -- components: Interpreter Core messages: 344178 nosy: pablogsal, scoder, serhiy.storchaka priority: normal severity: normal status: open title: Make c

[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 : -- keywords: +patch pull_requests: +13610 stage: -> patch review pull_request: https://github.com/python/cpython/pull/13726 ___ 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) https://github.com/python/cpython/commit/059b9ea5ac98f43

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

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

[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 https://pkware.cachefly.net/

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

[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

[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
Pablo Galindo Salgado added the comment: This is likely to be caused by: https://github.com/python/cpython/pull/13688 -- ___ Python tracker ___ _

[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

[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

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

[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

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

[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

[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

[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

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

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

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

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

[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: https://m

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

[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

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

[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

[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

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

[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

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

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

[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

[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

[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

[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

[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

[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

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

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

[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

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

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

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

[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

[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

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

[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

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

[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

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

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

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

[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

  1   2   >