[issue26680] Incorporating float.is_integer into Decimal

2020-10-06 Thread Raymond Hettinger
Change by Raymond Hettinger : -- pull_requests: +21577 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/22584 ___ Python tracker ___

[issue41961] Windows install failure "could not set file security"

2020-10-06 Thread Eryk Sun
Eryk Sun added the comment: > Anyone else know of any possible causes for this? The installer service runs as SYSTEM, with an access token at system integrity level that has full privileges and the administrators group enabled. Nothing in the file security should prevent the service from

[issue41962] Make threading._register_atexit public?

2020-10-06 Thread Ben Darnell
New submission from Ben Darnell : I'm dealing with a subtle deadlock involving concurrent.futures.ThreadPoolExecutor, and my solution that worked in Python 3.8 broke with 3.9. I'm running some long-running (possibly infinite) tasks in the thread pool, and I cancel them in an `atexit`

[issue36534] tarfile: handling Windows (path) illegal characters in archive member names

2020-10-06 Thread Eryk Sun
Eryk Sun added the comment: > This issue is about tarfile. Maybe create another issue to enhance > the pathlib module? IIRC there's already an open issue for that. But in case anyone were to look to pathlib as an example of what should be reserved, I wanted to highlight here how its

[issue41961] Windows install failure "could not set file security"

2020-10-06 Thread Steve Dower
Steve Dower added the comment: Suspicious points: * error 0 means success, so it shouldn't be popping up an error * 'Installer\' is a directory, not a file * %AppData%\Microsoft\Installer is normally readable by Everyone, but only writable by Administrators, even in the user's directory So I

[issue41961] Windows install failure "could not set file security"

2020-10-06 Thread Steve Dower
New submission from Steve Dower : Original report: https://twitter.com/Steve_Casselman/status/1313564671652159488?s=20 A user received MSI error 1926 in a popup dialog, text reading: > Could not set file security for file > 'C:\Users\sc\AppData\Roaming\Microsoft\Installer\'. Error: 0.

[issue36534] tarfile: handling Windows (path) illegal characters in archive member names

2020-10-06 Thread STINNER Victor
STINNER Victor added the comment: > pathlib._WindowsFlavour.is_reserved() fails to reserve names (...) This issue is about tarfile. Maybe create another issue to enhance the pathlib module? -- ___ Python tracker

[issue38605] [typing] PEP 563: Postponed evaluation of annotations: enable it by default in Python 3.10

2020-10-06 Thread STINNER Victor
STINNER Victor added the comment: Good! I'm happy to see yet another "Python 4.0 change" going away :-) Let's make "Python 4.0" as compatible as possible ;-) -- ___ Python tracker

[issue41960] Add globalns and localns to the inspect.signature and inspect.Signature.from_callable

2020-10-06 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- keywords: +patch pull_requests: +21576 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22583 ___ Python tracker ___

[issue26680] Incorporating float.is_integer into Decimal

2020-10-06 Thread Raymond Hettinger
Change by Raymond Hettinger : -- title: Incorporating float.is_integer into the numeric tower and Decimal -> Incorporating float.is_integer into Decimal ___ Python tracker

[issue26680] Incorporating float.is_integer into the numeric tower and Decimal

2020-10-06 Thread Raymond Hettinger
Raymond Hettinger added the comment: No worries Robert. It's all part of the process :-) If it's okay with you. I would like to revert the incorrectly applied PR and then you can build a fresh, clean patch. Does that work for you? -- ___

[issue41960] Add globalns and localns to the inspect.signature and inspect.Signature.from_callable

2020-10-06 Thread Batuhan Taskaya
New submission from Batuhan Taskaya : To resolve annotations in local namespaces (and possibly in different contexts), inspect.signature can take globalns and localns parameters. I'm not inclined to add these into the getfullargspec, but I'd appreciate any comments about whether it is a good

[issue41957] IDLE does not Transform Tabs into Spaces in Interactive Mode

2020-10-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: #37903 is the first stage of a serious refactor -- resolution: -> duplicate stage: -> resolved status: open -> closed ___ Python tracker

[issue38605] [typing] PEP 563: Postponed evaluation of annotations: enable it by default in Python 3.10

2020-10-06 Thread Guido van Rossum
Guido van Rossum added the comment: I'm marking this fixed, but there are some subtle edge cases. That's what alpha releases are for. @BTaskaya, adding those arguments to various inspect functions sounds like a nice thing to do. You could either open a new issue or just reference this

[issue38605] [typing] PEP 563: Postponed evaluation of annotations: enable it by default in Python 3.10

2020-10-06 Thread Guido van Rossum
Guido van Rossum added the comment: New changeset 044a1048ca93d466965afc027b91a5a9eb9ce23c by Batuhan Taskaya in branch 'master': bpo-38605: Make 'from __future__ import annotations' the default (GH-20434) https://github.com/python/cpython/commit/044a1048ca93d466965afc027b91a5a9eb9ce23c

[issue38605] [typing] PEP 563: Postponed evaluation of annotations: enable it by default in Python 3.10

2020-10-06 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: @gvanrossum should I draft a patch to convert this inspect.signature(callable, *, follow_wrapped=True) (and also things like inspect.Signature.from_callable) into inspect.signature(callable, *, follow_wrapped=True, globalns=None, localns=None) in order to

[issue41920] Weird add operation of "0.2222 + 0.1111"

2020-10-06 Thread Leonard Schwennesen
Leonard Schwennesen added the comment: Hi Steven, Thanks for your detailed explanations. They where very helpful for me. Now I know a bit more about Python and Computers in general. (; -- ___ Python tracker

[issue41905] add update_abstractmethods function to update an ABC's abstract methods

2020-10-06 Thread Guido van Rossum
Guido van Rossum added the comment: Thanks all! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue41905] add update_abstractmethods function to update an ABC's abstract methods

2020-10-06 Thread Guido van Rossum
Guido van Rossum added the comment: New changeset bef7d299eb911086ea5a7ccf7a9da337e38a8491 by Ben Avrahami in branch 'master': bpo-41905: Add abc.update_abstractmethods() (GH-22485) https://github.com/python/cpython/commit/bef7d299eb911086ea5a7ccf7a9da337e38a8491 --

[issue41952] sys.version has double space between month and date

2020-10-06 Thread Ammar Askar
Ammar Askar added the comment: For reference, this comes from https://github.com/python/cpython/blob/e42b705188271da108de42b55d9344642170aa2b/Modules/getbuildinfo.c#L45-L46 and is set by the compiler `__DATE__` macro. GCC documentation says: > If the day of the month is less than 10, it is

[issue41951] python-3.8.2.exe /uninstall /quiet fails with Exit code: 0x643

2020-10-06 Thread E. Paine
Change by E. Paine : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker ___ ___

[issue41952] sys.version has double space between month and date

2020-10-06 Thread E. Paine
E. Paine added the comment: I just confirmed (compiling the master having changed the system date) that this double space does not occur when the date is double-digits (`Oct 10`), suggesting that this is almost certainly intentional. -- ___

[issue26680] Incorporating float.is_integer into the numeric tower and Decimal

2020-10-06 Thread Guido van Rossum
Change by Guido van Rossum : -- assignee: gvanrossum -> rhettinger nosy: -gvanrossum ___ Python tracker ___ ___ Python-bugs-list

[issue26680] Incorporating float.is_integer into the numeric tower and Decimal

2020-10-06 Thread Robert Smallshire
Robert Smallshire added the comment: First, I would like to apologise for the confusion I have inadvertently caused. I didn't see Raymond's question and Guido's clear response here about not modifying the numeric tower, as it came _long_ after activity had moved to GitHub, and code had been

[issue36534] tarfile: handling Windows (path) illegal characters in archive member names

2020-10-06 Thread Eryk Sun
Eryk Sun added the comment: > The pathlib module has _WindowsFlavour.reserved_names list of > Windows reserved names: pathlib._WindowsFlavour.reserved_names is missing "CONIN$" and "CONOUT$". Prior to Windows 8 these two are reserved as relative names. In Windows 8+, they're also reserved

[issue41944] [security] Python testsuite calls eval() on content received via HTTP

2020-10-06 Thread STINNER Victor
STINNER Victor added the comment: New changeset a8bf44d04915f7366d9f8dfbf84822ac37a4bab3 by Florian Bruhin in branch 'master': bpo-41944: No longer call eval() on content received via HTTP in the UnicodeNames tests (GH-22575)

[issue41959] Doc/library/asyncio-policy.rst grammar error

2020-10-06 Thread Raúl Cumplido
Change by Raúl Cumplido : -- keywords: +patch pull_requests: +21575 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22580 ___ Python tracker ___

[issue41959] Doc/library/asyncio-policy.rst grammar error

2020-10-06 Thread Raúl Cumplido
New submission from Raúl Cumplido : The Doc/library/asyncio-policy.rst file contains the following: ``` This implementation registers a :py:data:`SIGCHLD` signal handler on instantiation. That can break third-party code that installs a custom handler for `SIGCHLD`. signal). ``` The latest .

[issue41958] importlib has not util module

2020-10-06 Thread Irit Katriel
Irit Katriel added the comment: import importlib.util -- nosy: +iritkatriel ___ Python tracker ___ ___ Python-bugs-list mailing

[issue41957] IDLE does not Transform Tabs into Spaces in Interactive Mode

2020-10-06 Thread E. Paine
E. Paine added the comment: This has been an issue for a *long* time (issue 7676). Hopefully, the merging of #37903 will allow this to be explored but currently there is not a lot that can be done (without a serious refactor). -- nosy: +epaine

[issue41958] importlib has not util module

2020-10-06 Thread Mario Idival
New submission from Mario Idival : After new version 3.9, the util module from importlib does not exists anymore >>> import importlib >>> importlib.util.find_spec('enum') Traceback (most recent call last): File "", line 1, in AttributeError: module 'importlib' has no attribute 'util' >>>

[issue41958] importlib has not util module

2020-10-06 Thread Mario Idival
Change by Mario Idival : -- type: -> crash ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41944] [security] Python testsuite calls eval() on content received via HTTP

2020-10-06 Thread STINNER Victor
STINNER Victor added the comment: Since it's a security vulnerability, I created backports to 3.6 and 3.7 as well. -- ___ Python tracker ___

[issue41944] [security] Python testsuite calls eval() on content received via HTTP

2020-10-06 Thread miss-islington
Change by miss-islington : -- pull_requests: +21573 pull_request: https://github.com/python/cpython/pull/22578 ___ Python tracker ___

[issue41944] [security] Python testsuite calls eval() on content received via HTTP

2020-10-06 Thread STINNER Victor
STINNER Victor added the comment: New changeset 6c6c256df3636ff6f6136820afaefa5a10a3ac33 by Miss Skeleton (bot) in branch '3.8': bpo-41944: No longer call eval() on content received via HTTP in the CJK codec tests (GH-22566) (GH-22577)

[issue41944] [security] Python testsuite calls eval() on content received via HTTP

2020-10-06 Thread miss-islington
Change by miss-islington : -- pull_requests: +21574 pull_request: https://github.com/python/cpython/pull/22579 ___ Python tracker ___

[issue41944] [security] Python testsuite calls eval() on content received via HTTP

2020-10-06 Thread miss-islington
miss-islington added the comment: New changeset b664a1df4ee71d3760ab937653b10997081b1794 by Miss Skeleton (bot) in branch '3.9': bpo-41944: No longer call eval() on content received via HTTP in the CJK codec tests (GH-22566)

[issue41944] [security] Python testsuite calls eval() on content received via HTTP

2020-10-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 2ef5caa58febc8968e670e39e3d37cf8eef3cab8 by Serhiy Storchaka in branch 'master': bpo-41944: No longer call eval() on content received via HTTP in the CJK codec tests (GH-22566)

[issue41944] [security] Python testsuite calls eval() on content received via HTTP

2020-10-06 Thread miss-islington
Change by miss-islington : -- pull_requests: +21572 pull_request: https://github.com/python/cpython/pull/22577 ___ Python tracker ___

[issue41944] [security] Python testsuite calls eval() on content received via HTTP

2020-10-06 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 5.0 -> 6.0 pull_requests: +21571 pull_request: https://github.com/python/cpython/pull/22576 ___ Python tracker

[issue41954] [mock] Recursion on mocking inspect.isfunction

2020-10-06 Thread Mario Corchero
Mario Corchero added the comment: Oh, well spotted. We could add some guards around the code in mock to still work when key stdlib functionality is mocked out, but this might make the mock code quite messy. Specially as we will have to make sure that not only the function we call are safe

[issue1635741] Py_Finalize() doesn't clear all Python objects at exit

2020-10-06 Thread STINNER Victor
STINNER Victor added the comment: Statistics on C extension modules using the old API (PyModule_Create) / new API (PyModuleDef_Init): * 3.5: 84 / 24 (22%), total: 108 * 3.6: 87 / 25 (22%), total: 112 (+4) * 3.7 : 89 / 26 (23%), total: 115 (+3) * 3.8: 91 / 27 (23%), total: 118 (+3) * 3.9: 68

[issue41944] [security] Python testsuite calls eval() on content received via HTTP

2020-10-06 Thread STINNER Victor
STINNER Victor added the comment: I'm now tracking this vulnerability at: https://python-security.readthedocs.io/vuln/cjk-codec-download-eval.html -- ___ Python tracker ___

[issue36534] tarfile: handling Windows (path) illegal characters in archive member names

2020-10-06 Thread STINNER Victor
STINNER Victor added the comment: > Also, while _sanitize_windows_name() handles trailing dots, for some reason > it overlooks trailing spaces. It also doesn't handle reserved DOS device > names. The pathlib module has _WindowsFlavour.reserved_names list of Windows reserved names: >>>

[issue41944] [security] Python testsuite calls eval() on content received via HTTP

2020-10-06 Thread STINNER Victor
STINNER Victor added the comment: > FWIW I found another place where a similar thing is done, though by chance > it's probably not exploitable - see GH-22575. I agree that test_ucn is not exploitable, but it would be nice to harden it anyway. Extract of the code:

[issue41957] IDLE does not Transform Tabs into Spaces in Interactive Mode

2020-10-06 Thread Alex
New submission from Alex <2423067...@qq.com>: In Python I usually find the problem like this. >>> for i in range(10): #some code In edit mode, IDLE will automatically transform tabs into spaces. But in interactive mode, IDLE won't do the same. The same problem have been reported in some

[issue30197] Enhance swap_attr() and swap_item() in test.support

2020-10-06 Thread Will Chill
Change by Will Chill : Removed file: https://bugs.python.org/file49498/March 23rd 2017.htm ___ Python tracker ___ ___ Python-bugs-list

[issue30197] Enhance swap_attr() and swap_item() in test.support

2020-10-06 Thread Will Chill
Will Chill added the comment: Thought I'd send -- nosy: +wburchill7 Added file: https://bugs.python.org/file49498/March 23rd 2017.htm ___ Python tracker ___

[issue41944] [security] Python testsuite calls eval() on content received via HTTP

2020-10-06 Thread Florian Bruhin
Florian Bruhin added the comment: Thanks for the clarification - I wasn't aware those tests aren't run by default. FWIW I found another place where a similar thing is done, though by chance it's probably not exploitable - see GH-22575. -- ___

[issue41944] [security] Python testsuite calls eval() on content received via HTTP

2020-10-06 Thread Florian Bruhin
Change by Florian Bruhin : -- pull_requests: +21570 pull_request: https://github.com/python/cpython/pull/22575 ___ Python tracker ___

[issue41944] [security] Python testsuite calls eval() on content received via HTTP

2020-10-06 Thread STINNER Victor
STINNER Victor added the comment: I'm not saying that this issue is not a vulnerability, just that the scope is limited. By default, downloaded from the Internet are disabled. You have to opt-in for that using -u network (or -u all which enables the network resource) command line option of

[issue41944] [security] Python testsuite calls eval() on content received via HTTP

2020-10-06 Thread Florian Bruhin
Florian Bruhin added the comment: That assumption is false. For starters, distribution packagers do: https://github.com/archlinux/svntogit-packages/blob/3fc85177e35d1ff9ab000950c5d1af9567730434/trunk/PKGBUILD#L72-L84

[issue41944] [security] Python testsuite calls eval() on content received via HTTP

2020-10-06 Thread STINNER Victor
STINNER Victor added the comment: Oops: Only developers of Python itself run the Python test suite. -- ___ Python tracker ___ ___

[issue41944] [security] Python testsuite calls eval() on content received via HTTP

2020-10-06 Thread STINNER Victor
STINNER Victor added the comment: I don't think that a CVE is justified. I don't know anyone running the Python test suite on production. Only developers of Python itself run Python. -- title: Python testsuite calls eval() on content received via HTTP -> [security] Python testsuite

[issue41944] Python testsuite calls eval() on content received via HTTP

2020-10-06 Thread Florian Bruhin
Florian Bruhin added the comment: I wonder if I should request a CVE for this as well? Just to make sure the word gets out to distributions/organizations/etc. running the Python testsuite, given that we can't be sure it which contexts this happens (and as it could be exploited by e.g.

[issue41561] test_ssl fails in Ubuntu 20.04: test_min_max_version_mismatch

2020-10-06 Thread Christian Heimes
Christian Heimes added the comment: It sounds like a Debian/Ubuntu patch is breaking an assumption. Did somebody report the bug with Debian/Ubuntu maintainers of OpenSSL already? Fedora also configures OpenSSL with minimum protocol version of TLS 1.2. The distribution does it in a slightly

[issue41952] sys.version has double space between month and date

2020-10-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: >>> sys.version '3.10.0a1 (tags/v3.10.0a1:8e9afaf, Oct 5 2020, 20:32:52) [MSC v.1927 64 bit (AMD64)]' I am guessing that the template is leaving spaces for 2 digits. Intentional? I see the same thing in local repository debug builds. Pablo is the

[issue41956] Regression in HTMLParser on malformed tags

2020-10-06 Thread Dan
New submission from Dan : The attached HTML document (pulled from a Samsung printer web interface) contains the following invalid HTML tag: (invalid because of ,="") In Python 3.x completely stops the HTML parser, preventing any further tags from being parsed. This does not happen in Python

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

2020-10-06 Thread Steve Dower
Steve Dower added the comment: I have no objection to bumping it further, provided someone has fixed importlib.resources on 3.10 (i.e. my backported tests pass) -- ___ Python tracker

[issue41949] Redefinition of HMAC functions prevents static linking

2020-10-06 Thread Christian Heimes
Christian Heimes added the comment: It looks like LibreSSL is finally adding OpenSSL 1.1.1 APIs after all. This is a good move but also breaks assumptions. Please note that compiling Python with LibreSSL is completely untested and unmaintained. --

[issue41955] Python Modules

2020-10-06 Thread Gaming With Skytorrush
New submission from Gaming With Skytorrush : Modules such as Pillow, Psycopg2, Psycopg2-binary are not installing via pip stating this version doesn't support those -- messages: 378096 nosy: clashwithchiefrpjyt priority: normal severity: normal status: open title: Python Modules type:

[issue26680] Incorporating float.is_integer into the numeric tower and Decimal

2020-10-06 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- priority: normal -> release blocker ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue41952] sys.version has double space between month and date

2020-10-06 Thread E. Paine
New submission from E. Paine : To elaborate on the information given in the title, @sy is referring to the shell start text. More specifically, they are raising a grammatical issue with `sys.version` where there are two spaces between the shortened month form and the date (on my build this

[issue41955] Python Modules

2020-10-06 Thread Christian Heimes
Christian Heimes added the comment: All packages in your list use native C code and don't offer compiled binaries for Python 3.9 yet. It's usually taking a couple of days or weeks until major packages ship binaries for a new Python version. Please report missing binaries with the

[issue41951] python-3.8.2.exe /uninstall /quiet fails with Exit code: 0x643

2020-10-06 Thread XIAO AN ZHENG
XIAO AN ZHENG added the comment: This happens in windows 2019 server running Powershell under SYSTEM account: &"..\thirdparty\python-3.8.2.exe" /uninstall /quiet -- title: python-3.8.2.exe /uninstall /quiet fails woth Exit code: 0x643 -> python-3.8.2.exe /uninstall /quiet fails with

[issue40864] spec_set/autospec/spec seems to not be reading attributes defined in class body

2020-10-06 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +cjw296, lisroach, mariocj89, michael.foord ___ Python tracker ___ ___

[issue41954] [mock] Recursion on mocking inspect.isfunction

2020-10-06 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +cjw296, lisroach, mariocj89, michael.foord, xtreak ___ Python tracker ___ ___

[issue41954] [mock] Recursion on mocking inspect.isfunction

2020-10-06 Thread Stanislav Levin
New submission from Stanislav Levin : With Python 3.8 the mocking of `inspect.isfunction` results in recursion. Please, consider a code snippet: ```python from unittest import TestCase from unittest.mock import patch import inspect class TestClass(TestCase): def setUp(self):

[issue41939] 3.9.0 test_site warning: "urllib.requests._opener was modified by test_site"

2020-10-06 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.8 ___ Python tracker ___

[issue41939] 3.9.0 test_site warning: "urllib.requests._opener was modified by test_site"

2020-10-06 Thread miss-islington
miss-islington added the comment: New changeset 78bddc7794a629614dc84e195b9117416ae97ed3 by Miss Skeleton (bot) in branch '3.8': bpo-41939: Fix test_site.test_license_exists_at_url() (GH-22559) https://github.com/python/cpython/commit/78bddc7794a629614dc84e195b9117416ae97ed3 --

[issue26680] Incorporating float.is_integer into the numeric tower and Decimal

2020-10-06 Thread Mark Dickinson
Change by Mark Dickinson : -- nosy: -mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41939] 3.9.0 test_site warning: "urllib.requests._opener was modified by test_site"

2020-10-06 Thread miss-islington
Change by miss-islington : -- pull_requests: +21569 pull_request: https://github.com/python/cpython/pull/22574 ___ Python tracker ___