[issue42150] Buffer overflow in bad_single_statement (Parser/pegen.c)

2020-10-25 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Check the errors in this new builder I have prepared: https://buildbot.python.org/all/#/builders/582/builds/200/steps/5/logs/stdio -- stage: patch review -> ___ Python tracker

[issue42150] Buffer overflow in bad_single_statement (Parser/pegen.c)

2020-10-25 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: The problem seems to be that when we do const char *cur = strchr(p->tok->buf, '\n'); ... *(cur - 1) == '\\' we don't check if "cur" is before at p->tok->buf (and therefore we cannot check the previous char) --

[issue33962] IDLE: use ttk.spinbox with configdialog

2020-10-25 Thread Mark Roseman
Mark Roseman added the comment: Just as a side note for Terry and anyone else testing on macOS... the recent updates in Tk have smoothed out many of the appearance issues for the classic widgets. See the attached screen shot tkversions.png comparing 8.6.9 with the current trunk of the Tk

[issue5149] syntactic sugar: type coercion on pointer assignment

2020-10-25 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.10 -Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42150] Buffer overflow in bad_single_statement (Parser/pegen.c)

2020-10-25 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 2.0 -> 3.0 pull_requests: +21896 pull_request: https://github.com/python/cpython/pull/22979 ___ Python tracker

[issue42150] Buffer overflow in bad_single_statement (Parser/pegen.c)

2020-10-25 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue42150] Buffer overflow in bad_single_statement (Parser/pegen.c)

2020-10-25 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset e68c67805e6a4c4ec80bea64be0e8373cc02d322 by Pablo Galindo in branch 'master': bpo-42150: Avoid buffer overflow in the new parser (GH-22978) https://github.com/python/cpython/commit/e68c67805e6a4c4ec80bea64be0e8373cc02d322 --

[issue42146] subprocess.Popen() leaks cwd in case of uid/gid overflow

2020-10-25 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +21897 pull_request: https://github.com/python/cpython/pull/22980 ___ Python tracker

[issue42146] subprocess.Popen() leaks cwd in case of uid/gid overflow

2020-10-25 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset c0590c0033e86f98cdf5f2ca6898656f98ab4053 by Alexey Izbyshev in branch 'master': bpo-42146: Fix memory leak in subprocess.Popen() in case of uid/gid overflow (GH-22966)

[issue40060] socket.TCP_NOTSENT_LOWAT is missing in official macOS builds

2020-10-25 Thread Dima Tisnek
Dima Tisnek added the comment: Indeed, this issue can be closed, when the mac build update is confirmed to be included in a specific upcoming Python version. -- ___ Python tracker

[issue42147] Micro optimization for longrange iteration if step is 1

2020-10-25 Thread Dong-hee Na
Dong-hee Na added the comment: Sorry for the offtopic @methane Looks like Inada san is the right expression. ;) > But China and Korea don't reverse name. This is a very intereting fact, the national system of Korea are using surname-given name order or printing with a distinc section. A

[issue42090] zipfile.Path.joinpath API inconsistent with pathlib.Path.joinpath

2020-10-25 Thread Jason R. Coombs
Change by Jason R. Coombs : -- stage: patch review -> commit review ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue36207] robotsparser deny all with some rules

2020-10-25 Thread Nicolas
Nicolas added the comment: Sorry, I meant https://www.meridigital.com -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue42148] floating point representation issues

2020-10-25 Thread Steven D'Aprano
Steven D'Aprano added the comment: It looks like Python is correct and the other languages may be just truncating the output. In the Lua interpreter: > =277*0.1 27.7 > = 277*0.1 == 27.7 false Perl: $ perl -e "use feature qw(say); say 277*0.1" 27.7 $ perl -e "use feature qw(say); if

[issue42146] subprocess.Popen() leaks cwd in case of uid/gid overflow

2020-10-25 Thread miss-islington
miss-islington added the comment: New changeset c12afa92b0db6f017e479b41f95d75bac7b59850 by Miss Skeleton (bot) in branch '3.9': [3.9] bpo-42146: Fix memory leak in subprocess.Popen() in case of uid/gid overflow (GH-22966) (GH-22980)

[issue12737] str.title() is overzealous by upcasing combining marks inappropriately

2020-10-25 Thread Guido van Rossum
Guido van Rossum added the comment: Are you sure? Running Ezio's titletest.py, I get this output (note that the UCD major version is in the double digits so the test for that misfires :-). titletest.py: Please set your PYTHONIOENCODING envariable to utf8 WARNING: Your old UCD is out of date,

[issue42147] Micro optimization for longrange iteration if step is 1

2020-10-25 Thread Inada Naoki
Inada Naoki added the comment: Oh, I didn't know that. Thank you. I thought Chinese and Korean use surname-given name order because of "Xí Jìnpíng", "Moon Jae-in", and "Kim Jong-un". Japanese previous P.M. used "Shinzo Abe" English notation, but changed it to "Abe Shinzo" recently.

[issue42141] Speedup various dict inits

2020-10-25 Thread Marco Sulla
Marco Sulla added the comment: Well, after a second thought I think you're right, there's no significant advantage and too much duplicated code. -- stage: -> resolved status: open -> closed ___ Python tracker

[issue12930] reindent.py inserts spaces in multiline literals

2020-10-25 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.10, Python 3.8, Python 3.9 -Python 2.7, Python 3.2, Python 3.3, Python 3.4 ___ Python tracker ___

[issue42147] Micro optimization for longrange iteration if step is 1

2020-10-25 Thread Inada Naoki
Inada Naoki added the comment: I agree that 1<<1000 is artificial example. But isn't this patch affects more regular patterns like [[] for _ in range(1)]? If we reject this, shouldn't we revert GH-22479 too? I believe iterating range object is much more common use case than range.index.

[issue35753] Importing call from unittest.mock directly causes ValueError

2020-10-25 Thread Alfred Perlstein
Change by Alfred Perlstein : -- pull_requests: +21898 pull_request: https://github.com/python/cpython/pull/22981 ___ Python tracker ___

<    1   2