[issue45227] Control reaches end of non-void function in specialize.c

2021-09-16 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : Python/specialize.c: In function ‘load_method_fail_kind’: Python/specialize.c:878:1: warning: control reaches end of non-void function [-Wreturn-type] 878 | } | ^ -- components: Interpreter Core messages: 402001 nosy: serhiy.storchaka

[issue43413] tuple subclasses allow arbitrary kwargs

2021-09-16 Thread Raymond Hettinger
Raymond Hettinger added the comment: > Subclass of set can now define a __new__() method with > additional keyword parameters without overriding also __init__(). Is there any use case for this? Offhand, I can't think of any reason. The new code in set.__init__ is somewhat opaque and is

[issue20853] pdb "args" crashes when an arg is not printable

2021-09-16 Thread Andrei Kulakov
Andrei Kulakov added the comment: p/pp commands were fixed in this commit: https://github.com/python/cpython/commit/6544b2532df -- ___ Python tracker ___

[issue20853] pdb "args" crashes when an arg is not printable

2021-09-16 Thread Andrei Kulakov
Change by Andrei Kulakov : -- nosy: +andrei.avk nosy_count: 3.0 -> 4.0 pull_requests: +26814 pull_request: https://github.com/python/cpython/pull/28400 ___ Python tracker ___

[issue38085] Interrupting class creation in __init_subclass__ may lead to incorrect isinstance() and issubclass() results

2021-09-16 Thread Raymond Hettinger
Raymond Hettinger added the comment: Confirmed that this weird behavior is still present. Am not sure when someone will have the time and inclination to drill into the cause. -- nosy: +rhettinger ___ Python tracker

[issue38085] Interrupting class creation in __init_subclass__ may lead to incorrect isinstance() and issubclass() results

2021-09-16 Thread Raymond Hettinger
Change by Raymond Hettinger : -- nosy: +lukasz.langa ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45120] Windows cp encodings "UNDEFINED" entries update

2021-09-16 Thread Rafael Belo
Rafael Belo added the comment: As encodings are indeed a complex topic, debating this seems like a necessity. I researched this topic when i found an encoding issue regarding a mysql connector: https://github.com/PyMySQL/mysqlclient/pull/502 In MySQL itself there is a mislabel of "latin1"

[issue45226] Misleading error message when pathlib.Path.symlink_to() fails with permissions error

2021-09-16 Thread Maor Feldinger
Change by Maor Feldinger : -- components: +Library (Lib) ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45226] Misleading error message when pathlib.Path.symlink_to() fails with permissions error

2021-09-16 Thread Maor Feldinger
New submission from Maor Feldinger : Reproduction Steps: --- Create a symlink in a directory without permissions: >>> from pathlib import Path >>> >>> target = Path('/tmp/tmp/target') >>>

[issue45013] os.path.isfile fails on path exactly 260 Chars long in Windows

2021-09-16 Thread Steve Dower
Change by Steve Dower : -- resolution: -> third party stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue42627] urllib.request.getproxies() misparses Windows registry proxy settings

2021-09-16 Thread Steve Dower
Steve Dower added the comment: I think the PR is basically ready, unfortunately it's stuck behind a CI issue we only just fixed, and needs to merge from main before it'll clear. Posting here once CI is green will get attention faster than on GitHub. -- versions: +Python 3.11 -Python

[issue45055] Fresh build on Windows fails the first time for zlib.c

2021-09-16 Thread Steve Dower
Change by Steve Dower : -- keywords: +patch pull_requests: +26813 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28399 ___ Python tracker ___

[issue44848] Upgrade macOS and Windows installers to use SQLite 3.36.0

2021-09-16 Thread Steve Dower
Steve Dower added the comment: I (finally) posted the updated SQLite sources to the repo, so PR 27622 should build now. (I also retriggered CI) That said, it *might* need to merge from main again to take a fix for a CI-blocking issue. -- ___

[issue45020] Freeze all modules imported during startup.

2021-09-16 Thread Eric Snow
Change by Eric Snow : -- pull_requests: +26812 pull_request: https://github.com/python/cpython/pull/28398 ___ Python tracker ___

[issue45120] Windows cp encodings "UNDEFINED" entries update

2021-09-16 Thread Eryk Sun
Eryk Sun added the comment: > in CP1252, bytes \x81 \x8d \x8f \x90 \x9d map to "UNDEFINED", > whereas in bestfit1252, they map to \u0081 \u008d \u008f > \u0090 \u009d respectively This is the normal mapping in Windows, not a best-fit encoding. Within Windows, you can access the native

[issue34093] Reproducible pyc: FLAG_REF is not stable.

2021-09-16 Thread Eric Snow
Change by Eric Snow : -- pull_requests: +26811 pull_request: https://github.com/python/cpython/pull/28379 ___ Python tracker ___

[issue40503] PEP 615: Add zoneinfo module

2021-09-16 Thread Isuru Fernando
Isuru Fernando added the comment: > If anyone building Python for Windows shows up needing support for this, we > can re-visit the issue — I don't believe it's technically infeasible, just > that the usage patterns of Python on Windows mean that it's not worth doing. At conda-forge, we need

[issue17005] Add a topological sort algorithm

2021-09-16 Thread Éric Araujo
Change by Éric Araujo : -- versions: +Python 3.9 -Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45120] Windows cp encodings "UNDEFINED" entries update

2021-09-16 Thread Steve Dower
Steve Dower added the comment: Thanks for the PR. Just wanted to acknowledge that we've seen it. Unfortunately, I'm not feeling confident to take this change right now - encodings are a real minefield, and we need to think through the implications. It's been a while since I've done that,

[issue22699] Module source files not found when cross-compiling

2021-09-16 Thread Isuru Fernando
Change by Isuru Fernando : -- keywords: +patch nosy: +isuruf nosy_count: 8.0 -> 9.0 pull_requests: +26810 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28397 ___ Python tracker

[issue45215] Add docs for Mock name and parent args and deprecation warning when wrong args are passed

2021-09-16 Thread Andrei Kulakov
Andrei Kulakov added the comment: I forgot to include example of the breakage: >>> m=Mock(name=1) >>> m Traceback (most recent call last): File "", line 1, in File "/Users/ak/opensource/cpython2/Lib/unittest/mock.py", line 735, in __repr__ name = self._extract_mock_name()

[issue45220] Windows builds sometimes fail on Azure and GitHub Action: fatal error RC1116: RC terminating after preprocessor errors

2021-09-16 Thread Steve Dower
Change by Steve Dower : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue45224] Argparse shows required arguments as optional

2021-09-16 Thread Khalid Mammadov
Khalid Mammadov added the comment: This is another, larger example, where I actually stumbled on this when looking into Apache Airflow project. Below makes it confusing to see what is actually required and what not. Unless you look for square brackets. Would be it much nicer to list

[issue45020] Freeze all modules imported during startup.

2021-09-16 Thread Eric Snow
Eric Snow added the comment: New changeset fdc6b3d9316501d2f0068a1bf4334debc1949e62 by Eric Snow in branch 'main': bpo-45020: Drop the frozen .h files from the repo. (gh-28392) https://github.com/python/cpython/commit/fdc6b3d9316501d2f0068a1bf4334debc1949e62 --

[issue45224] Argparse shows required arguments as optional

2021-09-16 Thread Khalid Mammadov
Khalid Mammadov added the comment: May I suggest to change it again so we two sections: required and optional? This can help to be more clear from usage perspective. I have changed it locally and it looks like below: usage: myprogram.py [-h] [--foo FOO] --bar BAR required arguments:

[issue43574] Regression in overallocation for literal list initialization in v3.9+

2021-09-16 Thread Raymond Hettinger
Change by Raymond Hettinger : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45225] use map function instead of genexpr in capwords

2021-09-16 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks for the PR. -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___

[issue45225] use map function instead of genexpr in capwords

2021-09-16 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset a59ede244714455aa9ee8637608e019a20fa2ca6 by speedrun-program in branch 'main': bpo-45225: use map function instead of genexpr in capwords (GH-28342) https://github.com/python/cpython/commit/a59ede244714455aa9ee8637608e019a20fa2ca6

[issue45217] ConfigParser does not accept "No value" reversely to the doc

2021-09-16 Thread Nikita Sobolev
Change by Nikita Sobolev : -- keywords: +patch pull_requests: +26809 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28396 ___ Python tracker ___

[issue45220] Windows builds sometimes fail on Azure and GitHub Action: fatal error RC1116: RC terminating after preprocessor errors

2021-09-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset f798cef87faeb428bdb9ebf73df1a6146304 by Miss Islington (bot) in branch '3.10': bpo-45220: Avoid automatically selecting the Windows 11 SDK preview when building (GH-28393) (GH-28394)

[issue45217] ConfigParser does not accept "No value" reversely to the doc

2021-09-16 Thread Nikita Sobolev
Nikita Sobolev added the comment: Try this: ``` from configparser import ConfigParser ConfigParser(allow_no_value=True).read('bug.ini') ``` It should work! :) But, the docs are missing this config value here (which caused this issue): > Values can be omitted, in which case the key/value

[issue45063] PEP 657 Fine Grained Error Locations: omit indicators if they are one the whole line, to make tracebacks shorter

2021-09-16 Thread STINNER Victor
STINNER Victor added the comment: It seems that I will have to learn to use PYTHONNODEBUGRANGES=1 and -Xno_debug_ranges. I close the issue. -- resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracker

[issue45225] use map function instead of genexpr in capwords

2021-09-16 Thread speedrun-program
New submission from speedrun-program : In string.py, the capwords function passes str.join a generator expression, but the map function could be used instead. This is how capwords is currently written: ```py def capwords(s, sep=None): """capwords(s [,sep]) -> string

[issue45220] Windows builds sometimes fail on Azure and GitHub Action: fatal error RC1116: RC terminating after preprocessor errors

2021-09-16 Thread miss-islington
miss-islington added the comment: New changeset 7ad07eed885ae333d5dfc470b9c11ff2f7b229aa by Miss Islington (bot) in branch '3.9': bpo-45220: Avoid automatically selecting the Windows 11 SDK preview when building (GH-28393)

[issue45186] Marshal output isn't completely deterministic.

2021-09-16 Thread Eric Snow
Change by Eric Snow : -- resolution: -> duplicate stage: patch review -> resolved status: open -> closed superseder: -> Reproducible pyc: FLAG_REF is not stable. ___ Python tracker

[issue34093] Reproducible pyc: FLAG_REF is not stable.

2021-09-16 Thread Eric Snow
Eric Snow added the comment: FYI, I unknowingly created a duplicate of this issue a few days ago, bpo-45186, and created a PR for it: https://github.com/python/cpython/pull/28379. Interestingly, while I did that PR independently, it has a lot in common with Inada-san's second PR. My

[issue45220] Windows builds sometimes fail on Azure and GitHub Action: fatal error RC1116: RC terminating after preprocessor errors

2021-09-16 Thread Steve Dower
Steve Dower added the comment: New changeset f4b94b1f57827083990272b5f282aa1493ae2bf4 by Steve Dower in branch 'main': bpo-45220: Avoid automatically selecting the Windows 11 SDK preview when building (GH-28393)

[issue45220] Windows builds sometimes fail on Azure and GitHub Action: fatal error RC1116: RC terminating after preprocessor errors

2021-09-16 Thread miss-islington
Change by miss-islington : -- pull_requests: +26807 pull_request: https://github.com/python/cpython/pull/28395 ___ Python tracker ___

[issue45220] Windows builds sometimes fail on Azure and GitHub Action: fatal error RC1116: RC terminating after preprocessor errors

2021-09-16 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 7.0 -> 8.0 pull_requests: +26806 pull_request: https://github.com/python/cpython/pull/28394 ___ Python tracker

[issue45186] Marshal output isn't completely deterministic.

2021-09-16 Thread Eric Snow
Eric Snow added the comment: I'm closing this in favor of bpo-34093. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue33809] Expose `capture_locals` parameter in `traceback` convenience functions

2021-09-16 Thread Irit Katriel
Irit Katriel added the comment: Feel free to create a new issue and propose a patch. -- ___ Python tracker ___ ___

[issue33809] Expose `capture_locals` parameter in `traceback` convenience functions

2021-09-16 Thread Ulrich Petri
Ulrich Petri added the comment: > If we copy all the params from TracebackException (and it will be all params, > why only this one?) Why expose the internal machinery at all? If all additional parameters (and unless I'm miscounting we're talking about 2) were exposed on the convenience

[issue45220] Windows builds sometimes fail on Azure and GitHub Action: fatal error RC1116: RC terminating after preprocessor errors

2021-09-16 Thread Steve Dower
Change by Steve Dower : -- keywords: +patch pull_requests: +26805 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28393 ___ Python tracker ___

[issue45020] Freeze all modules imported during startup.

2021-09-16 Thread Eric Snow
Change by Eric Snow : -- pull_requests: +26804 pull_request: https://github.com/python/cpython/pull/28392 ___ Python tracker ___

[issue45220] Windows builds sometimes fail on Azure and GitHub Action: fatal error RC1116: RC terminating after preprocessor errors

2021-09-16 Thread Steve Dower
Steve Dower added the comment: > C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\um\winnt.h This appears to be the Windows 11 preview SDK, so most likely it's a bug in that. We'll obviously need some logic to not automatically upgrade to this SDK on build. --

[issue45220] Windows builds sometimes fail on Azure and GitHub Action: fatal error RC1116: RC terminating after preprocessor errors

2021-09-16 Thread Steve Dower
Steve Dower added the comment: The build order change was not backported (and should not be), so it's unrelated to the failures on 3.9 and 3.10. More likely this is either a problematic compiler update, or some additional data leaking into the build information (e.g. I could see this

[issue45116] Performance regression 3.10b1 and later on Windows: Py_DECREF() not inlined in PGO build

2021-09-16 Thread Steve Dower
Steve Dower added the comment: I agree with Raymond. Let's stop throwing more code at this until we've figured out what's going on and revert the change for now. -- ___ Python tracker

[issue45224] Argparse shows required arguments as optional

2021-09-16 Thread Raymond Hettinger
Raymond Hettinger added the comment: In Python3.10, "optional arguments" has been replaced with "options". We didn't backport the change because it risks breaking tests that rely on exact string matches. Also, it was really a bug, it was just an unfortunate choice of words. "Optional

[issue45224] Argparse shows required arguments as optional

2021-09-16 Thread Khalid Mammadov
New submission from Khalid Mammadov : Currently argparse module shows all optional arguments under "optional arguments" section of the help. It also includes those flags/arguments that are required as well. This add confusion to a user and does not properly show intention --

[issue45116] Performance regression 3.10b1 and later on Windows: Py_DECREF() not inlined in PGO build

2021-09-16 Thread Raymond Hettinger
Raymond Hettinger added the comment: These should be changed back to macros where inlining is guaranteed. -- ___ Python tracker ___

[issue45116] Performance regression 3.10b1 and later on Windows: Py_DECREF() not inlined in PGO build

2021-09-16 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +26803 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28390 ___ Python tracker ___

[issue45219] Expose indexing and other simple operations on dict-keys in internal API

2021-09-16 Thread Mark Shannon
Change by Mark Shannon : -- keywords: +patch pull_requests: +26802 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28389 ___ Python tracker ___

[issue45220] Windows builds sometimes fail on Azure and GitHub Action: fatal error RC1116: RC terminating after preprocessor errors

2021-09-16 Thread STINNER Victor
STINNER Victor added the comment: This issue is serious: it prevents to merge many pull requests, it blocks the Python development workflow. -- ___ Python tracker ___

[issue45220] Windows builds sometimes fail on Azure and GitHub Action: fatal error RC1116: RC terminating after preprocessor errors

2021-09-16 Thread STINNER Victor
STINNER Victor added the comment: > bpo-45188: Windows now regenerates frozen modules at the start of build > instead of late (GH-28322) Maybe the resource compiler needs a header file which is not generated yet, and so the build fails. In msg401948 logs, I don't see when header files are

[issue45020] Freeze all modules imported during startup.

2021-09-16 Thread Eric Snow
Eric Snow added the comment: I left a comment on bpo-45220. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue45220] Windows builds sometimes fail on Azure and GitHub Action: fatal error RC1116: RC terminating after preprocessor errors

2021-09-16 Thread STINNER Victor
STINNER Victor added the comment: > C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\um\winnt.h(253): > error RC2188: > D:\a\cpython\cpython\PCbuild\obj\311win32_Release\pythoncore\RCa05056(47) : > fatal error RC1116: RC terminating after preprocessor errors >

[issue45116] Performance regression 3.10b1 and later on Windows: Py_DECREF() not inlined in PGO build

2021-09-16 Thread neonene
neonene added the comment: I reported this issue to developercommunity of microsoft. https://developercommunity.visualstudio.com/t/1531987 -- ___ Python tracker ___

[issue45220] Windows builds sometimes fail on Azure and GitHub Action: fatal error RC1116: RC terminating after preprocessor errors

2021-09-16 Thread Eric Snow
Eric Snow added the comment: Of course, it might also be unrelated. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue45220] Windows builds sometimes fail on Azure and GitHub Action: fatal error RC1116: RC terminating after preprocessor errors

2021-09-16 Thread Eric Snow
Eric Snow added the comment: This is more likely to relate to bpo-45188, "De-couple the Windows builds from freezing modules.", for which the PR was merged yesterday: New changeset 09b4ad11f323f8702cde795e345b75e0fbb1a9a5 by Steve Dower in branch 'main': bpo-45188: Windows now regenerates

[issue45223] test_spawn_doesnt_hang (test.test_pty.PtyTest) fails when stdin isn't readable

2021-09-16 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch nosy: +python-dev nosy_count: 1.0 -> 2.0 pull_requests: +26801 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28388 ___ Python tracker

[issue45223] test_spawn_doesnt_hang (test.test_pty.PtyTest) fails when stdin isn't readable

2021-09-16 Thread Alexander Kanavin
New submission from Alexander Kanavin : I am observing the following under yocto's test harness: == ERROR: test_spawn_doesnt_hang (test.test_pty.PtyTest)

[issue45186] Marshal output isn't completely deterministic.

2021-09-16 Thread Eric Snow
Eric Snow added the comment: Thanks, Inada-san. That's super helpful. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue42969] pthread_exit & PyThread_exit_thread from PyEval_RestoreThread etc. are harmful

2021-09-16 Thread Jeremy Maitin-Shepard
Jeremy Maitin-Shepard added the comment: Regarding your suggestion of banning daemon threads: I happened to come across this bug not because of daemon threads but because of threads started by C++ code directly that call into Python APIs. The solution I am planning to implement is to add

[issue42969] pthread_exit & PyThread_exit_thread from PyEval_RestoreThread etc. are harmful

2021-09-16 Thread Jeremy Maitin-Shepard
Jeremy Maitin-Shepard added the comment: Regarding your suggestion of adding a hook like `Py_SetThreadExitCallback`, it seems like there are 4 plausible behaviors that such a callback may implement: 1. Abort the process immediately with an error. 2. Exit immediately with the original exit

[issue45222] test_venv: test_with_pip fails on version 3.8.12 with: pip._vendor.packaging.version.InvalidVersion: Invalid version: 'setuptools'

2021-09-16 Thread STINNER Victor
Change by STINNER Victor : -- title: test_with_pip fail -> test_venv: test_with_pip fails on version 3.8.12 with: pip._vendor.packaging.version.InvalidVersion: Invalid version: 'setuptools' ___ Python tracker

[issue45222] test_with_pip fail

2021-09-16 Thread STINNER Victor
STINNER Victor added the comment: > Today, I tried to upgrade Python 3 to version 3.8.12, the test case > test_with_pip failed. The error message is as follows: What is your operating system? How did you install Python? Which command did you type to run tests? --

[issue45222] test_with_pip fail

2021-09-16 Thread tongxiaoge
Change by tongxiaoge : -- components: +Build type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue45116] Performance regression 3.10b1 and later on Windows: Py_DECREF() not inlined in PGO build

2021-09-16 Thread Ken Jin
Change by Ken Jin : -- nosy: +kj ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44936] test_concurrent_futures: test_cancel_futures_wait_false() and test_interpreter_shutdown() failed on GHA Windows x64

2021-09-16 Thread STINNER Victor
STINNER Victor added the comment: Recent failure, Windows x64 job of GitHub Action: https://github.com/python/cpython/runs/3617689771 0:07:18 load avg: 6.20 [425/427/2] test_concurrent_futures failed (2 failures) (1 min 51 sec) (...)

[issue45222] test_with_pip fail

2021-09-16 Thread tongxiaoge
New submission from tongxiaoge : Today, I tried to upgrade Python 3 to version 3.8.12, the test case test_with_pip failed. The error message is as follows: [ 356s] test_with_pip (test.test_venv.EnsurePipTest) ... FAIL [ 356s] [ 356s]

[issue45220] Windows builds sometimes fail on Azure and GitHub Action: fatal error RC1116: RC terminating after preprocessor errors

2021-09-16 Thread STINNER Victor
STINNER Victor added the comment: It may be related to bpo-45020 which recently got a change: New changeset 9fd87a5fe5c468cf94265365091267838b004b7f by Eric Snow in branch 'main': bpo-45020: Revert "Drop the frozen .h files from the repo." (gh-28380)

[issue45020] Freeze all modules imported during startup.

2021-09-16 Thread STINNER Victor
STINNER Victor added the comment: Is bpo-45220 "Windows builds sometimes fail on Azure and GitHub Action: fatal error RC1116: RC terminating after preprocessor errors" related to this issue? -- nosy: +vstinner ___ Python tracker

[issue45220] Windows builds sometimes fail on Azure and GitHub Action: fatal error RC1116: RC terminating after preprocessor errors

2021-09-16 Thread STINNER Victor
Change by STINNER Victor : -- title: Windows builds sometimes fail on main branch: fatal error RC1116: RC terminating after preprocessor errors -> Windows builds sometimes fail on Azure and GitHub Action: fatal error RC1116: RC terminating after preprocessor errors

[issue45220] Windows builds sometimes fail on main branch

2021-09-16 Thread STINNER Victor
STINNER Victor added the comment: It also fails on the 3.9 and 3.10 on the Windows jobs of GitHub Action. -- nosy: +vstinner versions: +Python 3.10, Python 3.9 ___ Python tracker

[issue45220] Windows builds sometimes fail on main branch: fatal error RC1116: RC terminating after preprocessor errors

2021-09-16 Thread STINNER Victor
Change by STINNER Victor : -- title: Windows builds sometimes fail on main branch -> Windows builds sometimes fail on main branch: fatal error RC1116: RC terminating after preprocessor errors ___ Python tracker

[issue45220] Windows builds sometimes fail on main branch

2021-09-16 Thread Zachary Ware
Change by Zachary Ware : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker ___ ___

[issue45221] Linker flags starting with -h breaks setup.py (regression)

2021-09-16 Thread ux
New submission from ux : Hi, Since 3.8 (included), the following build command fails: LDFLAGS=-headerpad_max_install_names ./configure make With the following error: setup.py: error: argument -h/--help: ignored explicit argument 'eaderpad_max_install_names' A quick hack in

[issue44598] test_constructor (test.test_ssl.ContextTests) ... Fatal Python error: Segmentation fault

2021-09-16 Thread tongxiaoge
tongxiaoge added the comment: I'm sorry I haven't replied for a long time. I found that the OpenSSL version I use is 1.1.1f, which is probably caused by this. Today, I tried to upgrade Python 3 to 3.8.12, and the same problem occurred. I'll try again after upgrading the OpenSSL version

[issue45212] Dangling threads in skipped tests in test_socket

2021-09-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Yes, it is a deliberate choice. It is difficult to explain why it was passed without it -- dues to a specific order of calling tearDown() and callbacks registered with addCleanup() in different base classes. Using an event object would fix it too, but: *

[issue45220] Windows builds sometimes fail on main branch

2021-09-16 Thread Nikita Sobolev
New submission from Nikita Sobolev : I've started to notice that CPython's builds on Windows now simetimes fail with something like this: (both Azure and Github Actions are affected) ``` Using "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\msbuild.exe"

[issue45155] Add default arguments for int.to_bytes()

2021-09-16 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Sep 16, 2021, at 00:36, STINNER Victor wrote: > > The commit title is wrong, the default "big" not sys.byteorder: > >int.to_bytes(length=1, byteorder='big', *, signed=False) >int.from_bytes(bytes, byteorder='big', *, signed=False) Oops

[issue45128] test_multiprocessing_fork fails if run sequentially after test_genericalias and test_logging

2021-09-16 Thread Nikita Sobolev
Change by Nikita Sobolev : -- keywords: +patch pull_requests: +26800 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28387 ___ Python tracker ___

[issue24132] Direct sub-classing of pathlib.Path

2021-09-16 Thread Richard
Richard added the comment: I agree this would be nice. For now, I'm doing this as a hack: class Path(type(pathlib.Path())): ... -- nosy: +nyuszika7h ___ Python tracker

[issue45156] mock.seal has infinite recursion with int class attributes

2021-09-16 Thread STINNER Victor
STINNER Victor added the comment: Thanks for the report and the fix! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue45210] tp_dealloc docs should mention error indicator may be set

2021-09-16 Thread STINNER Victor
STINNER Victor added the comment: I'm not sure that it's a feature. Maybe we should modify to never call tp_dealloc with an exception set. -- nosy: +vstinner ___ Python tracker

[issue45211] Useful (expensive) information is discarded in getpath.c.

2021-09-16 Thread STINNER Victor
STINNER Victor added the comment: See also https://github.com/python/cpython/pull/23169 of bpo-42260 which rewrites getpath.c in pure Python. -- nosy: +vstinner ___ Python tracker

[issue45027] Allow basicConfig to configure any logger, not just root

2021-09-16 Thread Vinay Sajip
Vinay Sajip added the comment: > This change serves the purpose of making it easier to configure non-root > loggers. My point was, they don't need to configure non-root loggers (in terms of adding handlers) because the root logger's handlers will normally be used for all loggers. >

[issue45212] Dangling threads in skipped tests in test_socket

2021-09-16 Thread STINNER Victor
STINNER Victor added the comment: def testWithTimeoutTriggeredSend(self): conn = self.accept_conn() conn.recv(88192) +time.sleep(1) Was it a deliberate choice to add a sleep of 1 second? If yes, can you please add a comment to explain why? -- nosy: +vstinner

[issue45218] cmath.log has an invalid signature

2021-09-16 Thread STINNER Victor
STINNER Victor added the comment: The current Argument Clinic syntax for math.log() is: -- /*[clinic input] math.log x:object [ base: object(c_default="NULL") = math.e ] / Return the logarithm of x to the given base. (...) --

[issue45218] cmath.log has an invalid signature

2021-09-16 Thread Mark Dickinson
Mark Dickinson added the comment: > and `log` base `math.e` is likely to be less accurate than plain natural log Nope, that's nonsense, since the two-argument form simply divides by log(base), and while log(math.e) is mathematically not exactly 1 (its exact value, assuming IEEE 754

[issue45218] cmath.log has an invalid signature

2021-09-16 Thread Mark Dickinson
Mark Dickinson added the comment: See also #36306 and #29299. There may be nothing to be done here, but it would be nice if math.log and cmath.log at least behaved in the same way. A default of `None` doesn't seem like a terrible option. (BTW, just to forestall the suggestion, a default of

[issue45218] cmath.log has an invalid signature

2021-09-16 Thread Mark Dickinson
Mark Dickinson added the comment: Issue #43067 is similar. I'm not sure what the best solution is in this case: - un-argument-clinic cmath.log, and document the signature using two lines (similar to range): log(z) log(z, base) - change the behaviour of cmath.log so that the

[issue45219] Expose indexing and other simple operations on dict-keys in internal API

2021-09-16 Thread Mark Shannon
New submission from Mark Shannon : Specialization and other optimizations rely on shared dictionary key properties (version number, no deletions, etc). However checking those properties during specialization is tricky and rather clunky as the dict-keys can only be tested indirectly through a

[issue45183] Unexpected exception with zip importer

2021-09-16 Thread Ronald Oussoren
Ronald Oussoren added the comment: I just noticed that I'm unnecessarily obtuse in my description of a possible fix, the diff (without test update): % git diff Lib/zipimport.py (main)cpython diff --git

[issue45212] Dangling threads in skipped tests in test_socket

2021-09-16 Thread miss-islington
Change by miss-islington : -- pull_requests: +26799 pull_request: https://github.com/python/cpython/pull/28385 ___ Python tracker ___

[issue45212] Dangling threads in skipped tests in test_socket

2021-09-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 7dacb70485a0910eb298c24b4d051720ca56fb91 by Serhiy Storchaka in branch 'main': bpo-45212: Fix dangling threads in skipped tests in test_socket (GH-28361) https://github.com/python/cpython/commit/7dacb70485a0910eb298c24b4d051720ca56fb91

[issue45212] Dangling threads in skipped tests in test_socket

2021-09-16 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 1.0 -> 2.0 pull_requests: +26798 pull_request: https://github.com/python/cpython/pull/28384 ___ Python tracker

[issue45218] cmath.log has an invalid signature

2021-09-16 Thread Mark Dickinson
Change by Mark Dickinson : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45218] cmath.log has an invalid signature

2021-09-16 Thread Mark Dickinson
New submission from Mark Dickinson : inspect.signature reports that the cmath.log function has an invalid signature: Python 3.11.0a0 (heads/fix-44954:d0ea569eb5, Aug 19 2021, 14:59:04) [Clang 12.0.0 (clang-1200.0.32.29)] on darwin Type "help", "copyright", "credits" or "license" for more

[issue45217] ConfigParser does not accept "No value" reversely to the doc

2021-09-16 Thread sbougnoux
New submission from sbougnoux : Just the simple following config crashes """ [Bug] Here """ Hopefully using "Here=" solves the issue, but the doc claims it shall work. https://docs.python.org/3.8/library/configparser.html?highlight=configparser#supported-ini-file-structure Save the config in

  1   2   >