[issue35719] Optimize multi-argument math functions

2019-01-11 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch, patch, patch pull_requests: +3, 4, 5 stage: -> patch review ___ Python tracker ___ __

[issue35720] Memory leak in Modules/main.c:pymain_parse_cmdline_impl when using the CLI flag

2019-01-11 Thread Lucas Cimon
New submission from Lucas Cimon : Hi. I think I have found a minor memory leak in Modules/main.c:pymain_parse_cmdline_impl. When the loop in the pymain_read_conf function in this same file calls pymain_init_cmdline_argv a 2nd time, the pymain->command buffer of wchar_t is overriden and the pr

[issue35720] Memory leak in Modules/main.c:pymain_parse_cmdline_impl when using the CLI flag

2019-01-11 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch, patch, patch pull_requests: +6, 7, 8 stage: -> patch review ___ Python tracker ___ _

[issue35720] Memory leak in Modules/main.c:pymain_parse_cmdline_impl when using the CLI flag

2019-01-11 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +6 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-l

[issue35720] Memory leak in Modules/main.c:pymain_parse_cmdline_impl when using the CLI flag

2019-01-11 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch, patch pull_requests: +6, 7 stage: -> patch review ___ Python tracker ___ ___

[issue35718] Cannot initialize the "force" command-option

2019-01-11 Thread Opher Shachar
Opher Shachar added the comment: (from the PR11526) In this build_py subclass I initialize force to 1, but when reaching byte_compile() we find out it was reset to None. from setuptools.command.build_py import build_py as _build_py class build_py(_build_py): def initialize_options(self):

[issue35721] _UnixSubprocessTransport leaks socket pair if Popen fails

2019-01-11 Thread Niklas Fiekas
New submission from Niklas Fiekas : Output of attached test case: non-existing indeed subprocess-exec-test.py:11: ResourceWarning: unclosed print("non-existing indeed") ResourceWarning: Enable tracemalloc to get the object allocation traceback subprocess-exec-test.py:11: ResourceWarning: unc

[issue35722] disable_existing_loggers does not apply to the root logger

2019-01-11 Thread Géry
New submission from Géry : In the logging package, the parameter disable_existing_loggers used in logging.config.dictConfig and logging.config.fileConfig does not apply to the root logger. More precisely, its disabled attribute remains unchanged (while it is set to True for non-root loggers).

[issue35723] Add "time zone index" cache to datetime objects

2019-01-11 Thread Paul Ganssle
New submission from Paul Ganssle : When examining the performance characteristics of pytz, I realized that pytz's eager calculation of tzname, offset and DST gives it an implicit cache that makes it much faster for repeated queries to .utcoffset(), .dst() and/or .tzname() though the eager ca

[issue35723] Add "time zone index" cache to datetime objects

2019-01-11 Thread Paul Ganssle
Change by Paul Ganssle : -- keywords: +patch pull_requests: +11122 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-li

[issue35723] Add "time zone index" cache to datetime objects

2019-01-11 Thread Paul Ganssle
Paul Ganssle added the comment: One other thing I might mention here is that I did explore the idea of storing this cache on the tzinfo implementation itself, but it is problematic for a number of reasons: 1. It would either need to use some sort of expiring cache (lru, ttl) or require a gr

[issue35582] Argument Clinic: inline parsing code for functions with only positional parameters

2019-01-11 Thread Antoine Pitrou
Antoine Pitrou added the comment: Are there any numbers on higher-level benchmarks? -- nosy: +pitrou ___ Python tracker ___ ___ Pyt

[issue35724] Check for main interpreter when checking for "main" thread (for signal handling)

2019-01-11 Thread Eric Snow
New submission from Eric Snow : The code in Modules/signalsmodule.c (as well as a few other places in the code) has a concept of a "main" thread. It's the OS thread where Py_Initialize() was called (and likely the process's original thread). For various good reasons, we ensure that signal h

[issue35717] enum.Enum error on sys._getframe(2)

2019-01-11 Thread Ivan Levkivskyi
Change by Ivan Levkivskyi : -- nosy: +levkivskyi ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue35423] Signal handling machinery still relies on "pending calls".

2019-01-11 Thread Eric Snow
Eric Snow added the comment: New changeset fdf282d609fd172d52b59a6f1f062eb701494528 by Eric Snow in branch 'master': bpo-35423: Stop using the "pending calls" machinery for signals. (gh-10972) https://github.com/python/cpython/commit/fdf282d609fd172d52b59a6f1f062eb701494528 --

[issue35724] Check for main interpreter when checking for "main" thread (for signal handling)

2019-01-11 Thread Eric Snow
Change by Eric Snow : -- keywords: +patch pull_requests: +11123 stage: needs patch -> patch review ___ Python tracker ___ ___ Python

[issue35724] Check for main interpreter when checking for "main" thread (for signal handling)

2019-01-11 Thread Eric Snow
Change by Eric Snow : -- keywords: +patch, patch pull_requests: +11123, 11124 stage: needs patch -> patch review ___ Python tracker ___

[issue35712] Make NotImplemented unusable in boolean context

2019-01-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: I consider it a nice feature of Python that all builtin objects, and, AFAIK (and Josh, apparently), all stdlib class instances, have a boolean value. (I am aware of numpy's element-wise behavior.) I hate to give this up. This is part of Python's general a

[issue35423] Signal handling machinery still relies on "pending calls".

2019-01-11 Thread Eric Snow
Change by Eric Snow : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Pyt

[issue35718] Cannot initialize the distutils "force" command-option

2019-01-11 Thread Terry J. Reedy
Change by Terry J. Reedy : -- title: Cannot initialize the "force" command-option -> Cannot initialize the distutils "force" command-option ___ Python tracker ___ ___

[issue35723] Add "time zone index" cache to datetime objects

2019-01-11 Thread Eric N. Vander Weele
Change by Eric N. Vander Weele : -- nosy: +ericvw ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue14802] Python fails to compile with VC11 ARM configuration

2019-01-11 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch, patch pull_requests: +11125, 11126 stage: -> patch review ___ Python tracker ___ ___

[issue14802] Python fails to compile with VC11 ARM configuration

2019-01-11 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +11125 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-l

[issue14802] Python fails to compile with VC11 ARM configuration

2019-01-11 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch, patch, patch, patch pull_requests: +11125, 11126, 11127, 11128 stage: -> patch review ___ Python tracker ___ ___

[issue14802] Python fails to compile with VC11 ARM configuration

2019-01-11 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch, patch, patch pull_requests: +11125, 11126, 11128 stage: -> patch review ___ Python tracker ___ _

[issue34838] Improve arg clinic code generation for cases with type checking

2019-01-11 Thread Ammar Askar
Ammar Askar added the comment: Great job Serhiy, your work on argument clinic has encompassed the previous PR very well. I've updated it for the changes. -- ___ Python tracker __

[issue35725] Using for...in.. generator-iterator

2019-01-11 Thread Yoong Hor Meng
New submission from Yoong Hor Meng : def f(): print('-- Start --') yield 1 print('-- Middle --') yield 2 print('-- Finished --') yield 3 gen = f() for x in gen: print('Another things ...') next(gen) The output: -- Start -- Another things ... -- Middle -- -- Fi

[issue29734] os.stat handle leak

2019-01-11 Thread Eryk Sun
Eryk Sun added the comment: The os__getfinalpathname_impl handle leak and VOLUME_NAME_NT problems were fixed in another issue. However, PR 740 also includes fixes for handle leaks in os.stat, specifically in win32_xstat_impl and get_target_path. -- stage: -> patch review title: nt._

[issue34838] Improve arg clinic code generation for cases with type checking

2019-01-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset cb08a71c5c534f33d9486677534dafb087c30e8c by Serhiy Storchaka (Ammar Askar) in branch 'master': bpo-34838: Use subclass_of for math.dist. (GH-9659) https://github.com/python/cpython/commit/cb08a71c5c534f33d9486677534dafb087c30e8c --

[issue35582] Argument Clinic: inline parsing code for functions with only positional parameters

2019-01-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 793426687509be24a42663a27e568cc92dcc07f6 by Serhiy Storchaka in branch 'master': bpo-35582: Inline arguments tuple unpacking in handwritten code. (GH-11524) https://github.com/python/cpython/commit/793426687509be24a42663a27e568cc92dcc07f6 --

[issue35719] Optimize multi-argument math functions

2019-01-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset d0d3e99120b19a4b800f0f381b2807c93aeecf0e by Serhiy Storchaka in branch 'master': bpo-35719: Optimize multi-argument math functions. (GH-11527) https://github.com/python/cpython/commit/d0d3e99120b19a4b800f0f381b2807c93aeecf0e --

[issue35719] Optimize multi-argument math functions

2019-01-11 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue35725] Using for...in.. generator-iterator

2019-01-11 Thread Steven D'Aprano
Steven D'Aprano added the comment: This is not a bug, it is standard behaviour for all iterators, not just generators. For loops work by calling next() on the iterator object, if you call next() on the same object inside the loop, that has the effect of advancing the for loop. You say: > I

[issue35582] Argument Clinic: inline parsing code for functions with only positional parameters

2019-01-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I do not expect significant changes in higher-level benchmarks. But if there are some, they can be shown on speed.python.org. I this all work on this stage is finished. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed

[issue34838] Improve arg clinic code generation for cases with type checking

2019-01-11 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-b

[issue35725] Using for...in.. generator-iterator

2019-01-11 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I was also typing a similar reply and Steve explained it better :) Just to add there is a note on implicit next call on a for loop in the documentation. https://docs.python.org/3/reference/expressions.html#generator.__next__ > Starts the execution o

[issue33817] PyString_FromFormatV() fails to build empty strings

2019-01-11 Thread miss-islington
Change by miss-islington : -- pull_requests: +11129 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue33817] PyString_FromFormatV() fails to build empty strings

2019-01-11 Thread miss-islington
Change by miss-islington : -- pull_requests: +11129, 11130 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue33817] PyString_FromFormatV() fails to build empty strings

2019-01-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 44cc4822bb3799858201e61294c5863f93ec12e2 by Serhiy Storchaka in branch 'master': bpo-33817: Fix _PyBytes_Resize() for empty bytes object. (GH-11516) https://github.com/python/cpython/commit/44cc4822bb3799858201e61294c5863f93ec12e2 --

[issue33817] PyString_FromFormatV() fails to build empty strings

2019-01-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 08a81df05004147ee174ece645679576ab867860 by Serhiy Storchaka in branch '2.7': bpo-33817: Fix _PyString_Resize() and _PyUnicode_Resize() for empty strings. (GH-11515) https://github.com/python/cpython/commit/08a81df05004147ee174ece645679576ab8

[issue33817] PyString_FromFormatV() fails to build empty strings

2019-01-11 Thread miss-islington
miss-islington added the comment: New changeset d39c19255910b9dce08c595f511597e98b09e91f by Miss Islington (bot) in branch '3.7': bpo-33817: Fix _PyBytes_Resize() for empty bytes object. (GH-11516) https://github.com/python/cpython/commit/d39c19255910b9dce08c595f511597e98b09e91f --

[issue35494] Inaccurate error message for f-string

2019-01-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 58159ef856846d0235e0779aeb6013d70499570d by Serhiy Storchaka in branch 'master': bpo-35494: Improve syntax error messages for unbalanced parentheses in f-string. (GH-11161) https://github.com/python/cpython/commit/58159ef856846d0235e0779aeb60

[issue35494] Inaccurate error message for f-string

2019-01-11 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue33817] PyString_FromFormatV() fails to build empty strings

2019-01-11 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

<    1   2