[issue41818] Lib/pty.py major revision

2020-10-25 Thread Soumendra Ganguly
Change by Soumendra Ganguly : -- keywords: +patch pull_requests: +21878 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22962 ___ Python tracker

[issue26228] pty.spawn hangs on FreeBSD 9.3, 10.x, 12.1

2020-10-25 Thread Soumendra Ganguly
Change by Soumendra Ganguly : -- pull_requests: +21879 pull_request: https://github.com/python/cpython/pull/22962 ___ Python tracker ___

[issue35823] Use vfork() in subprocess on Linux

2020-10-25 Thread Gregory P. Smith
Gregory P. Smith added the comment: Performance improvement measured on a 1.4Ghz quad aarch64 A57 (nvidia jetson nano): #define VFORK_USABLE 1 test_subprocess: 36.5 seconds #undef VFORK_USABLE test_subprocess: 45 seconds Nice. I really didn't expect a 20% speedup on its testsuite alone!

[issue38233] datetime.datetime.fromtimestamp have different behaviour on windows and mac

2020-10-25 Thread Ronald Oussoren
Ronald Oussoren added the comment: Can this issue be closed? Fixing #36439 would also fix this issue. -- ___ Python tracker ___

[issue41214] -O0: Segmentation fault in _PyArg_UnpackStack

2020-10-25 Thread LE GARREC Vincent
LE GARREC Vincent added the comment: I still have the problem with python 3.7.9 but not with python 3.8.6. Since I migrated my system to python 3.8, it's not a problem anymore. I still have python 3.7 installed so if you want, I still can do some tests. -- nosy: +bansan85

[issue41607] pdb - Clickable path to breakpoints

2020-10-25 Thread Artur Tamborski
Change by Artur Tamborski : -- keywords: +patch nosy: +arturtamborski nosy_count: 2.0 -> 3.0 pull_requests: +21881 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22964 ___ Python tracker

[issue42120] Depreciated MACRO of copysign for MSVC

2020-10-25 Thread Ronald Oussoren
Ronald Oussoren added the comment: The standard is for copysign to work on doubles, with copysignf as the same functionality for floats. https://en.cppreference.com/w/c/numeric/math/copysign -- nosy: +ronaldoussoren ___ Python tracker

[issue41919] Modify test_codecs to use the new codecs.unregister() function

2020-10-25 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: AS this is masking other issues in the build bots, we need to revert the commit unless is fixed in 24 hours per the buildbot workflow -- ___ Python tracker

[issue41919] Modify test_codecs to use the new codecs.unregister() function

2020-10-25 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Commit c9f696cb96d1c362d5cad871f61da520572d9b08 introduced a reference leak in the test suite. See https://bugs.python.org/issue42145: c9f696cb96d1c362d5cad871f61da520572d9b08 is the first bad commit commit c9f696cb96d1c362d5cad871f61da520572d9b08

[issue42145] test_io is leaking references

2020-10-25 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Commit c9f696cb96d1c362d5cad871f61da520572d9b08 introduced a reference leak in the test suite. See https://bugs.python.org/issue42145: c9f696cb96d1c362d5cad871f61da520572d9b08 is the first bad commit commit c9f696cb96d1c362d5cad871f61da520572d9b08

[issue41919] Modify test_codecs to use the new codecs.unregister() function

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

[issue41919] Modify test_codecs to use the new codecs.unregister() function

2020-10-25 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +21877 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/22961 ___ Python tracker ___

[issue41052] Opt out serialization/deserialization for heap type

2020-10-25 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +21880 pull_request: https://github.com/python/cpython/pull/22963 ___ Python tracker ___

[issue34597] Python needs to check existence of functions at runtime for targeting older macOS platforms

2020-10-25 Thread Ronald Oussoren
Ronald Oussoren added the comment: The active PR in bpo-41100 will fix this issue as well. -- dependencies: +Build failure on macOS 11 (beta) ___ Python tracker ___

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

2020-10-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Sorry, but I do not think it is worth. If there are any issues with multiplying by 1, it may be worth to optimize multiplication of integers in general. But iterating range(1 << 1000, (1 << 1000) + 100) looks a pretty artificial example. -- nosy:

[issue42148] floating point representation issues

2020-10-25 Thread Andrea Tuccia
New submission from Andrea Tuccia : I'm noticing some floating point representation precision issues that occurs on all versions and platforms: >>> 277*0.1 27.703 >>> 1.2-1.0 0.19996 >>> import numpy as np >>> np.double(277*0.1) 27.703 >>>

[issue42145] test_io is leaking references

2020-10-25 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +shihai1991 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2020-10-25 Thread Alexey Izbyshev
Change by Alexey Izbyshev : -- keywords: +patch pull_requests: +21882 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22966 ___ Python tracker ___

[issue42144] A missing "goto" in the _ssl module!

2020-10-25 Thread miss-islington
miss-islington added the comment: New changeset c32f2976b8f4034724c3270397aa16f38daf470f by Zackery Spytz in branch 'master': bpo-42144: Add a missing "goto error;" in the _ssl module (GH-22959) https://github.com/python/cpython/commit/c32f2976b8f4034724c3270397aa16f38daf470f --

[issue42144] A missing "goto" in the _ssl module!

2020-10-25 Thread miss-islington
Change by miss-islington : -- pull_requests: +21892 pull_request: https://github.com/python/cpython/pull/22975 ___ Python tracker ___

[issue42144] A missing "goto" in the _ssl module!

2020-10-25 Thread miss-islington
Change by miss-islington : -- pull_requests: +21891 pull_request: https://github.com/python/cpython/pull/22974 ___ Python tracker ___

[issue42141] Speedup various dict inits

2020-10-25 Thread Marco Sulla
Marco Sulla added the comment: Note that this time I've no slowdown in the macro bench, since I used normal builds, not optimized ones. I suppose an optimized build will show slowdown because the new functions are not in the test battery. -- ___

[issue4489] shutil.rmtree is vulnerable to a symlink attack

2020-10-25 Thread daniel hahler
Change by daniel hahler : -- nosy: +blueyed nosy_count: 18.0 -> 19.0 pull_requests: +21884 pull_request: https://github.com/python/cpython/pull/22968 ___ Python tracker ___

[issue39108] random needs doc for "gauss" versus "normalvariate"

2020-10-25 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 3cde3788b68bce7deee1e6d31e265bbfce337731 by Raymond Hettinger in branch 'master': bpo-39108: Document threading issues for random.gauss() (GH-22928) https://github.com/python/cpython/commit/3cde3788b68bce7deee1e6d31e265bbfce337731

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

2020-10-25 Thread Dong-hee Na
Dong-hee Na added the comment: if somebody try to sum very large value with range. sum(range(1 << 1000, (1 << 1000) + 100)) it can be affected by this patch. -- ___ Python tracker

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

2020-10-25 Thread Jason R. Coombs
Jason R. Coombs added the comment: This issue is fixed in zipp 3.4.0. -- assignee: -> jaraco stage: -> backport needed ___ Python tracker ___

[issue41919] Modify test_codecs to use the new codecs.unregister() function

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

[issue41919] Modify test_codecs to use the new codecs.unregister() function

2020-10-25 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 14cdc215aa952d280c18626005d3aff967901d92 by Hai Shi in branch 'master': bpo-41919: Avoid resource leak in test_io (GH-22973) https://github.com/python/cpython/commit/14cdc215aa952d280c18626005d3aff967901d92 --

[issue42145] test_io is leaking references

2020-10-25 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Fixed by https://github.com/python/cpython/pull/22973 -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker

[issue42145] test_io is leaking references

2020-10-25 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Thanks for the quick fix, hai shi -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue42141] Speedup various dict inits

2020-10-25 Thread Marco Sulla
Marco Sulla added the comment: I'm quite sure I not invented the wheel :) but I think it's a good improvement: | pathlib | 35.8 ms | 35.1 ms| 1.02x faster | Significant (t=13.21) | | scimark_monte_carlo | 176 ms | 172 ms | 1.02x

[issue38233] datetime.datetime.fromtimestamp have different behaviour on windows and mac

2020-10-25 Thread Eryk Sun
Change by Eryk Sun : -- resolution: -> duplicate status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue39108] random needs doc for "gauss" versus "normalvariate"

2020-10-25 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset af891a962b62268d76ace0d4768ab0e1934a2cd1 by Miss Skeleton (bot) in branch '3.9': bpo-39108: Document threading issues for random.gauss() (GH-22928) (GH-22972) https://github.com/python/cpython/commit/af891a962b62268d76ace0d4768ab0e1934a2cd1

[issue33962] IDLE: use ttk.spinbox with configdialog

2020-10-25 Thread Mark Roseman
Mark Roseman added the comment: Whoops, sorry... there's a "readonly" state flag that disables direct editing of the entry (like with combobox) and just allows manipulation of the arrows. I've updated the PR to set that. I've also changed it so that the contents of the entry part isn't

[issue42144] A missing "goto" in the _ssl module!

2020-10-25 Thread miss-islington
miss-islington added the comment: New changeset 83c86cf54b36a7325f615f5adf22b28e48f0e72d by Miss Skeleton (bot) in branch '3.9': bpo-42144: Add a missing "goto error;" in the _ssl module (GH-22959) https://github.com/python/cpython/commit/83c86cf54b36a7325f615f5adf22b28e48f0e72d --

[issue42141] Speedup various dict inits

2020-10-25 Thread Marco Sulla
Marco Sulla added the comment: The fact is that, IMHO, PGO will "false" the results, since it's quite improbable that in the test battery there's a test of creation of a dict from another dict with an hole. It seems to me that the comparison between the normal builds are more significant.

[issue7175] Define a standard location and API for configuration files

2020-10-25 Thread Ronald Oussoren
Change by Ronald Oussoren : -- nosy: -ronaldoussoren ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41052] Opt out serialization/deserialization for heap type

2020-10-25 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue15872] shutil.rmtree(..., ignore_errors=True) doesn't ignore all errors

2020-10-25 Thread daniel hahler
Change by daniel hahler : -- nosy: +blueyed nosy_count: 11.0 -> 12.0 pull_requests: +21883 pull_request: https://github.com/python/cpython/pull/22967 ___ Python tracker ___

[issue42141] Speedup various dict inits

2020-10-25 Thread Inada Naoki
Inada Naoki added the comment: I run pyperformance=1.0.0 for your speedup_dictinit branch (7df3b9c) and master branch, with PGO+LTO build. ``` $ ./python -m pyperf compare_to master-opt.json dictinit.json -G --min-speed=1 Slower (22): - unpack_sequence: 62.7 ns +- 0.7 ns -> 70.3 ns +- 0.5

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

2020-10-25 Thread Alexey Izbyshev
Change by Alexey Izbyshev : -- pull_requests: +21885 pull_request: https://github.com/python/cpython/pull/22970 ___ Python tracker ___

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

2020-10-25 Thread Alexey Izbyshev
Change by Alexey Izbyshev : -- type: behavior -> resource usage ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue41919] Modify test_codecs to use the new codecs.unregister() function

2020-10-25 Thread hai shi
hai shi added the comment: > AS this is masking other issues in the build bots, we need to revert the > commit unless is fixed in 24 hours per the buildbot workflow Thanks, Pablo. I checked that only test_io.py have resource leak. I create PR-22973, pls take a look if you have free time,

[issue41919] Modify test_codecs to use the new codecs.unregister() function

2020-10-25 Thread hai shi
Change by hai shi : -- pull_requests: +21888 pull_request: https://github.com/python/cpython/pull/22973 ___ Python tracker ___ ___

[issue39108] random needs doc for "gauss" versus "normalvariate"

2020-10-25 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue42130] AsyncIO's wait_for can hide cancellation in a rare race condition

2020-10-25 Thread Taras Voinarovskyi
Taras Voinarovskyi added the comment: Hi Chris, Yes, I do believe that is the respectful change, if we look the CancelledError is not checked to be external or originate from the timer. Best regards, Taras Voinarovskyi -- ___ Python tracker

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

2020-10-25 Thread Alexey Izbyshev
Change by Alexey Izbyshev : -- keywords: +patch stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list

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

2020-10-25 Thread Dong-hee Na
Change by Dong-hee Na : -- keywords: +patch pull_requests: +21886 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22971 ___ Python tracker ___

[issue39108] random needs doc for "gauss" versus "normalvariate"

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

[issue37776] [subinterpreters] Test Py_Finalize() from a subinterpreter

2020-10-25 Thread Lewis Gaul
Change by Lewis Gaul : -- keywords: +patch pull_requests: +21890 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/17575 ___ Python tracker

[issue41052] Opt out serialization/deserialization for heap type

2020-10-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 0aaecb30483e98fc29c1f4253967d05da092f0c5 by Serhiy Storchaka in branch '3.9': [3.9] bpo-41052: Fix pickling heap types implemented in C with protocols 0 and 1 (GH-22870). (GH-22963)

[issue38865] [subinterpreters] Can Py_Finalize() be called if the current interpreter is not the main interpreter?

2020-10-25 Thread Lewis Gaul
Change by Lewis Gaul : -- pull_requests: +21889 pull_request: https://github.com/python/cpython/pull/17575 ___ 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: s/ I approach as same case that step=1 is quite a lot usecase until user designate step value. /My assumtion is that step=1 is quite often usecase until user designate step value. -- ___ Python tracker

[issue42145] test_io is leaking references

2020-10-25 Thread hai shi
hai shi added the comment: I created a possible fix PR: PR-22973 -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue42148] floating point representation issues

2020-10-25 Thread Eric V. Smith
Eric V. Smith added the comment: This isn't a bug. It's due to the base 2 representation of floating point numbers. See for example: See https://docs.python.org/3/tutorial/floatingpoint.html It's possible, depending on your use case, you might want to use the decimal module. But that has

[issue42144] A missing "goto" in the _ssl module!

2020-10-25 Thread miss-islington
miss-islington added the comment: New changeset 8e980ecfb7b42063ed41d665288aff69f0ed7fdc by Miss Skeleton (bot) in branch '3.8': bpo-42144: Add a missing "goto error;" in the _ssl module (GH-22959) https://github.com/python/cpython/commit/8e980ecfb7b42063ed41d665288aff69f0ed7fdc --

[issue41490] Update bundled pip to 20.2.1 and setuptools to 49.2.1

2020-10-25 Thread Jason R. Coombs
Jason R. Coombs added the comment: New changeset df8d4c83a6e1727e766191896aeabde886979587 by Jason R. Coombs in branch 'master': bpo-41490: ``path`` and ``contents`` to aggressively close handles (#22915) https://github.com/python/cpython/commit/df8d4c83a6e1727e766191896aeabde886979587

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

2020-10-25 Thread Alexey Izbyshev
New submission from Alexey Izbyshev : The following test demonstrates the leak: ``` import subprocess cwd = 'x' * 10**6 for __ in range(100): try: subprocess.call(['/xxx'], cwd=cwd, user=2**64) except OverflowError: pass from resource import *

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

2020-10-25 Thread Alexey Izbyshev
Alexey Izbyshev added the comment: I've submitted both PRs. Regarding PR 22970: * I made it a draft since we'd probably want to fix the leak first, but then it will have to be rebased. * It fixes a bug with _enable_gc(): if it failed after fork(), we'd raise OSError instead.

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

2020-10-25 Thread Dong-hee Na
New submission from Dong-hee Na : This is a similar case with https://bugs.python.org/issue41902 A quite possible usecase when the user use range with big number ./python -m pyperf compare_to longrange_master.json longrange_opt.json Mean +- std dev: [longrange_master] 6.45 us +- 0.09 us ->

[issue24427] subclass of multiprocessing Connection segfault upon attribute acces

2020-10-25 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> out of date stage: needs patch -> resolved status: open -> closed ___ 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: At bpo-41092, we decide not to optimize mulitply operation itself. I approach as same case that step=1 is quite a lot usecase until user designate step value. If range with longobject is not that much use case, I can agree with your opinion --

[issue32122] Improve -x option documentation

2020-10-25 Thread Inada Naoki
Change by Inada Naoki : -- keywords: +newcomer friendly versions: +Python 3.10 -Python 2.7, Python 3.6, Python 3.7 ___ Python tracker ___

[issue30681] email.utils.parsedate_to_datetime() should return None when date cannot be parsed

2020-10-25 Thread Ned Deily
Change by Ned Deily : -- nosy: -ned.deily versions: -Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue41662] Bugs in binding parameters in sqlite3

2020-10-25 Thread Inada Naoki
Inada Naoki added the comment: New changeset a053a7ecfef006b834a9957468fa461dafb332db by Miss Skeleton (bot) in branch '3.8': bpo-41662: Fix bugs in binding parameters in sqlite3 (GH-21998) https://github.com/python/cpython/commit/a053a7ecfef006b834a9957468fa461dafb332db -- nosy:

[issue41100] Build failure on macOS 11 (beta)

2020-10-25 Thread Ronald Oussoren
Change by Ronald Oussoren : -- pull_requests: +21899 pull_request: https://github.com/python/cpython/pull/21115 ___ Python tracker ___

[issue30181] Correct the parsing of a test case docstring.

2020-10-25 Thread Chris Jerdonek
Chris Jerdonek added the comment: I'm closing this as a duplicate of issue 39450, which has been resolved. -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> unittest TestCase shortDescription does not strip whitespace

[issue42140] asyncio.wait function creates futures set two times

2020-10-25 Thread Chris Jerdonek
Chris Jerdonek added the comment: Are you suggesting this is a bug, or is it just a suggested code cleanup? I ask because the docs suggest that a set should be passed: https://docs.python.org/3/library/asyncio-task.html#asyncio.wait And the docstring says it should be a sequence:

[issue12832] The documentation for the print function should explain/point to how to control the sys.stdout encoding

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

[issue42148] floating point representation issues

2020-10-25 Thread Eric V. Smith
Eric V. Smith added the comment: Thanks for double-checking the other languages, Steven. -- ___ Python tracker ___ ___

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

2020-10-25 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: My particular opinion is that I would advise against having more branching, especially for code that is rare: it augments the possibilities of branch mispredictions, the changes of untested code paths, and the possibilities of unknown interactions.

[issue42151] Pure Python xml.etree.ElementTree is missing default attribute values

2020-10-25 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +eli.bendersky, scoder, serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list

[issue42140] asyncio.wait function creates futures set two times

2020-10-25 Thread Denis S. Otkidach
Denis S. Otkidach added the comment: The current error message is way too cryptic anyway. And restricting it to the set type only, as in docs, will certainly break a lot of code (passing a list is quite common). -- ___ Python tracker

[issue33557] Windows multiprocessing doesn't propagate tabcheck to children

2020-10-25 Thread Inada Naoki
Inada Naoki added the comment: Python 2.7 became EOL. -- nosy: +methane resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker ___

[issue42151] Pure Python xml.etree.ElementTree is missing default attribute values

2020-10-25 Thread Felix C. Stegerman
New submission from Felix C. Stegerman : I originally reported this as a bug in PyPy, but it turns out that CPython's C implementation (_elementtree) behaves differently than the pure Python version (b/c it sets specified_attributes = 1). PyPy issue with example code:

[issue42151] Pure Python xml.etree.ElementTree is missing default attribute values

2020-10-25 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +corona10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39871] math.copysign raises SystemError with non-float x and custom y

2020-10-25 Thread Inada Naoki
Inada Naoki added the comment: New changeset f6255a2ccb55a63194caf698f471c803c08be359 by Zackery Spytz in branch '3.8': bpo-39871: Fix an error in a news entry (GH-21749) https://github.com/python/cpython/commit/f6255a2ccb55a63194caf698f471c803c08be359 --

[issue42043] zipfile.Path should support inheritance

2020-10-25 Thread Jason R. Coombs
Jason R. Coombs added the comment: New changeset d1a0a960ee493262fb95a0f5b795b5b6d75cecb8 by Jason R. Coombs in branch 'master': bpo-42043: Add support for zipfile.Path subclasses (#22716) https://github.com/python/cpython/commit/d1a0a960ee493262fb95a0f5b795b5b6d75cecb8 --

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

2020-10-25 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I concur with Serhiy -- nosy: +pablogsal ___ Python tracker ___ ___ Python-bugs-list

[issue2679] email.feedparser regex duplicate

2020-10-25 Thread Irit Katriel
Change by Irit Katriel : -- type: behavior -> versions: +Python 3.10, Python 3.8, Python 3.9 -Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3 ___ Python tracker

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

2020-10-25 Thread miss-islington
miss-islington added the comment: New changeset 0b290dd2171e745d94f48298cafb2327eb2de17c by Miss Skeleton (bot) in branch '3.9': bpo-42150: Avoid buffer overflow in the new parser (GH-22978) https://github.com/python/cpython/commit/0b290dd2171e745d94f48298cafb2327eb2de17c --

[issue12930] reindent.py inserts spaces in multiline literals

2020-10-25 Thread Dima Tisnek
Dima Tisnek added the comment: Given the trajectory of this bug, would it be easier to remove `reindent.py` from cpython code base entirely? -- ___ 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: @pablogsal, @serhiy.storchaka > I would advise against having more branching, especially for code that is > rare: About bpo-41902, I believe those patches affect all range objects which is created with step is one . I believe the usage of creation of range

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

2020-10-25 Thread Inada Naoki
Inada Naoki added the comment: > On the other hand, GH-22479 is affect to all index API() whether the number > is large or small. Then, no need to revert GH-22479 for consistency. Thanks. > p.s by the way, Naoki is the last name or first name? ;) It is difficult to say what is first name.

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

2020-10-25 Thread Jason R. Coombs
Change by Jason R. Coombs : -- keywords: +patch pull_requests: +21893 stage: backport needed -> patch review pull_request: https://github.com/python/cpython/pull/22976 ___ Python tracker

[issue42149] Python 'make test' failed inside ssh+tmux

2020-10-25 Thread Kostiantyn Mashukov
Kostiantyn Mashukov added the comment: Does it mean that running python script inside ssh+tmux session could fail if it uses functionality that fails those tests? -- ___ Python tracker

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

2020-10-25 Thread Pablo Galindo Salgado
New submission from Pablo Galindo Salgado : Building Python with the address sanitizer and executing ./python -m test test_repl -v shows this: === ==26216==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x6023990f at pc

[issue36207] robotsparser deny all with some rules

2020-10-25 Thread Nicolas
Nicolas added the comment: Seems like we have the same issue with http://meridigital.com/robots.txt -- nosy: +nico702 -matthieuhemea ___ Python tracker ___

[issue4246] doc: execution model - clear and complete example in documentation

2020-10-25 Thread Irit Katriel
Change by Irit Katriel : -- title: execution model - clear and complete example in documentation -> doc: execution model - clear and complete example in documentation versions: +Python 3.10, Python 3.9 -Python 2.7, Python 3.2, Python 3.3 ___ Python

[issue1490929] urllib.retrieve's reporthook called with non-helpful value

2020-10-25 Thread Irit Katriel
Irit Katriel added the comment: The code in urllib is different now but I see that a test very similar to the one in the patch exists, so was this fixed? https://github.com/python/cpython/blob/e68c67805e6a4c4ec80bea64be0e8373cc02d322/Lib/test/test_urllib.py#L813 -- nosy:

[issue42148] floating point representation issues

2020-10-25 Thread Steven D'Aprano
Steven D'Aprano added the comment: Eric I would normally agree with you but the only thing which gives me pause is the statement that this doesn't occur with C, Lua and Perl. That alone doesn't mean much. Different interpreters can use different algorithms for printing floats, Python

[issue41916] cxx pthread check is not overrideable

2020-10-25 Thread Dustin Spicuzza
Dustin Spicuzza added the comment: FWIW, I've been using the patch in my PR and it seems to work. -- ___ Python tracker ___ ___

[issue42144] A missing "goto" in the _ssl module!

2020-10-25 Thread Christian Heimes
Christian Heimes added the comment: Thanks, excellent finding. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed type: -> behavior ___ Python tracker

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

2020-10-25 Thread Irit Katriel
Irit Katriel added the comment: Of the examples given two seem ok now, but the Istanbul one is still wrong: >>> "déme un café".title() 'Déme Un Café' >>> "ᾲ στο διάολο".title() 'Ὰͅ Στο Διάολο' >>> >>> "i̇stanbul".title() 'İStanbul' -- nosy: +iritkatriel versions: +Python 3.10,

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

2020-10-25 Thread Inada Naoki
Inada Naoki added the comment: I had not noticed that there are rangeobject and longrangeobject. It doesn't affect to range(1) definitely. -- ___ 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: @methane To be more precise, [[] for _ in range(1)] will not effort this patch because range(1) does not create longrangeiter object. This patch will affect to if the number is veeery large. On the other hand, GH-22479 is affect to all index API()

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

2020-10-25 Thread Dong-hee Na
Dong-hee Na added the comment: s / will not effort / will not be affected -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue42149] Python 'make test' failed inside ssh+tmux

2020-10-25 Thread Kostiantyn Mashukov
New submission from Kostiantyn Mashukov : Short version: When building python from source code on linux (Debian10 amd64) inside ssh+tmux session 'make test' ends up with some tests failed. Long version: Build environment - freshly installed Debian10-amd64 os. Added build dependency

[issue27495] Pretty printing sorting for set and frozenset instances

2020-10-25 Thread Ben Bonenfant
Change by Ben Bonenfant : -- nosy: +bbonenfant nosy_count: 6.0 -> 7.0 pull_requests: +21894 pull_request: https://github.com/python/cpython/pull/22977 ___ Python tracker ___

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

2020-10-25 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +21895 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22978 ___ Python tracker

  1   2   >