[issue41857] Document timeout arguments to poll() in select module

2022-01-21 Thread Tal Einat
Change by Tal Einat : -- pull_requests: +28929 pull_request: https://github.com/python/cpython/pull/30742 ___ Python tracker ___

[issue46452] Possible false detection of Windows LZMA library as a malware by Avast

2022-01-21 Thread Nathan/Eilisha Shiraini
New submission from Nathan/Eilisha Shiraini : Sending this here for information mostly On Windows, a recent (2022-01-21) Avast update makes it target the binary LZMA module embedded in Python 3.9 and 3.10. I'm talking about this file: \DLLs\_lzma.pyd I've run a VirusTotal scan of the 3.10

[issue42197] Disable automatic update of frame locals during tracing

2022-01-21 Thread Mark Shannon
Mark Shannon added the comment: While the various frame and debugger PEPs that are open offer a better solution to this, they might not be accepted for 3.11. So I'd like to revisit this. Removing the calls to `PyFrame_FastToLocals` and friends cuts the overhead of tracing down a lot. A

[issue21987] TarFile.getmember on directory requires trailing slash iff over 100 chars

2022-01-21 Thread miss-islington
miss-islington added the comment: New changeset 1d11fdd3eeff77ba600278433b7ab0ce4d2a7f3b by Miss Islington (bot) in branch '3.10': bpo-21987: Fix TarFile.getmember getting a dir with a trailing slash (GH-30283) https://github.com/python/cpython/commit/1d11fdd3eeff77ba600278433b7ab0ce4d2a7f3b

[issue45452] Support crash tolerance feature for gdbm module

2022-01-21 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45452] Support crash tolerance feature for gdbm module

2022-01-21 Thread Dong-hee Na
Dong-hee Na added the comment: After discussion with Victor by using DM, I decided to provide high-level API instead of low-level APIs. - gdbm.open(filename, snapshots=(foo, bar)) will do everything at once. Regards, Dong-hee -- ___ Python

[issue46449] Deep-freezed modules create inconsistency in sys.gettotalrefcount() (_Py_Reftotal)

2022-01-21 Thread STINNER Victor
STINNER Victor added the comment: > This reminds me, since https://github.com/python/cpython/pull/30715 (which I > merged yesterday) the deep-frozen objects also reference the small ints > directly, as well as the singleton for b"". Is this even safe across > Py_Finalize()/Py_Initialize()?

[issue46449] Deep-freezed modules create inconsistency in sys.gettotalrefcount() (_Py_Reftotal)

2022-01-21 Thread STINNER Victor
STINNER Victor added the comment: > Hm, the deep-frozen objects are statically initialized with a very large > refcount that isn't accounted for (they are intended to be immortal). It > seems that Py_Finalize() somehow decrefs those objects. I guess this means we > need some kind of flag

[issue46080] argparse.BooleanOptionalAction with default=argparse.SUPPRESS and help specified raises exception

2022-01-21 Thread Tal Einat
Tal Einat added the comment: Thanks for the report and the PR, Felix! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue44686] use pkgutil.resolve_name in unittest.mock

2022-01-21 Thread Yassir Karroum
Yassir Karroum added the comment: I think we can close this one -- nosy: +ukarroum ___ Python tracker ___ ___ Python-bugs-list

[issue46450] namedtuple leaks data between instances when field's default value is empty list

2022-01-21 Thread Eric V. Smith
Eric V. Smith added the comment: Also see https://docs.python.org/3/faq/programming.html#why-are-default-values-shared-between-objects -- nosy: +eric.smith resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue23325] Turn SIG_DFL and SIG_IGN into functions

2022-01-21 Thread Christian Heimes
Christian Heimes added the comment: Understood, thanks! A trivial fix for the integer comparison bug would solve my issue: --- a/Modules/signalmodule.c +++ b/Modules/signalmodule.c @@ -527,21 +527,20 @@ signal_signal_impl(PyObject *module, int signalnum, PyObject *handler)

[issue34875] Change .js mime to "text/javascript"

2022-01-21 Thread jiahua wang
Change by jiahua wang : -- nosy: +wangjiahua nosy_count: 3.0 -> 4.0 pull_requests: +28927 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/30740 ___ Python tracker

[issue46452] Possible false detection of Windows LZMA library as a malware by Avast

2022-01-21 Thread Nathan/Eilisha Shiraini
Nathan/Eilisha Shiraini added the comment: Also I should have added: I have already reported the file to Avast as a possible false positive, and I'm working on an app that heavily relies on LZMA so this has a high impact for me. -- ___ Python

[issue34875] Change .js mime to "text/javascript"

2022-01-21 Thread Oleg Iarygin
Oleg Iarygin added the comment: Myles, it looks like the draft 14 contains a mismatch in 6.2.1: > # 6.2.1. text/ecmascript > > Type name: application > Subtype name: ecmascript In header it's `text`, in details it's `application`. Is it intended? I believe that a typo wouldn't pass though

[issue46417] Clear static types in Py_Finalize() for embedded Python

2022-01-21 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +28930 pull_request: https://github.com/python/cpython/pull/30743 ___ Python tracker ___

[issue41857] Document timeout arguments to poll() in select module

2022-01-21 Thread Tal Einat
Tal Einat added the comment: New changeset f6e5972fa984c10d47694973db1c91c6486d654a by Tal Einat in branch '3.10': [3.10] bpo-41857: mention timeout argument units in select.poll() and select.depoll() doc-strings (GH-22406)

[issue41857] Document timeout arguments to poll() in select module

2022-01-21 Thread Tal Einat
Change by Tal Einat : -- pull_requests: +28928 pull_request: https://github.com/python/cpython/pull/30741 ___ Python tracker ___

[issue46448] TypedDict inspect.signature error

2022-01-21 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: This could be due to issue40187 -- nosy: +serhiy.storchaka, xtreak ___ Python tracker ___

[issue46399] Addition of `mapping` attribute to dict views classes has inadvertently broken type-checkers

2022-01-21 Thread Akuli
Akuli added the comment: I now agree that `# type: ignore` in dict subclasses makes sense the most, and exposing the views doesn't solve practical problems. We talked more with the people who brought this up in typing. Turns out that the correct solution to their problems was to just

[issue46417] Clear static types in Py_Finalize() for embedded Python

2022-01-21 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +28931 pull_request: https://github.com/python/cpython/pull/30744 ___ Python tracker ___

[issue31876] python363.chm includes gibberish

2022-01-21 Thread Irit Katriel
Irit Katriel added the comment: 3.6 is no longer maintained. -- nosy: +iritkatriel resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker

[issue41857] Document timeout arguments to poll() in select module

2022-01-21 Thread Tal Einat
Tal Einat added the comment: Thanks for this improvement, Zane! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue41857] Document timeout arguments to poll() in select module

2022-01-21 Thread Tal Einat
Tal Einat added the comment: New changeset 656971e4953a70a6048170377888db5530eea0a6 by Tal Einat in branch '3.9': [3.9] bpo-41857: mention timeout argument units in select.poll() and select.depoll() doc-strings (GH-22406)

[issue42197] Disable automatic update of frame locals during tracing

2022-01-21 Thread Mark Shannon
Mark Shannon added the comment: Yes the PR has all the changes. It is just the changes sysmodule.c that you need: https://github.com/python/cpython/pull/23028/files#diff-a3a5c73931235f7f344c072dc755d6508e13923db3f5d581c5e88652075871cb -- ___

[issue46454] '0 -> /dev/null' is lost

2022-01-21 Thread tongxiaoge
New submission from tongxiaoge : I found a problem in the environment of python2 and python3, as follows: in python2: ``` VM-0-13-suse:~ # python2 -V Python 2.7.13 VM-0-13-suse:~ # VM-0-13-suse:~ # ps -aux|grep python2 root 29414 0.1 0.7 37096 6632 pts/3S+ 19:41 0:00 python2

[issue46454] '0 -> /dev/null' is lost

2022-01-21 Thread tongxiaoge
Change by tongxiaoge : Added file: https://bugs.python.org/file50573/python3.10.0-out.png ___ Python tracker ___ ___ Python-bugs-list

[issue46454] '0 -> /dev/null' is lost

2022-01-21 Thread tongxiaoge
Change by tongxiaoge : Added file: https://bugs.python.org/file50574/python3.4.6-out.png ___ Python tracker ___ ___ Python-bugs-list

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

2022-01-21 Thread STINNER Victor
STINNER Victor added the comment: Using "./python -IsS" command, sys.modules now only has 3 extensions which are not created by PyModuleDef_Init(): * builtins * _io * sys The builtins and sys extensions use many static types. Converting these static types to heap types is blocked by

[issue46417] Clear static types in Py_Finalize() for embedded Python

2022-01-21 Thread STINNER Victor
STINNER Victor added the comment: New changeset ea38e436fe1e585fb8c1f0badf5482f525b7f9ff by Victor Stinner in branch 'main': bpo-46417: Call _PyDebug_PrintTotalRefs() later (GH-30744) https://github.com/python/cpython/commit/ea38e436fe1e585fb8c1f0badf5482f525b7f9ff --

[issue46455] Deprecate / remove os.name=java

2022-01-21 Thread Xavier Morel
New submission from Xavier Morel : os.name is defined as: > The following names have currently been registered: 'posix', 'nt', 'java'. In my understanding, the value `'java'` is for the benefit of jython, which is rather poorly. Other third-party implementations which may or may not have a

[issue46425] Multiple test modules fail to run if invoked directly

2022-01-21 Thread Nikita Sobolev
Change by Nikita Sobolev : -- pull_requests: +28933 pull_request: https://github.com/python/cpython/pull/30746 ___ Python tracker ___

[issue46417] Clear static types in Py_Finalize() for embedded Python

2022-01-21 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +28937 pull_request: https://github.com/python/cpython/pull/30750 ___ Python tracker ___

[issue46452] Possible false detection of Windows LZMA library as a malware by Avast

2022-01-21 Thread Steve Dower
Steve Dower added the comment: I don't think we've changed anything here in years, so I'd be very surprised if something new was in there. More likely somebody PyInstaller'd some malware and the scanners picked up a generic part of it as the signature. Reporting it as a false positive

[issue46456] Add mime type "image/avif"

2022-01-21 Thread jiahua wang
New submission from jiahua wang : https://www.iana.org/assignments/media-types/image/avif -- components: Library (Lib) messages: 411134 nosy: wangjiahua priority: normal severity: normal status: open title: Add mime type "image/avif" versions: Python 3.11

[issue46458] Optimise try-except code generation for the happy path

2022-01-21 Thread Irit Katriel
New submission from Irit Katriel : The compiler emits code for try-except-else-finally in the order in which it appears in the source, but it could probably produce faster code if it optimizes for the no-exception path. -- assignee: iritkatriel components: Interpreter Core messages:

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

2022-01-21 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +28932 pull_request: https://github.com/python/cpython/pull/30744 ___ Python tracker ___

[issue46399] Addition of `mapping` attribute to dict views classes has inadvertently broken type-checkers

2022-01-21 Thread Alex Waygood
Alex Waygood added the comment: I have also been persuaded that my suggested solution is not the way to go. Thanks everybody for the useful discussion. -- ___ Python tracker

[issue46417] Clear static types in Py_Finalize() for embedded Python

2022-01-21 Thread STINNER Victor
STINNER Victor added the comment: New changeset 595225e86dcc6ea520a584839925a878dce7a9b2 by Victor Stinner in branch 'main': bpo-46417: Py_Finalize() clears static types (GH-30743) https://github.com/python/cpython/commit/595225e86dcc6ea520a584839925a878dce7a9b2 --

[issue40757] tarfile: ignore_zeros = True won't raise exception even on invalid (non-zero) TARs

2022-01-21 Thread Irit Katriel
Irit Katriel added the comment: I am unable to reproduce this on 3.11: >>> import tarfile >>> tarfile.open( "foo.txt" ) Traceback (most recent call last): File "", line 1, in File "/Users/iritkatriel/src/cpython-1/Lib/tarfile.py", line 1613, in open return func(name, "r", fileobj,

[issue40729] Update the list of auto-generated files in .gitattributes

2022-01-21 Thread Batuhan Taskaya
New submission from Batuhan Taskaya : Superseeded by https://github.com/python/core-workflow/issues/425 -- resolution: -> later stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue10202] ftplib doesn't check close status after sending file

2022-01-21 Thread mike mcleod
Change by mike mcleod : -- keywords: +patch pull_requests: +28934 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/30747 ___ Python tracker

[issue46038] Mark /configure file as generated in .gitattributes

2022-01-21 Thread Oleg Iarygin
Oleg Iarygin added the comment: Superseded by . The PR itself is included as a part of PR30745. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue46417] Clear static types in Py_Finalize() for embedded Python

2022-01-21 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +28936 pull_request: https://github.com/python/cpython/pull/30749 ___ Python tracker ___

[issue46454] '0 -> /dev/null' is lost

2022-01-21 Thread tongxiaoge
Change by tongxiaoge : Added file: https://bugs.python.org/file50570/fd.py ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue46071] Graphlib documentation (edge direction)

2022-01-21 Thread David Mc Dougall
David Mc Dougall added the comment: I can post literally hundreds of examples of directed graphs that are traversable in the forward direction. This might be the only one which is *only* traversable backwards. > As to the meaning of "point to" Here is one: If I have a pointer in memory, I

[issue42197] Disable automatic update of frame locals during tracing

2022-01-21 Thread Ned Batchelder
Ned Batchelder added the comment: Off the top of my head, I'm not sure this affects coverage.py at all, but I could be missing something. Does PR 23028 have all the changes, or is there some other python/cpython branch I can test with? -- ___

[issue42197] Disable automatic update of frame locals during tracing

2022-01-21 Thread Mark Shannon
Mark Shannon added the comment: Or you can use this branch: https://github.com/faster-cpython/cpython/tree/dont-fast-to-locals-in-trampoline -- ___ Python tracker ___

[issue46212] Avoid temporary `varargs` tuple creation in argument passing

2022-01-21 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: > AFAIK we have committed _PyArg_UnpackKeywordsWithVararg on 3.11 alpha, so I > think it should be fine. I see, so no ABI worries then. -- ___ Python tracker

[issue46458] Optimise try-except code generation for the happy path

2022-01-21 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +patch pull_requests: +28938 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30751 ___ Python tracker ___

[issue46453] argparse subparser help text is not escaped before string formatting

2022-01-21 Thread Peder Bergebakken Sundt
Change by Peder Bergebakken Sundt : -- type: -> crash ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46454] '0 -> /dev/null' is lost

2022-01-21 Thread tongxiaoge
Change by tongxiaoge : Added file: https://bugs.python.org/file50571/fd2.py ___ Python tracker ___ ___ Python-bugs-list mailing list

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

2022-01-21 Thread STINNER Victor
STINNER Victor added the comment: I mark this issue as a duplicate of bpo-38865. -- resolution: -> duplicate stage: patch review -> resolved status: open -> closed superseder: -> [subinterpreters] Can Py_Finalize() be called if the current interpreter is not the main interpreter?

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

2022-01-21 Thread STINNER Victor
STINNER Victor added the comment: I marked bpo-37776 "[subinterpreters] Test Py_Finalize() from a subinterpreter" as a duplicate of this issue. -- ___ Python tracker ___

[issue29858] inspect.signature includes bound argument for wrappers around decorated bound methods

2022-01-21 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.7, Python 3.8 ___ Python tracker ___ ___

[issue46455] Deprecate / remove os.name=java

2022-01-21 Thread Xavier Morel
Xavier Morel added the comment: PS: "platform.system()" also documents `Java` as a value which doesn't seem to make that much sense, however it's an open set so probably less of an issue / source of confusion. -- ___ Python tracker

[issue45877] Inconsistency in minimal supported version of Microsoft Visual Studio

2022-01-21 Thread Oleg Iarygin
Change by Oleg Iarygin : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue46427] Correct MSBuild's configuration for _freeze_module.exe

2022-01-21 Thread Steve Dower
Steve Dower added the comment: Windows ARM64 devices all support x86 and x64 emulation, so while it's less than ideal performance-wise to use a non-native build for this step, it's hardly fatal. That step doesn't rely on the underlying architecture, just the current Python bytecode format

[issue46450] namedtuple leaks data between instances when field's default value is empty list

2022-01-21 Thread maximus733
maximus733 <3ed7qja...@liamekaens.com> added the comment: Thanks for the clarification. -- ___ Python tracker ___ ___

[issue46454] '0 -> /dev/null' is lost

2022-01-21 Thread tongxiaoge
Change by tongxiaoge : Added file: https://bugs.python.org/file50572/python2.7.13-out.png ___ Python tracker ___ ___ Python-bugs-list

[issue46417] Clear static types in Py_Finalize() for embedded Python

2022-01-21 Thread STINNER Victor
STINNER Victor added the comment: Maybe the problem is that I changed the order in which types are initialized in _PyTypes_InitTypes()? So far, test_unittest crashed on 4 buildbot workers: * s390x Debian 3.x: ./configure --prefix '$(PWD)/target' --with-pydebug

[issue46038] Mark /configure file as generated in .gitattributes

2022-01-21 Thread Oleg Iarygin
Change by Oleg Iarygin : -- pull_requests: +28935 pull_request: https://github.com/python/cpython/pull/30745 ___ Python tracker ___

[issue46452] Possible false detection of Windows LZMA library as a malware by Avast

2022-01-21 Thread Nathan/Eilisha Shiraini
Nathan/Eilisha Shiraini added the comment: Thanks for the quick response. It seems Avast was just as quick, I updated my AV's databases a few minutes ago and now it doesn't repost the files as malware. Same for the VirusTotal scans. -- ___ Python

[issue46457] test_unittest: TestAsyncCase.test_debug_cleanup_same_loop() hangs with gc.set_threshold(500)

2022-01-21 Thread STINNER Victor
New submission from STINNER Victor : The following command hangs: ./python -u -m test -v test_unittest -m test_debug_cleanup_same_loop -v 2>/dev/null if the following patch is applied on Python: diff --git a/Lib/unittest/test/test_async_case.py b/Lib/unittest/test/test_async_case.py index

[issue46454] '0 -> /dev/null' is lost

2022-01-21 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: This sounds like a consequence of PEP 446. -- nosy: +Jelle Zijlstra ___ Python tracker ___ ___

[issue46417] Clear static types in Py_Finalize() for embedded Python

2022-01-21 Thread STINNER Victor
STINNER Victor added the comment: New changeset fda88864980ffce57add0ea03fb9cbda2798975e by Victor Stinner in branch 'main': bpo-46417: Revert remove_subclass() change (GH-30750) https://github.com/python/cpython/commit/fda88864980ffce57add0ea03fb9cbda2798975e --

[issue46459] Installing python to external drive (USB) using python installer failure

2022-01-21 Thread oMqngo
New submission from oMqngo : When trying to install python to a external drive, such as a USB drive, using the python installer (while having python installed on the local PC), the installer continues to the "download finished" window without installing anything to the USB drive. --

[issue46453] argparse subparser help text is not escaped before string formatting

2022-01-21 Thread Peder Bergebakken Sundt
New submission from Peder Bergebakken Sundt : The `help` text in add_argument of a subparser in argparse can not contain a `%`, as it will affect string formatting. This often results in an exception. See repro.py for a reproduction, tested in Python 3.7 - 3.10. -- components:

[issue46417] Clear static types in Py_Finalize() for embedded Python

2022-01-21 Thread STINNER Victor
STINNER Victor added the comment: > bpo-46417: Py_Finalize() clears static types (GH-30743) Oh, test_unittest crashed on s390x Debian 3.x: https://buildbot.python.org/all/#/builders/49/builds/1789 I fail to see the relationship between my change and this crash. I don't expect test_unittest

[issue46212] Avoid temporary `varargs` tuple creation in argument passing

2022-01-21 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: > Note that _PyArg_UnpackKeywordsWithVararg is defined with PyAPI_FUNC. > Changing its argument spec is strictly a backwards incompatible change, IIUC. AFAIK we have committed _PyArg_UnpackKeywordsWithVararg on 3.11 alpha, so I think it should be fine.

[issue46434] pdb help fails with AttributeError when using Windows embeddable package

2022-01-21 Thread miss-islington
miss-islington added the comment: New changeset 05063fa15c594012e6dc9c2c7a3ea72e7cb933f2 by Miss Islington (bot) in branch '3.10': bpo-46434: Handle missing docstrings in pdb help (GH-30705) https://github.com/python/cpython/commit/05063fa15c594012e6dc9c2c7a3ea72e7cb933f2 --

[issue43118] inspect.signature() raises RuntimeError on failed to resolve the default argument value

2022-01-21 Thread Guido van Rossum
Guido van Rossum added the comment: New changeset 881a763cfe07ef4a5806ec78f13a9bc99e8909dc by Weipeng Hong in branch 'main': bpo-43118: Fix bug in inspect.signature around 'base.__text_signature__' (GH-30285) https://github.com/python/cpython/commit/881a763cfe07ef4a5806ec78f13a9bc99e8909dc

[issue43118] inspect.signature() raises RuntimeError on failed to resolve the default argument value

2022-01-21 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +28951 pull_request: https://github.com/python/cpython/pull/30765 ___ Python tracker

[issue43118] inspect.signature() raises RuntimeError on failed to resolve the default argument value

2022-01-21 Thread miss-islington
Change by miss-islington : -- pull_requests: +28952 pull_request: https://github.com/python/cpython/pull/30766 ___ Python tracker ___

[issue46390] Multiple test failures on Alpine 3.15 / musl-1.2.2-r7

2022-01-21 Thread Christian Heimes
Change by Christian Heimes : Removed file: https://bugs.python.org/file50562/alpine315-tests.txt ___ Python tracker ___ ___

[issue46463] escape4chm.py script causing AttributeError in docs build

2022-01-21 Thread Steve Dower
Change by Steve Dower : -- keywords: +patch pull_requests: +28953 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30768 ___ Python tracker ___

[issue46445] Multiple inheritance of TypedDict is not covered in `test_typing`

2022-01-21 Thread Guido van Rossum
Guido van Rossum added the comment: New changeset 65b88d5e01c845c0cfa3ff61bc8b2faec8f67a57 by Nikita Sobolev in branch 'main': bpo-46445: Cover multiple inheritance of `TypedDict` in `test_typing` (GH-30719) https://github.com/python/cpython/commit/65b88d5e01c845c0cfa3ff61bc8b2faec8f67a57

[issue46445] Multiple inheritance of TypedDict is not covered in `test_typing`

2022-01-21 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +28956 pull_request: https://github.com/python/cpython/pull/30770 ___ Python tracker

[issue46455] Deprecate / remove os.name=java

2022-01-21 Thread Éric Araujo
Change by Éric Araujo : -- versions: -Python 3.10, Python 3.7, Python 3.8, Python 3.9 ___ Python tracker ___ ___ Python-bugs-list

[issue46434] pdb help fails with AttributeError when using Windows embeddable package

2022-01-21 Thread miss-islington
Change by miss-islington : -- pull_requests: +28946 pull_request: https://github.com/python/cpython/pull/30759 ___ Python tracker ___

[issue46434] pdb help fails with AttributeError when using Windows embeddable package

2022-01-21 Thread Steve Dower
Steve Dower added the comment: Thanks for the contribution! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue46417] Clear static types in Py_Finalize() for embedded Python

2022-01-21 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +28947 pull_request: https://github.com/python/cpython/pull/30760 ___ Python tracker ___

[issue46417] Clear static types in Py_Finalize() for embedded Python

2022-01-21 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +28948 pull_request: https://github.com/python/cpython/pull/30761 ___ Python tracker ___

[issue46463] escape4chm.py script causing AttributeError in docs build

2022-01-21 Thread Steve Dower
New submission from Steve Dower : Exception occurred: File "D:\a\1\s\Doc\tools\extensions\escape4chm.py", line 44, in fixup_keywords with app.builder.open_file(outdir, outname + '.hhk', 'r') as f: AttributeError: 'HTMLHelpBuilder' object has no attribute 'open_file' The full traceback has

[issue46071] Graphlib documentation (edge direction)

2022-01-21 Thread Dennis Sweeney
Dennis Sweeney added the comment: I think I can summarize: Tim + Current Docs: * static_order to return [A, B] * Conceptual/abstract directed graph direction is A --> B * A is a predecessor of B * predecessor mapping to be passed is {B: [A]} David suggests: * static_order returns [A, B] *

[issue46124] Deprecation warning in zoneinfo module

2022-01-21 Thread miss-islington
miss-islington added the comment: New changeset 00b2b578bd9e516d601063a086b03177f546bcdd by Jason R. Coombs in branch 'main': bpo-46124: Update zoneinfo to rely on importlib.resources traversable API. (GH-30190)

[issue46390] Multiple test failures on Alpine 3.15 / musl-1.2.2-r7

2022-01-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: The first alpine315-tests.txt appears to be a truncated version of the second. Were you expecting the first to be automatically replaced? Should it be unlinked? https://www.alpinelinux.org "Alpine Linux is a security-oriented, lightweight Linux

[issue46417] Clear static types in Py_Finalize() for embedded Python

2022-01-21 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +28950 pull_request: https://github.com/python/cpython/pull/30764 ___ Python tracker ___

[issue46396] Typing: test invalid usages of `Concatenate`

2022-01-21 Thread Guido van Rossum
Guido van Rossum added the comment: Arguably the runtime should not check for incorrect calls to Concatenate. That's the job of static type checkers. So maybe that code could just be removed? (We don't bother checking things like list[0] either.) --

[issue46419] Incomplete Comparison to C++ Methods

2022-01-21 Thread Éric Araujo
Éric Araujo added the comment: Maybe the reference should be removed entirely! Nowadays there may be more people knowing Python and how its methods work than C++. -- nosy: +eric.araujo, gvanrossum ___ Python tracker

[issue46439] Clarify urllib.request.add_header documentation

2022-01-21 Thread Éric Araujo
Éric Araujo added the comment: I think the doc assumes that people will expect headers to be added for redirections, and if not the existence of the method `add_unredirected_header` that’s documented just after would tell it. That said, the addition does no harm, so why not be explicit.

[issue40757] tarfile: ignore_zeros = True won't raise exception even on invalid (non-zero) TARs

2022-01-21 Thread mxmlnkn
mxmlnkn added the comment: I think you misunderstood. foo.txt is a file, which actually exists but contains non-TAR data. E.g. try: base64 /dev/urandom | head -c $(( 2048 )) > foo.txt python3 -c 'import tarfile; print(list(tarfile.open("foo.txt")))' Traceback (most recent call last):

[issue46071] Graphlib documentation (edge direction)

2022-01-21 Thread David Mc Dougall
David Mc Dougall added the comment: No, the code works fine. I just wish the docs weren't so muddled. I wish the docs started by saying: > The graph is a dict of {'start_node': ['end_nodes',]} > The topological sorter puts the end_nodes before their start_nodes. [note: this is what the

[issue46417] Clear static types in Py_Finalize() for embedded Python

2022-01-21 Thread STINNER Victor
STINNER Victor added the comment: New changeset bc67f189fdd62ed42013fa05cd0ef2df498f5967 by Victor Stinner in branch 'main': bpo-46417: Add _PyType_CAST() macro (GH-30760) https://github.com/python/cpython/commit/bc67f189fdd62ed42013fa05cd0ef2df498f5967 --

[issue46417] Clear static types in Py_Finalize() for embedded Python

2022-01-21 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +28954 pull_request: https://github.com/python/cpython/pull/30769 ___ Python tracker ___

[issue46439] Clarify urllib.request.add_header documentation

2022-01-21 Thread Ashwin Ramaswami
Ashwin Ramaswami added the comment: Yes -- additionally, since other http libraries (I believe) usually don't forward headers on redirections by default, the default for urllib.request is counterintuitive (and maybe even not ideal for security reasons?) and would benefit from additional

[issue42197] Disable automatic update of frame locals during tracing

2022-01-21 Thread Ned Batchelder
Ned Batchelder added the comment: I ran the coverage.py test suite using https://github.com/faster-cpython/cpython/tree/dont-fast-to-locals-in-trampoline, and there were no failures. -- ___ Python tracker

[issue24711] Document getpass.getpass behavior on ^C

2022-01-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: In IDLE Shell, with either ^C or ^D, >> try: ... input('??') ... except: ... 'done' ... ... ?? 'done' 'getpass.getpass('??') does same after printing warning from line 100 that fallback_getpass is being used. The newline may be supplied by

[issue46417] Clear static types in Py_Finalize() for embedded Python

2022-01-21 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +28949 pull_request: https://github.com/python/cpython/pull/30763 ___ Python tracker ___

[issue44975] [typing] Runtime protocols with ClassVar data members should support issubclass

2022-01-21 Thread Guido van Rossum
Guido van Rossum added the comment: IMO we shouldn't update PEP 544. PEPs reflect the historical proposal, they are not documentation for the current state of the interpreter. -- ___ Python tracker

  1   2   3   >