[issue24258] BZ2File objects do not have name attribute

2021-04-27 Thread Shatabarto Bhattacharya
Change by Shatabarto Bhattacharya : -- nosy: +hrik2001 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34463] Discrepancy between traceback.print_exception and sys.__excepthook__

2021-04-27 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue43916] Check that new heap types cannot be created uninitialised

2021-04-27 Thread Erlend Egeberg Aasland
Change by Erlend Egeberg Aasland : -- pull_requests: +24344 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25653 ___ Python tracker ___

[issue43916] Check that new heap types cannot be created uninitialised

2021-04-27 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: > These tests should also be added when new types are converted in the future. We should have a checklist for static to heap type conversion. I'm pretty sure I've seen something like that in one of Victor's blogs. A new section in the Dev Guide,

[issue43916] Check that new heap types cannot be created uninitialised

2021-04-27 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: Alternative approach: Add _PyType_DisabledNew to Include/cpython, and add {Py_tp_new, _PyType_DisabledNew} slot to affected types. Diff attached. See GH discussion: - https://github.com/python/cpython/pull/25653#issuecomment-827383246 -

[issue39812] Avoid daemon threads in concurrent.futures

2021-04-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: @Jan, without taking a look, I'd answer that indeed you should avoid using the "fork" method if you're doing any kind of multithreading in the parent process. "forkserver" is a good choice nowadays on Linux and will result in more robust code. --

[issue43916] Check that new heap types cannot be created uninitialised

2021-04-27 Thread Christian Heimes
Christian Heimes added the comment: LGTM -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8077] cgi handling of POSTed files is broken in Windows

2021-04-27 Thread Senthil Kumaran
Change by Senthil Kumaran : -- pull_requests: +24343 stage: test needed -> patch review pull_request: https://github.com/python/cpython/pull/25652 ___ Python tracker ___

[issue43492] Upgrade to SQLite 3.35.5 in macOS and Windows

2021-04-27 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: Updating the source. https://github.com/python/cpython-source-deps/pull/24 -- ___ Python tracker ___

[issue43492] Upgrade to SQLite 3.35.5 in macOS and Windows

2021-04-27 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: Ok. I'm closing https://github.com/python/cpython-source-deps/pull/24 then. -- ___ Python tracker ___

[issue24258] BZ2File objects do not have name attribute

2021-04-27 Thread Hasan Diwan
Hasan Diwan added the comment: Patch adds a bz2.BZ2File.name property corresponding to the filename passed in. -- keywords: +patch nosy: +Hasan Diwan versions: +Python 3.10, Python 3.11, Python 3.8, Python 3.9 -Python 3.6 Added file: https://bugs.python.org/file49991/bz2.name.patch

[issue43651] PEP 597: Fix EncodingWarning warnings in the Python stdlib

2021-04-27 Thread Inada Naoki
Inada Naoki added the comment: New changeset caae717c2903fff4704b59714bc0c65d60108321 by Inada Naoki in branch 'master': bpo-43651: Fix EncodingWarning in zipfile (GH-25650) https://github.com/python/cpython/commit/caae717c2903fff4704b59714bc0c65d60108321 --

[issue43948] sysconfig’s osx_framework_user puts headers in different locations from distutils

2021-04-27 Thread Tzu-ping Chung
New submission from Tzu-ping Chung : When built in framework mode on macOS, distutils puts user-site headers under `{userbase}/include/python{py_version_short}{abiflags}`: >>> import sys >>> print(sys.platform, sys._framework) darwin Python >>> from distutils.dist import Distribution >>> c =

[issue43949] binascii.Error raised in smtplib when initial_response_ok=False

2021-04-27 Thread junpengruan
New submission from junpengruan <632077...@qq.com>: Hi I think there is a bug when initial_response_ok=False and using AUTH PLAIN, the server will response like: -- C: AUTH PLAIN S: 334 ok. go on -- and it's not base64 encoding, while in the auth() it will

[issue43651] PEP 597: Fix EncodingWarning warnings in the Python stdlib

2021-04-27 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +24345 pull_request: https://github.com/python/cpython/pull/25654 ___ Python tracker ___

[issue43948] sysconfig’s osx_framework_user puts headers in different locations from distutils

2021-04-27 Thread Tzu-ping Chung
Change by Tzu-ping Chung : -- components: +macOS nosy: +ned.deily, ronaldoussoren type: -> behavior ___ Python tracker ___ ___

[issue43908] array.array should remain immutable

2021-04-27 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: I ran the test suite without the changes and they still fail. Therefore apply-to-all.diff does not have any bug at all. But the test failures are also a major issue not only for this change but also for others. I'm opening a new issue for those test

[issue43492] Upgrade to SQLite 3.35.5 in macOS and Windows

2021-04-27 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: Thanks Shreyan, but Steve prefers to update it himself: https://github.com/python/cpython-source-deps/pull/22#issuecomment-705234459 Just having the sources in place does not really help; you need a new git tag, which can only be pushed by core

[issue39812] Avoid daemon threads in concurrent.futures

2021-04-27 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32891] Add 'Integer' as synonym for 'Integral' in numbers module.

2021-04-27 Thread Raymond Hettinger
Raymond Hettinger added the comment: > that was Guido's suggestion. Well, that complicated things ;-) I suppose he can revive this if he wants. Perhaps after seeing how pervasive the change is he will be less inclined. Jelle, Mark, and I have all thought about it and don't think it is

[issue8077] cgi handling of POSTed files is broken in Windows

2021-04-27 Thread Senthil Kumaran
Change by Senthil Kumaran : -- title: cgi handling of POSTed files is broken -> cgi handling of POSTed files is broken in Windows versions: +Python 3.10 -Python 3.2, Python 3.3 ___ Python tracker

[issue43651] PEP 597: Fix EncodingWarning warnings in the Python stdlib

2021-04-27 Thread Inada Naoki
Inada Naoki added the comment: New changeset 878bc8b6c2051cf344c594636fa957ce6c9d2188 by Inada Naoki in branch 'master': bpo-43651: Fix EncodingWarning in fileinput and its test (GH-25648) https://github.com/python/cpython/commit/878bc8b6c2051cf344c594636fa957ce6c9d2188 --

[issue43908] array.array should remain immutable

2021-04-27 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: Re-running the failed tests doesn't trigger the errors but running the whole test suite does. And some errors I described are fixed in any of the last 22 commits and PRs. Therefore should we actually look into this matter or should we leave it as it is?

[issue43916] Check that new heap types cannot be created uninitialised

2021-04-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Alternatively we can make PyType_FromSpec() setting tp_new to NULL if there is explicit {Py_tp_new, NULL} in slots. -- ___ Python tracker

[issue41735] Thread locks in zlib module may go wrong in rare case

2021-04-27 Thread Łukasz Langa
Łukasz Langa added the comment: Thanks! ✨  ✨ -- nosy: +lukasz.langa resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue43651] PEP 597: Fix EncodingWarning warnings in the Python stdlib

2021-04-27 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +24346 pull_request: https://github.com/python/cpython/pull/25655 ___ Python tracker ___

[issue41735] Thread locks in zlib module may go wrong in rare case

2021-04-27 Thread Ma Lin
Ma Lin added the comment: Thanks for review. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43312] Interface to select preferred "user" or "home" sysconfig scheme for an environment

2021-04-27 Thread Paul Moore
Paul Moore added the comment: New changeset d92513390a1a0da781bb08c284136f4d7abea36d by Tzu-ping Chung in branch 'master': bpo-43312: Functions returning default and preferred sysconfig schemes (GH-24644) https://github.com/python/cpython/commit/d92513390a1a0da781bb08c284136f4d7abea36d

[issue43916] Check that new heap types cannot be created uninitialised

2021-04-27 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: For that to work, you'd have to add a flag in PyType_FromModuleAndSpec, set the flag if (slot->slot == Py_tp_new && slot->pfunc == NULL) in the slots for loop, and then reset tp_new _after_ PyType_Ready. --

[issue43950] Include column offsets for bytecode instructions

2021-04-27 Thread Pablo Galindo Salgado
New submission from Pablo Galindo Salgado : If we could include column offsets from the AST nodes for every bytecode instructions we could leverage these to offer much better tracebacks and a lot more information to debuggers and similar tools. For instance, in an expression such as:

[issue43950] Include column offsets for bytecode instructions

2021-04-27 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: +nedbat, serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue43951] Two minor fixes for C module object

2021-04-27 Thread Larry Hastings
Change by Larry Hastings : -- keywords: +patch pull_requests: +24349 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/25658 ___ Python tracker

[issue43864] [Windows] test_importlib logs: DeprecationWarning: WindowsRegistryFinder.find_module() is deprecated and slated for removal in Python 3.12; use find_spec() instead

2021-04-27 Thread Shreyan Avigyan
Change by Shreyan Avigyan : -- pull_requests: +24347 pull_request: https://github.com/python/cpython/pull/25656 ___ Python tracker ___

[issue42739] Crash when try to disassemble bogus code object

2021-04-27 Thread Mark Shannon
Change by Mark Shannon : -- keywords: +patch pull_requests: +24348 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25657 ___ Python tracker ___

[issue43911] Queue.get() memory leak

2021-04-27 Thread Jens
Jens added the comment: Raymond, thanks for your suggestions. My deployed applications don't hold up 20m items at a time, that was a way to show the leak. I was able to resolve the threading, queue-based leaks on my instances by modifying the Queue, Event and Conditions classes to use

[issue43312] Interface to select preferred "user" or "home" sysconfig scheme for an environment

2021-04-27 Thread Nick Coghlan
Change by Nick Coghlan : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed type: -> enhancement ___ Python tracker ___

[issue43951] Two minor fixes for C module object

2021-04-27 Thread Larry Hastings
New submission from Larry Hastings : While working on another issue, I noticed two minor nits in the C implementation of the module object. Both are related to getting a module's name. -- First, the C function module_dir() (module.__dir__) starts by ensuring the module dict is valid. If

[issue43916] Check that new heap types cannot be created uninitialised

2021-04-27 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: > Alternatively we can make PyType_FromSpec() setting tp_new to NULL if there > is explicit {Py_tp_new, NULL} in slots. Yes. It's not as explicit (and self-documenting) as _PyType_DisabledNew, though. But it avoids expanding the C API. --

[issue43864] [Windows] test_importlib logs: DeprecationWarning: WindowsRegistryFinder.find_module() is deprecated and slated for removal in Python 3.12; use find_spec() instead

2021-04-27 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: Can you reopen this issue? Brett forgot to silence another warning in WindowsRegistryFinderTests class. I'm opening a PR for that. -- ___ Python tracker

[issue42739] Crash when try to disassemble bogus code object

2021-04-27 Thread Mark Shannon
Mark Shannon added the comment: Using sentinels as a marker to terminate the line number table, might be a problem if we want to use a different format. So I'm fixing this for 3.10. -- ___ Python tracker

[issue41486] Add _BlocksOutputBuffer for bz2/lzma/zlib module

2021-04-27 Thread Ma Lin
Ma Lin added the comment: The above changes were made in this commit: split core code and wrappers 55705f6dc28ff4dc6183e0eb57312c885d19090a After that commit, there is a new commit, it resolves the code conflicts introduced by PR 22126 one hour ago. Merge branch 'master'

[issue43951] Two minor fixes for C module object

2021-04-27 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24258] BZ2File objects do not have name attribute

2021-04-27 Thread Steve Stagg
Steve Stagg added the comment: Please may you add a test that uses "io.BytesIO()" as the filename argument. BytesIO() objects do not have a 'name' attribute -- nosy: +stestagg ___ Python tracker

[issue43954] Possible missing word on unittest doc

2021-04-27 Thread Julien Palard
New submission from Julien Palard : In https://docs.python.org/3/library/unittest.html I see: > Note that you need to the top level directory too. Trying to guess, the missing word may be "specify": > Changed in version 3.4: Test discovery supports namespace packages for start > directory.

[issue43941] Unit test failure in test_gdb only with -O0

2021-04-27 Thread Larry Hastings
Larry Hastings added the comment: I'm on "Pop!_OS 20.10". Current versions: * Linux kernel 5.11.0-7612 * gcc version 10.2.0 (Ubuntu 10.2.0-13ubuntu1) * GNU gdb (Ubuntu 9.2-0ubuntu2) 9.2 % ./python -m sysconfig | grep CFLAGS BASECFLAGS = "-Wno-unused-result -Wsign-compare"

[issue43941] Unit test failure in test_gdb only with -O0

2021-04-27 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Can you try to do this: % make distclean % export CFLAGS='-O0 -g3' % ./configure % make -j % ./python -m test test_gdb -m test_wrapper_call -v My guess is that the DWARF generated is not sufficient for whatever reason (hence the -g3) in my proposal.

[issue41682] [Windows] test_asyncio: Proactor test_sendfile_close_peer_in_the_middle_of_receiving failure

2021-04-27 Thread Nick Coghlan
Change by Nick Coghlan : -- pull_requests: -24157 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41682] [Windows] test_asyncio: Proactor test_sendfile_close_peer_in_the_middle_of_receiving failure

2021-04-27 Thread Nick Coghlan
Nick Coghlan added the comment: Another instance at https://github.com/python/cpython/pull/25585/checks?check_run_id=2447701034 I unlinked the previously linked PR, as that looked to be for bpo-43539 rather than this issue. -- nosy: +ncoghlan

[issue41682] [Windows] test_asyncio: Proactor test_sendfile_close_peer_in_the_middle_of_receiving failure

2021-04-27 Thread Nick Coghlan
Change by Nick Coghlan : -- stage: patch review -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue43950] Include column offsets for bytecode instructions

2021-04-27 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I'm going to prepare a PEP since the discussion regarding if the two integers per bytecode are worth enough is going to be eternal. -- ___ Python tracker

[issue43953] InitVar should not be available on a @dataclass-decorated class

2021-04-27 Thread Eric V. Smith
Change by Eric V. Smith : -- assignee: -> eric.smith type: -> behavior versions: -Python 3.11, Python 3.7, Python 3.8 ___ Python tracker ___

[issue24258] BZ2File objects do not have name attribute

2021-04-27 Thread Roy Smith
Roy Smith added the comment: The https://bitbucket.org/cliff/cpython#python24258 URL 404's Looking at the attached bz2.py diff, I would change: if isinstance(filename, (str, bytes, os.PathLike)): self._fp = _builtin_open(filename, mode) +self.filename =

[issue43952] Multiprocessing UNIX socket connection: client freeze if authkey is an empty byte string

2021-04-27 Thread anon01
New submission from anon01 : When I run this code (on a UNIX system with temporary directory `/tmp/`): ``` from multiprocessing import connection import threading key=b"1" def run(): c=connection.Client("/tmp/xxx", authkey=key) c.send("data") l=connection.Listener("/tmp/xxx",

[issue43952] Multiprocessing UNIX socket connection: client freeze if authkey is an empty byte string

2021-04-27 Thread anon01
Change by anon01 : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43952] Multiprocessing UNIX socket connection: client freeze if authkey is an empty byte string

2021-04-27 Thread anon01
Change by anon01 : -- nosy: -anon01 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43916] Check that new heap types cannot be created uninitialised

2021-04-27 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: > The second most important part here is also adding regression tests so this > doesn't happen. I've started adding tests. I'm not sure if I need to wrap them with @cpython_only. Some of the types are hidden deep inside the implementations, and I

[issue43953] InitVar should not be available on a @dataclass-decorated class

2021-04-27 Thread Sergei Lebedev
New submission from Sergei Lebedev : Motivating example: >>> @dataclass ... class A: ... x: InitVar[int] = 0 ... y: int = 1 ... >>> a = A() >>> a.x 0 >>> a.y 1 PEP-557 does not specify if fields annotated with InitVar[...] are available on the resulting dataclass. However, they are not

[issue43941] Unit test failure in test_gdb only with -O0

2021-04-27 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Thanks, Larry for pinging me! What compiler / gdb version are you using? I tried to reproduce but I don't see any failure: master on  master [$]  pyenv 3.9.1 took 9s ❯ ./python -m sysconfig | grep CFLAGS BASECFLAGS = "-Wno-unused-result

[issue43953] InitVar should not be available on a @dataclass-decorated class

2021-04-27 Thread Eric V. Smith
Eric V. Smith added the comment: This is just how Python works. The default values for .x and .y are set on the class A, not its instances. Here's the equivalent without dataclasses: >>> class A: ... x = 0 ... y = 1 ... >>> a = A() >>> a.x 0 >>> a.y 1 >>> a.__dict__ {} >>> A.__dict__

[issue43933] Regression in python3.10 with traceback frame having lineno of -1

2021-04-27 Thread Petr Viktorin
Petr Viktorin added the comment: Please don't lose the big picture here. Previously, the reported line number was *somewhere close* to the currently executing code. That's typically all I need from a traceback: the fix for a bug often needs to go a few lines above/below where it's reported.

[issue43941] Unit test failure in test_gdb only with -O0

2021-04-27 Thread Larry Hastings
Larry Hastings added the comment: Did that. Well, technically, I replaced two lines with the equivalent: % CFLAGS='-O0 -g3' ./configure I do see this in the Makefile: CONFIGURE_CFLAGS= -O0 -g3 so, I didn't screw it up! The test still failed:

[issue43908] array.array should remain immutable

2021-04-27 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: I've not seen any failing tests for GH-25653 on the CI or on my computer. The PR is based off of 1b1f9852bda85c01ef124858f293e9c13e04ffce, which is pretty recent. I can rebase onto master, but I don't see any need for it as long as the tests suite

[issue43908] array.array should remain immutable

2021-04-27 Thread Guido van Rossum
Guido van Rossum added the comment: Sure. What do you think is causing the failures for Shreyan then? (Are you two collaborating?) -- --Guido (mobile) -- ___ Python tracker

[issue43950] Include column offsets for bytecode instructions

2021-04-27 Thread Mark Shannon
Mark Shannon added the comment: The additional cost will not only be the line number table, but we need to store the line for exceptions that are reraised after cleanup. Adding a column will mean more stack consumption. -- ___ Python tracker

[issue43766] Implement PEP 647 (User-Defined Type Guards) in typing.py

2021-04-27 Thread Ken Jin
Change by Ken Jin : -- pull_requests: +24351 pull_request: https://github.com/python/cpython/pull/25660 ___ Python tracker ___ ___

[issue43950] Include column offsets for bytecode instructions

2021-04-27 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Yup, but I still think is worth the cost, giving that debugging improvements are usually extremely popular among users. -- ___ Python tracker

[issue43908] array.array should remain immutable

2021-04-27 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > Pablo, there seems to be some instability in the tests. Apart from the typical test_asyncio random timeouts I don't see anything on the buildbots or the CI. What are those failing test? Maybe I can try to reproduce on my side --

[issue43947] lambdas stored with assignment expressions are unoptimized

2021-04-27 Thread Ken Jin
Ken Jin added the comment: I'm unable to reproduce it on 3.10: >>> regass = lambda k: k in {None} >>> dis.dis(regass) 1 0 LOAD_FAST0 (k) 2 LOAD_CONST 1 (frozenset({None})) 4 CONTAINS_OP 0 6

[issue43908] array.array should remain immutable

2021-04-27 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: Let me re-run the test suite again and see if the tests have been fixed in the most recent commits. -- ___ Python tracker ___

[issue43908] array.array should remain immutable

2021-04-27 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: Shreyan, are you running the tests against the PR, or something else? Have you tried make clean (or git clean -fdx)? -- ___ Python tracker

[issue43908] array.array should remain immutable

2021-04-27 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: > Are you two collaborating? No, but any help is of course appreciated. -- ___ Python tracker ___

[issue43908] array.array should remain immutable

2021-04-27 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: > Shreyan, are you running the tests against the PR, or something else? Have > you tried make clean (or git clean -fdx)? I always have a clean branch checked out but the last time I ran the tests it was unsuccessful. I'm re-running the tests now and hoping

[issue43955] Test Failures on Windows 10

2021-04-27 Thread Guido van Rossum
Guido van Rossum added the comment: I wonder if these four tests do something that affects all threads? The test driver module runs tests in parallel (if you ask it to run all or most tests, like the default). -- ___ Python tracker

[issue43957] [Enum] update __contains__ to return True for valid values

2021-04-27 Thread Ethan Furman
New submission from Ethan Furman : In 3.12 `__contains__` will check for both members and values: Color.RED in Color --> True 1 in Color --> True 'RED' in Color --> False Add DeprecationWarning for now. -- assignee: ethan.furman messages: 392122 nosy:

[issue43958] Importlib.metadata docs claim PackagePath is a Path subclass

2021-04-27 Thread Paul Moore
New submission from Paul Moore : The importlib.metadata documentation states that the PackagePath class is "a pathlib.Path derived object". This isn't true - it's a PurePath subclass, and in particular it does not have a resolve() method. In fact, it has an undocumented custom locate()

[issue43958] Importlib.metadata docs claim PackagePath is a Path subclass

2021-04-27 Thread Paul Moore
Change by Paul Moore : -- keywords: +patch pull_requests: +24358 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25669 ___ Python tracker ___

[issue43960] test_pdb fails when only some tests are run

2021-04-27 Thread STINNER Victor
New submission from STINNER Victor : test_pdb fails with the following commands. I tested on Linux, same/similar failure on Windows. See also bpo-41914: "test_pdb fails". $ cat bisect test.test_pdb.PdbTestCase.test_run_module test.test_pdb.test_next_until_return_at_return_event

[issue43955] Test Failures on Windows 10

2021-04-27 Thread Tim Peters
Tim Peters added the comment: Shreyan Avigyan: > And the "(Pdb) continue (...) actually is manually entered by me. Victor Stinner: Do you mean that you modified the Python source code? Me: Doubt it. For me, with more words: the "(Pdb) " prompt appears all by itself, by magic, and the test

[issue43908] array.array should remain immutable

2021-04-27 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: There are no errors in apply-to-all.diff because I've ran the tests both with and without the changes and both give me the same output. It's safe to proceed with apply-to-all.diff. The only problem is why are the tests failing at all? I ran the tests a few

[issue43947] lambdas stored with assignment expressions are unoptimized

2021-04-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It was fixed in issue42282. -- nosy: +serhiy.storchaka resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Constant folding is skipped in named expressions ___ Python tracker

[issue43955] Test Failures on Windows 10

2021-04-27 Thread Guido van Rossum
Guido van Rossum added the comment: Can you submit a PR that fixes it? -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue43959] Improve documentation of PyContextVar C-API

2021-04-27 Thread Stefan Behnel
Change by Stefan Behnel : -- keywords: +patch pull_requests: +24362 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25671 ___ Python tracker ___

[issue43955] Test Failures on Windows 10

2021-04-27 Thread Shreyan Avigyan
New submission from Shreyan Avigyan : Recent test failures have been noticed on Windows 10. The full test log has been attached. The tests test_distutils, test_pdb, test_signal and test_threading require a little bit of attention since there seems to be some kind of error. --

[issue43955] Test Failures on Windows 10

2021-04-27 Thread Erlend Egeberg Aasland
Change by Erlend Egeberg Aasland : -- nosy: -erlendaasland ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43955] Test Failures on Windows 10

2021-04-27 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: -pablogsal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19348] Building _testcapimodule as a builtin results in compile error

2021-04-27 Thread Irit Katriel
Irit Katriel added the comment: I think this was fixed by https://github.com/python/cpython/commit/5c75f37d473140f0e0b7d9bf3a8c08343447ded1 which added "#undef Py_BUILD_CORE_MODULE" to _testcapimodule.c. -- nosy: +iritkatriel resolution: -> out of date status: open -> pending

[issue43492] Upgrade to SQLite 3.35.5 in macOS and Windows

2021-04-27 Thread miss-islington
miss-islington added the comment: New changeset e013d8df2c9b6ea5bc9ae92a10950157e6cb46d6 by Miss Islington (bot) in branch '3.8': bpo-43492: Update macOS installer to use SQLite 3.35.5 (GH-25640) https://github.com/python/cpython/commit/e013d8df2c9b6ea5bc9ae92a10950157e6cb46d6 --

[issue8978] "tarfile.ReadError: file could not be opened successfully" if compiled without zlib

2021-04-27 Thread miss-islington
miss-islington added the comment: New changeset 9aea31deddf7458be3546f72185740f3cd06687f by Anthony Sottile in branch 'master': bpo-8978: improve tarfile.open error message when lzma / bz2 are missing (GH-24850)

[issue43492] Upgrade to SQLite 3.35.5 in macOS and Windows

2021-04-27 Thread Erlend Egeberg Aasland
Change by Erlend Egeberg Aasland : -- pull_requests: +24354 pull_request: https://github.com/python/cpython/pull/25665 ___ Python tracker ___

[issue43563] Use dedicated opcodes to speed up calls/attribute lookups with super() as receiver

2021-04-27 Thread Vladimir Matveev
Vladimir Matveev added the comment: Apologies for the delay in reply: in more concrete numbers for IG codebase enabling this optimization resulted in 0.2% CPU win. -- ___ Python tracker

[issue43955] Test Failures on Windows 10

2021-04-27 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: The test expects the but gets sigint_handler method of a pdb.Pdb instance instead. -- ___ Python tracker ___

[issue43955] Test Failures on Windows 10

2021-04-27 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: Yes you're right. Running the failed tests individually does not trigger the errors. And the (Pdb) continue (Pdb) continue (Pdb) continue (Pdb) continue actually is manually entered by me. My tests also stop at that prompt but somehow entering these

[issue43939] Deadlock in logging

2021-04-27 Thread DaRoee
DaRoee added the comment: Ha! Already gave them my analysis, and stopped using that package since. While I certainly think this is not the trivial, basic usage, and that the pattern used for the lock is common (and part of some PEP if I remember correctly), I'm kind of puzzled on that fact

[issue19348] Building _testcapimodule as a builtin results in compile error

2021-04-27 Thread STINNER Victor
STINNER Victor added the comment: The C API was deeply reworked since 2013. This issue was reported in Python 2.7. I'm confident that it has been fixed in the meanwhile. -- resolution: out of date -> fixed stage: -> resolved status: pending -> closed

[issue8978] "tarfile.ReadError: file could not be opened successfully" if compiled without zlib

2021-04-27 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43955] Test Failures on Windows 10

2021-04-27 Thread STINNER Victor
STINNER Victor added the comment: Oh. I also got this surprising (Pdb) prompt when running "python -m test" on Windows. The prompt doesn't display any output, I only get the prompt display (...) 0:34:05 load avg: 1.06 [300/426/2] test_select 0:34:08 load avg: 1.03 [301/426/2] test_selectors

[issue43955] Test Failures on Windows 10

2021-04-27 Thread Tim Peters
Tim Peters added the comment: I expect parallelism is a red herring: early in the test output attached to this report: 0:00:04 Run tests sequentially and there's no other evidence in the output that multiple tests are running simultaneously. Also on Win10, the 4 failing tests here pass

[issue43957] [Enum] update __contains__ to return True for valid values

2021-04-27 Thread Ethan Furman
Change by Ethan Furman : -- keywords: +patch pull_requests: +24361 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/25670 ___ Python tracker

[issue43955] Test Failures on Windows 10

2021-04-27 Thread Guido van Rossum
Guido van Rossum added the comment: Doesn't the pdb prompt use the builtin input()? -- ___ Python tracker ___ ___ Python-bugs-list

[issue43492] Upgrade to SQLite 3.35.5 in macOS and Windows

2021-04-27 Thread miss-islington
Change by miss-islington : -- pull_requests: +24353 pull_request: https://github.com/python/cpython/pull/25663 ___ Python tracker ___

  1   2   >