[issue46554] Add append keyword argument to Path.write_text() and Path.write_bytes()

2022-01-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There is nothing wrong with writing two lines of code. And two lines of code may be more readable than one line of code. New method or parameter has a cost -- core developers need to maintain it, update documentation and tests if they conflict with new

[issue46558] Quadratic time internal base conversions

2022-01-30 Thread Tim Peters
Tim Peters added the comment: > todecstr treats it as an "input" conversion instead, ... Worth pointing this out since it doesn't seem widely known: "input" base conversions are _generally_ faster than "output" ones. Working in the destination base (or a power of it) is generally simpler.

[issue46558] Quadratic time internal base conversions

2022-01-30 Thread Tim Peters
Tim Peters added the comment: The factorial of a million is much smaller than the case I was looking at. Here are rough timings on my box, for computing the decimal string from the bigint (and, yes, they all return the same string): native: 475seconds (about 8 minutes) numeral: 22.3

[issue46588] fix typo in test_calltip.py

2022-01-30 Thread Caio Agiani
Change by Caio Agiani : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue44977] Deprecate delegation of int to __trunc__

2022-01-30 Thread Zackery Spytz
Zackery Spytz added the comment: I have created a patch for this issue. Please consider having a look. -- ___ Python tracker ___

[issue44977] Deprecate delegation of int to __trunc__

2022-01-30 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch nosy: +ZackerySpytz nosy_count: 3.0 -> 4.0 pull_requests: +29214 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/31031 ___ Python tracker

[issue46475] typing.Never and typing.assert_never

2022-01-30 Thread David Foster
Change by David Foster : -- nosy: +David Foster ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46540] dylibs not loading properly from NFS mounts

2022-01-30 Thread Ned Deily
Ned Deily added the comment: Thanks for the report but there are a lot of variables here that make this very difficult to act on. First, there have been many changes in macOS 10.15 regarding file permissions and file system layouts (with APFS et al) and further changes in the more recent

[issue46591] Make About IDLE links clickable

2022-01-30 Thread wesinator
Change by wesinator <13hu...@gmail.com>: -- keywords: +patch nosy: +wesinator nosy_count: 1.0 -> 2.0 pull_requests: +29213 pull_request: https://github.com/python/cpython/pull/30251 ___ Python tracker

[issue46591] Make About IDLE links clickable

2022-01-30 Thread Terry J. Reedy
New submission from Terry J. Reedy : I am opening this for a PR submitted without an issue. The PR (not yet reviewed) makes the online IDLE doc link clickable. Since a local copy of the online html page is also available on the Help menu, that link is almost unneeded. But when using the

[issue33222] Various test failures if PYTHONUSERBASE is not canonicalized

2022-01-30 Thread Irit Katriel
Irit Katriel added the comment: Maybe I did something wrong. Will check tomorrow. In the meantime I’m updating the versions. Thanks for double checking. -- resolution: out of date -> versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.8 ___

[issue33222] Various test failures if PYTHONUSERBASE is not canonicalized

2022-01-30 Thread Ned Deily
Ned Deily added the comment: > I tested 3.11 (on a Mac 11.6). It still fails for me on current main HEAD (on 12.2 FWIW): $ ./configure --prefix=/tmp/p $ make -j6 $ mkdir /tmp/x $ export PYTHONUSERBASE=/tmp/x/.. $ ./python -m test -w test_site test_sysconfig Raised RLIMIT_NOFILE: 256 -> 1024

[issue33222] Various test failures if PYTHONUSERBASE is not canonicalized

2022-01-30 Thread Irit Katriel
Irit Katriel added the comment: I tested 3.11 (on a Mac 11.6). -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue33222] Various test failures if PYTHONUSERBASE is not canonicalized

2022-01-30 Thread Ned Deily
Ned Deily added the comment: FWIW, I still see the same failures with 3.10.2 on a current macOS 12.2 system. -- status: pending -> open ___ Python tracker ___

[issue43320] test test_webbrowser "can't locate runnable browser" with enable-optimizations

2022-01-30 Thread Irit Katriel
Irit Katriel added the comment: 3.8 is no longer maintained. Please create a new issue if you are seeing this problem on a current version (>= 3.9). -- nosy: +iritkatriel resolution: -> out of date stage: -> resolved status: open -> closed ___

[issue33222] Various test failures if PYTHONUSERBASE is not canonicalized

2022-01-30 Thread Irit Katriel
Irit Katriel added the comment: I tested on a map and I only got the failure in test_s_option, which seems right because that directory is indeed not in sys.path. -- nosy: +iritkatriel resolution: -> out of date status: open -> pending ___ Python

[issue29155] test.test_spwd.TestSpwdNonRoot failure with FileNotFoundError:

2022-01-30 Thread Irit Katriel
Irit Katriel added the comment: 3.6 is no longer maintained. Please create a new issue if you are seeing this problem on a current version (>= 3.9). -- nosy: +iritkatriel resolution: -> out of date stage: -> resolved status: open -> closed ___

[issue38295] test_relative_path of test_py_compile fails on macOS 10.15 Catalina

2022-01-30 Thread Ned Deily
Ned Deily added the comment: > Is there anything more to do here? A belated response: probably not, so I'm OK with closing this. A quick check shows that macOS behavior has changed a bit on more recent releases. On current macOS Big Sur (11.6.3) and Monterey (12.2) releases, Bo's test: $

[issue46590] I suggests to modify Include/object.h in 98 line

2022-01-30 Thread meow
Change by meow <4d656...@gmail.com>: -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue30393] test_readline hangs

2022-01-30 Thread Irit Katriel
Irit Katriel added the comment: 3.6 is no longer maintained. Please create a new issue if you are seeing this problem on a current version (>= 3.9). -- nosy: +iritkatriel resolution: -> out of date stage: test needed -> resolved status: open -> closed

[issue35081] Move internal headers to Include/internal/

2022-01-30 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35134] Add a new Include/cpython/ subdirectory for the "CPython API" with implementation details

2022-01-30 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue46590] I suggests to modify Include/object.h in 98 line

2022-01-30 Thread meow
Change by meow <4d656...@gmail.com>: -- components: -C API ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46571] Strange `@typing.no_type_check` behavior for class variables

2022-01-30 Thread Guido van Rossum
Guido van Rossum added the comment: Okay, somebody can submit a PR! -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue46582] Windows builds fail: fatal error RC1116: RC terminating after preprocessor errors

2022-01-30 Thread STINNER Victor
STINNER Victor added the comment: https://devguide.python.org/#status-of-python-branches -- ___ Python tracker ___ ___

[issue46582] Windows builds fail: fatal error RC1116: RC terminating after preprocessor errors

2022-01-30 Thread STINNER Victor
STINNER Victor added the comment: Python 3.8 no longer accept bugfixes, I close this issue. -- resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracker

[issue46590] I suggests to modify Include/object.h in 98 line

2022-01-30 Thread meow
Change by meow <4d656...@gmail.com>: -- keywords: +patch pull_requests: +29212 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31020 ___ Python tracker

[issue46590] I suggests to modify Include/object.h in 98 line

2022-01-30 Thread meow
New submission from meow <4d656...@gmail.com>: before version #define Py_INVALID_SIZE (Py_ssize_t)-1 after version #define Py_INVALID_SIZE ((Py_ssize_t)-1) I think that the after version is more safety. thanks to read this request. -- components: C API messages: 412175 nosy: 4d656f77

[issue46589] Improve documentation for typing._GenericAlias

2022-01-30 Thread Alex Waygood
Change by Alex Waygood : -- assignee: -> docs@python components: +Documentation keywords: +patch nosy: +Jelle Zijlstra, docs@python, gvanrossum, kj stage: -> patch review ___ Python tracker

[issue46374] Assertion failed in ceval.c

2022-01-30 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: Did GH-30633 fix this? Is there further work to be done? -- nosy: +erlendaasland status: open -> pending ___ Python tracker ___

[issue45990] Exception notes need more documentation

2022-01-30 Thread Irit Katriel
Irit Katriel added the comment: https://www.python.org/dev/peps/pep-0678/ -- stage: -> resolved status: open -> closed ___ Python tracker ___

[issue46558] Quadratic time internal base conversions

2022-01-30 Thread Carl Friedrich Bolz-Tereick
Carl Friedrich Bolz-Tereick added the comment: Somebody pointed me to V8's implementation of str(bigint) today: https://github.com/v8/v8/blob/main/src/bigint/tostring.cc They say that they can compute str(factorial(1_000_000)) (which is 5.5 million decimal digits) in 1.5s:

[issue43853] [sqlite3] Improve sqlite3_value_text() error handling

2022-01-30 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- pull_requests: +29211 pull_request: https://github.com/python/cpython/pull/31030 ___ Python tracker ___

[issue46589] Improve documentation for typing._GenericAlias

2022-01-30 Thread Matthew Rahtz
New submission from Matthew Rahtz : There's currently not much documentation in `typing.py` for `_GenericAlias`. Some fairly weird things go on in there, so it would be great to have more info in the class about what's going on and why various edge cases are necessary. -- components:

[issue46555] Unicode-mangled names refer inconsistently to constants

2022-01-30 Thread Eryk Sun
Eryk Sun added the comment: Why was it decided to not raise a syntax error when the NFKC normalization of a non-ASCII token matches a keyword? I don't see a use for cases such as `핚핗 = 1` and `핚핗 + 1`. It seems the cost in terms of confusion far outweighs any potential benefit. --

[issue46555] Unicode-mangled names refer inconsistently to constants

2022-01-30 Thread Carl Friedrich Bolz-Tereick
Carl Friedrich Bolz-Tereick added the comment: Ok, I can definitely agree with Serhiy pov: "True" is a keyword that always evaluates to the object that you get when you call bool(1). There is usually no name "True" and directly assigning to it is forbidden. But there are various other ways

[issue46578] cant DEBUG os.spawnv()

2022-01-30 Thread Eryk Sun
Eryk Sun added the comment: > cmd310 = ["/LIBPATH:D:\\python310\\lib\\site-packages\\torch\\lib", The `argv` parameter of os.spawnv() should begin with a command name to ensure that the application parses its command-line correctly. This doesn't necessarily have to be a file path since the

[issue43224] Add support for PEP 646

2022-01-30 Thread Jelle Zijlstra
Change by Jelle Zijlstra : -- nosy: +Jelle Zijlstra ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46555] Unicode-mangled names refer inconsistently to constants

2022-01-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: https://docs.python.org/3/library/constants.html#built-in-constants -- ___ Python tracker ___

[issue17206] Py_XDECREF() expands its argument multiple times

2022-01-30 Thread Mark Shannon
Change by Mark Shannon : -- pull_requests: +29209 pull_request: https://github.com/python/cpython/pull/30855 ___ Python tracker ___

[issue40174] HAVE_CLOCK_GETTIME not repected in pytime.c

2022-01-30 Thread Irit Katriel
Irit Katriel added the comment: I'll close this in a week if there is no response. (It seems to have been abandoned by the OP after a minor code review disagreement if I understand their last comment.) -- status: open -> pending ___ Python

[issue46585] Should we re-export `PyObj_FromPtr` in `ctypes`?

2022-01-30 Thread Eryk Sun
Eryk Sun added the comment: Alternatively, one can cast the address to py_object and dereference its `value`. For example: >>> obj = bytearray(b'spam') >>> sys.getrefcount(obj) 2 >>> obj2 = ctypes.cast(id(obj), ctypes.py_object).value >>> obj2 is obj True >>>

[issue46588] fix typo in test_calltip.py

2022-01-30 Thread Caio Agiani
Change by Caio Agiani : -- keywords: +patch pull_requests: +29207 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31027 ___ Python tracker ___

[issue46588] fix typo in test_calltip.py

2022-01-30 Thread Caio Agiani
Change by Caio Agiani : -- components: Tests nosy: caioagiani priority: normal severity: normal status: open title: fix typo in test_calltip.py type: enhancement versions: Python 3.11 ___ Python tracker

[issue46582] Windows builds fail: fatal error RC1116: RC terminating after preprocessor errors

2022-01-30 Thread ntrischi
ntrischi added the comment: Thanks for pointing out those PRs. I agree, this is not a security patch but it breaks the compilation process for users choosing to compile from source on Windows. -- ___ Python tracker

[issue42390] Other Python implementations may not expose the module name in datetime type names

2022-01-30 Thread Irit Katriel
Irit Katriel added the comment: Closing as the OP is unresponsive. -- resolution: -> rejected stage: patch review -> resolved status: pending -> closed ___ Python tracker

[issue38295] test_relative_path of test_py_compile fails on macOS 10.15 Catalina

2022-01-30 Thread Irit Katriel
Change by Irit Katriel : -- stage: patch review -> resolved status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list

[issue37091] subprocess - uncaught PermissionError in send_signal can cause hang

2022-01-30 Thread Irit Katriel
Change by Irit Katriel : -- stage: -> resolved status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue31817] Compilation Error with Python 3.6.1/3.6.3 with Tkinter

2022-01-30 Thread Irit Katriel
Change by Irit Katriel : -- stage: -> resolved status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue46571] Strange `@typing.no_type_check` behavior for class variables

2022-01-30 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: I think we could do it by looking at __qualname__. -- ___ Python tracker ___ ___

[issue46582] Windows builds fail: fatal error RC1116: RC terminating after preprocessor errors

2022-01-30 Thread Eryk Sun
Eryk Sun added the comment: PR 29396 and PR 29501 didn't get backported to 3.8 in November. Probably that was intentional since 3.8 only gets security fixes since 3.8.10, which was released in May. Supporting a newer build environment isn't a security issue. A core developer could make an

[issue46571] Strange `@typing.no_type_check` behavior for class variables

2022-01-30 Thread Guido van Rossum
Guido van Rossum added the comment: I agree that Jelle's proposal (Nikita's #2) looks best *if* we can implement it. How do we ensure that class A: ... @no_type_check class B: AA = A class C: ... ... suppresses annotations in B and C but not in A? --

[issue46571] Strange `@typing.no_type_check` behavior for class variables

2022-01-30 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: 1. Less change in behavior 2. From the purpose of the decorator, it makes sense for it to apply to nested classes as well as methods, even if the docs don't say so explicitly. -- ___ Python tracker

[issue46407] optimizing `1 << n` or `2 ** n` and modulo-only operations

2022-01-30 Thread Ken Jin
Change by Ken Jin : -- nosy: +kj nosy_count: 6.0 -> 7.0 pull_requests: +29206 pull_request: https://github.com/python/cpython/pull/31025 ___ Python tracker ___

[issue46571] Strange `@typing.no_type_check` behavior for class variables

2022-01-30 Thread Nikita Sobolev
Nikita Sobolev added the comment: Ken Jin, Jelle, can you please share your ideas why `(2)` is better than `(1)`? -- ___ Python tracker ___

[issue46586] In documentation contents enum.property erroneously links to built-in property

2022-01-30 Thread Alex Waygood
Change by Alex Waygood : -- assignee: docs@python -> ethan.furman nosy: +ethan.furman stage: -> needs patch type: -> behavior ___ Python tracker ___

[issue46587] datetime and time tests use non-portal "%4Y" format

2022-01-30 Thread Christian Heimes
New submission from Christian Heimes : Several test cases for datetime and time modules use the non-standard and non-portal width prefix for strftime: >>> datetime.date(42, 1, 1).strftime("%4Y") '0042' According to man strftime(3) https://man7.org/linux/man-pages/man3/strftime.3.html the

[issue46586] In documentation contents enum.property erroneously links to built-in property

2022-01-30 Thread Dutcho
New submission from Dutcho : https://docs.python.org/3.11/library/enum.html#module-contents contains: property() Allows Enum members to have attributes without conflicting with member names. In above, property() is links to: https://docs.python.org/3.11/library/functions.html#property instead

[issue46585] Should we re-export `PyObj_FromPtr` in `ctypes`?

2022-01-30 Thread Nikita Sobolev
New submission from Nikita Sobolev : After looking at https://github.com/python/cpython/blame/8fb36494501aad5b0c1d34311c9743c60bb9926c/Lib/ctypes/test/test_python_api.py#L5-L10 in https://bugs.python.org/issue46584 it seems that we should address this comment: ``` # This section should be

[issue46584] Modernize `ctypes/test_python_api` by removing old version check

2022-01-30 Thread Nikita Sobolev
Change by Nikita Sobolev : -- keywords: +patch pull_requests: +29205 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31024 ___ Python tracker ___

[issue46584] Modernize `ctypes/test_python_api` by removing old version check

2022-01-30 Thread Nikita Sobolev
New submission from Nikita Sobolev : Right now Lib/ctypes/test/test_python_api.py has these lines: ``` if sys.version_info > (2, 4): c_py_ssize_t = c_size_t else: c_py_ssize_t = c_int ``` Source:

[issue46571] Strange `@typing.no_type_check` behavior for class variables

2022-01-30 Thread Alex Waygood
Alex Waygood added the comment: I fully withdraw my suggestion of deprecating the decorator; it's evidently used more than I realised. I don't have any strong opinion on whether (1) or (2) would be a better solution. -- ___ Python tracker

[issue39100] email.policy.SMTP throws AttributeError on invalid header

2022-01-30 Thread Andrei Kulakov
Andrei Kulakov added the comment: I confirmed I get the same error as Anton on 3.9 and 3.11 . -- ___ Python tracker ___ ___

[issue46571] Strange `@typing.no_type_check` behavior for class variables

2022-01-30 Thread Ken Jin
Ken Jin added the comment: I agree with Jelle, let's go with (2). It feels strange to have a decorator modify types that it doesn't own. -- ___ Python tracker ___

[issue46555] Unicode-mangled names refer inconsistently to constants

2022-01-30 Thread Kodiologist
Kodiologist added the comment: > the builtin variable "True" Is the existence of this entity, as separate from the constant `True`, documented anywhere? constants.rst doesn't seem to acknowledge it. Indeed, is its existence a feature, or is it a CPython quirk? --

[issue46581] _typevar_types and _paramspec_tvars are missing from _GenericAlias.copy_with

2022-01-30 Thread Ken Jin
Ken Jin added the comment: Wow! Thanks, that's an interesting find. My hunch is that we should be passing in _typevar_types and _paramspec_tvars in the copy_with of _GenericAlias and _ConcatenateGenericAlias. Inconsistent copy_with could trigger subtle bugs in ForwardRefs and

[issue46581] _typevar_types and _paramspec_tvars are missing from _GenericAlias.copy_with

2022-01-30 Thread Nikita Sobolev
Change by Nikita Sobolev : -- nosy: +sobolevn ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46583] Modernize `selectors.py` by removing unused `sys.version_info` check

2022-01-30 Thread Nikita Sobolev
Change by Nikita Sobolev : -- keywords: +patch pull_requests: +29204 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31023 ___ Python tracker ___

[issue46583] Modernize `selectors.py` by removing unused `sys.version_info` check

2022-01-30 Thread Nikita Sobolev
New submission from Nikita Sobolev : Right now `selectors.py` contains this check on module-level: ``` if sys.version_info >= (3, 5): ... ``` Source: https://github.com/python/cpython/blame/8fb36494501aad5b0c1d34311c9743c60bb9926c/Lib/selectors.py#L53 Learning from other modules, we tend

[issue46582] Windows builds fail: fatal error RC1116: RC terminating after preprocessor errors

2022-01-30 Thread ntrischi
New submission from ntrischi : Compiling Python3.8.9 from source on Windows 10 with VS2019. Running PCBuild\build.bat, I'm getting the following issue: C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\um\winnt.h(253): error RC2188:

[issue46400] Please update bundled libexpat to 2.4.4 with security fixes

2022-01-30 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch nosy: +python-dev nosy_count: 2.0 -> 3.0 pull_requests: +29203 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31022 ___ Python tracker

[issue46483] `pathlib.PurePath.__class_getitem__` does not return `GenericAlias`

2022-01-30 Thread Alex Waygood
Alex Waygood added the comment: The desmper121 user appears to be a spammer; I am undoing all the changes they made to this BPO ticket. -- nosy: -barry, lys.nikolaou, pablogsal, r.david.murray, yselivanov type: -> behavior versions: -Python 3.10

[issue43224] Add support for PEP 646

2022-01-30 Thread Matthew Rahtz
Change by Matthew Rahtz : -- pull_requests: +29202 pull_request: https://github.com/python/cpython/pull/31021 ___ Python tracker ___

[issue46581] _typevar_types and _paramspec_tvars are missing from _GenericAlias.copy_with

2022-01-30 Thread Alex Waygood
Change by Alex Waygood : -- keywords: -patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46581] _typevar_types and _paramspec_tvars are missing from _GenericAlias.copy_with

2022-01-30 Thread Alex Waygood
Change by Alex Waygood : -- pull_requests: -29201 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46581] _typevar_types and _paramspec_tvars are missing from _GenericAlias.copy_with

2022-01-30 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +gvanrossum, kj -miss-islington stage: patch review -> type: -> behavior ___ Python tracker ___

[issue46581] _typevar_types and _paramspec_tvars are missing from _GenericAlias.copy_with

2022-01-30 Thread Matt B
Matt B added the comment: Filed by request: https://github.com/python/cpython/pull/26091#issuecomment-1024900261 -- ___ Python tracker ___

[issue46581] _typevar_types and _paramspec_tvars are missing from _GenericAlias.copy_with

2022-01-30 Thread miss-islington
Change by miss-islington : -- keywords: +patch nosy: +miss-islington nosy_count: 1.0 -> 2.0 pull_requests: +29201 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26091 ___ Python tracker

[issue46581] _typevar_types and _paramspec_tvars are missing from _GenericAlias.copy_with

2022-01-30 Thread Matt B
New submission from Matt B : c55ff1b352f8b82184f80d9dea220e832691acfc was submitted to fix #44098 and added the _typevar_types and _paramspec_tvars properties to _GenericAlias. However, those properties continue to be omitted from _GenericAlias.copy_with[1]. Further, typing.py is fairly

[issue46579] Compiling from source prints «ModuleNotFoundError: No module named 'binascii'»

2022-01-30 Thread Christian Heimes
Christian Heimes added the comment: CPython's build system does not depend on setuptools. The problem is that setuptools 60.0 introduced a .pth file and _distutils_hack to inject itself into Python import system. Under some circumstances Python's build system is affected by the hack and

[issue43224] Add support for PEP 646

2022-01-30 Thread Matthew Rahtz
Change by Matthew Rahtz : -- pull_requests: +29200 pull_request: https://github.com/python/cpython/pull/31019 ___ Python tracker ___

[issue46579] Compiling from source prints «ModuleNotFoundError: No module named 'binascii'»

2022-01-30 Thread Дилян Палаузов
Дилян Палаузов added the comment: The problem is, that Python’s install target depends on the system-wide setuptools, if there is system-wide setuptools. If there is no system-wide installed setuptools, apparently the installation works flawlessly. The solution is to tweak the source code

[issue39100] email.policy.SMTP throws AttributeError on invalid header

2022-01-30 Thread Anton Khirnov
Anton Khirnov added the comment: Ping yet again. Can anyone please look at this? -- ___ Python tracker ___ ___ Python-bugs-list

[issue43224] Add support for PEP 646

2022-01-30 Thread Matthew Rahtz
Change by Matthew Rahtz : -- pull_requests: +29199 pull_request: https://github.com/python/cpython/pull/31018 ___ Python tracker ___

[issue46554] Add append keyword argument to Path.write_text() and Path.write_bytes()

2022-01-30 Thread Barney Gale
Barney Gale added the comment: New users who want to add lines to a file will see this method and do: for line in blah: path.write_text(line, append=True) Which repeatedly opens/closes the file. This is a foot-shotgun; it shouldn't be added to pathlib IMO. --

[issue46521] codeop._maybe_compile passes code with error + triple quotes

2022-01-30 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > The message is off That's because the tokenizer sees the error before the parser even has time to see the other one. Not sure if is technically anything to fix here other than the order of reporting two different errors, which may be a bit tricky

[issue46579] Compiling from source prints «ModuleNotFoundError: No module named 'binascii'»

2022-01-30 Thread Christian Heimes
Christian Heimes added the comment: You are affected by setuptools bug https://github.com/pypa/setuptools/issues/3007 . The setuptools issues has a workaround. The next version of setuptools will come with a fix. -- nosy: +christian.heimes resolution: -> third party stage: ->

[issue46580] email.utils.unquote strips too many slashes

2022-01-30 Thread hbandi
New submission from hbandi : email.utils.unquote currently unescapes all backslashes, then unescapes all double quotes in the resulting string. it may removes too many backslashes. see GH PR for an example. -- components: email messages: 412137 nosy: barry, hbandi, r.david.murray

[issue42238] Deprecate suspicious.py?

2022-01-30 Thread Georg Brandl
Georg Brandl added the comment: Sure! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42238] Deprecate suspicious.py?

2022-01-30 Thread Julien Palard
Julien Palard added the comment: > You gave me a small shock, but I checked and it was only 11/12 years ago :D HAha! Either I misstyped 12 as 21, either I'm bad at math, sorry for the shock ;) > I'm fine with moving this out of tree; please coordinate with the Sphinx > maintainers whether

[issue46579] Compiling from source prints «ModuleNotFoundError: No module named 'binascii'»

2022-01-30 Thread Дилян Палаузов
New submission from Дилян Палаузов : I compile python from source: $ python --version Python 3.10.1+ $ cat /etc/config.site ax_cv_c_float_words_bigendian=no enable_silent_rules=yes $ git describe v3.10.2-74-ga5451c96a1 $ ./configure --enable-loadable-sqlite-extensions --disable-ipv6

[issue46524] test_peg_generator takes 8 minutes on Windows

2022-01-30 Thread Gregory P. Smith
Change by Gregory P. Smith : -- pull_requests: +29197 pull_request: https://github.com/python/cpython/pull/31015 ___ Python tracker ___

[issue46524] test_peg_generator takes 8 minutes on Windows

2022-01-30 Thread Gregory P. Smith
Gregory P. Smith added the comment: If a decent parallelism CI systems are not available from github (they seem stuck at 2-3 threads per https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners), an alternative approach could be to shard across multiple

[issue46524] test_peg_generator takes 8 minutes on Windows

2022-01-30 Thread Kumar Aditya
Change by Kumar Aditya : -- keywords: +patch pull_requests: +29196 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31017 ___ Python tracker ___