[issue39751] multiprocessing breaks when payload fails to unpickle

2020-02-25 Thread João Eiras
Change by João Eiras : -- type: -> crash ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39739] Python crash every time opening pycharm, seems related to tensorflow

2020-02-25 Thread nono
New submission from nono : Hey, Whenever I try to open project in Pycharm, it will update python interpreter before the python process crashes with a SIGABRT and I get a crash window from OSX. I use homebrew with the latest packages and python 3.7.6. Any help is appreciated. Here's the log:

[issue38403] nuspec iconUrl field is deprecated

2020-02-25 Thread Steve Dower
Change by Steve Dower : -- keywords: +patch pull_requests: +18018 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/18657 ___ Python tracker

[issue39753] inspecting a partial with bound keywods gives incorrect signature

2020-02-25 Thread Chris Withers
Chris Withers added the comment: Surprised partials have no explicit signature: >>> p.__signature__ Traceback (most recent call last): File "", line 1, in AttributeError: 'functools.partial' object has no attribute '__signature__' -- ___ Python

[issue39750] UnicodeError becomes unpicklable if data is appended to args

2020-02-25 Thread João Eiras
New submission from João Eiras : Given some exception `ex`, you can append data like ex.args += (value1, value2, ...) and then re-raise. This is something I do in my projects to sometime propagate context when errors are raised, e.g., stacktraces across process boundaries or blobs of text

[issue39750] UnicodeError becomes unpicklable if data is appended to args

2020-02-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Yes, this is how exceptions are pickled. You save an information which which allows you to recreate the exception. If you fake args, you do not able to recreate it. Just do not do this. -- nosy: +serhiy.storchaka

[issue39705] Tutorial, 5.6 Looping Techniques, sorted() example

2020-02-25 Thread Rahul Kumaresan
Rahul Kumaresan added the comment: I would like to work on this documentation improvement task. Please help me understand if this is not being worked on already. -- nosy: +rahul-kumi ___ Python tracker

[issue38913] Py_BuildValue("(s#O)", ...) segfaults if entered with exception raised

2020-02-25 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +18017 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18656 ___ Python tracker

[issue39753] inspecting a partial with bound keywods gives incorrect signature

2020-02-25 Thread Chris Withers
Change by Chris Withers : -- components: +Library (Lib) versions: +Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue39753] inspecting a partial with bound keywods gives incorrect signature

2020-02-25 Thread Chris Withers
New submission from Chris Withers : $ python Python 3.8.1 (v3.8.1:1b293b6006, Dec 18 2019, 14:08:53) [Clang 6.0 (clang-600.0.57)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> from functools import partial >>> def foo(x, y, z, a=None): pass ... >>> p =

[issue39751] multiprocessing breaks when payload fails to unpickle

2020-02-25 Thread João Eiras
New submission from João Eiras : The multiprocessing module uses pickles to send data between processes. If a blob fails to unpickle (bad implementation of __setstate__, invalid payload from __reduce__, random crash in __init__) when the multiprocessing module will crash inside the

[issue38410] Possible fatal errors due to _PyEval_SetAsyncGen{Finalizer, Firstiter}()

2020-02-25 Thread Steve Dower
Steve Dower added the comment: I thought we weren't going to take the fix for 3.8 anyway? (Or did we make a smaller one and commit it directly, apparently without linking it to the issue correctly?) The status is the PR needs conflicts resolved, and people need to stop adding to my

[issue39737] Speed up list.__eq__ by about 6%

2020-02-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I have doubts that such small change can lead to significant speed up. It is likely a compiler glitch. But this change makes the code clearer. If you remove a NEWS entry with a doubtful promise I will accept it. --

[issue39749] python 3.8.1 (3.14 * 10 = 31.400000002 bug)

2020-02-25 Thread Steven D'Aprano
Steven D'Aprano added the comment: This behaviour is shared by all programming languages that use floating point numbers. For example, this is Ruby: [steve@ando ~]$ irb irb(main):001:0> 10 * 3.14 == 31.4 => false irb(main):002:0> 10 * 3.14 - 31.4 => 3.5527136788005e-15

[issue38519] Internal include files missing on Windows

2020-02-25 Thread Steve Dower
Change by Steve Dower : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue38410] Possible fatal errors due to _PyEval_SetAsyncGen{Finalizer, Firstiter}()

2020-02-25 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +18019 pull_request: https://github.com/python/cpython/pull/18658 ___ Python tracker ___

[issue36144] Dictionary addition. (PEP 584)

2020-02-25 Thread Brandt Bucher
Change by Brandt Bucher : -- pull_requests: +18020 pull_request: https://github.com/python/cpython/pull/18659 ___ Python tracker ___

[issue39752] multiprocessing halts when child process crashes/quits

2020-02-25 Thread João Eiras
New submission from João Eiras : Hi. When one of the processes in a multiprocessing.pool picks up a task then then somehow crashes (and by crash I mean crashing the python process with something like a SEGV) or is killed, the pool in the main process will notice one of the workers died and

[issue38597] C Extension import limit

2020-02-25 Thread Steve Dower
Steve Dower added the comment: You should be able to install "wheel" without setuptools to get the bdist_wheel command. Can you confirm that the build process is actually using that Visual Studio install? If it's going through the regular distutils detection process then it ought to be

[issue37373] Configuration of windows event loop for libraries

2020-02-25 Thread Ben Darnell
Ben Darnell added the comment: I considered using the `selectors` module directly, but it's not as simple as it sounds. Using the low-level interface means you need to also use a self-waker-pipe (or socket on windows) and manage a queue analogous to that used by `call_soon_threadsafe`. We

[issue38410] Possible fatal errors due to _PyEval_SetAsyncGen{Finalizer, Firstiter}()

2020-02-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: PR 18658 is a backport to 3.8 which preserves binary compatibility. -- ___ Python tracker ___

[issue39754] update_one_slot() does not inherit sq_contains and mp_subscript if they are explictly declared

2020-02-25 Thread Marco Sulla
New submission from Marco Sulla : I noticed that `__contains__()` and `__getitem__()` of subclasses of `dict` are much slower. I asked why on StackOverflow, and an user seemed to find the reason. The problem for him/her is that `dict` implements directly `__contains__()` and

[issue38403] nuspec iconUrl field is deprecated

2020-02-25 Thread miss-islington
miss-islington added the comment: New changeset 1bbb81b251bcc8b05e0cd33cd36aef55481b13db by Miss Islington (bot) in branch '3.8': bpo-38403: Update nuspec file for deprecated field and git repository (GH-18657) https://github.com/python/cpython/commit/1bbb81b251bcc8b05e0cd33cd36aef55481b13db

[issue36144] Dictionary addition. (PEP 584)

2020-02-25 Thread Steve Dower
Steve Dower added the comment: That's a much simpler example. And of course: >>> z[False] = False >>> z {0: False} So the precedent is well established that the key doesn't get updated with the value. No further questions, yer honour ;) -- ___

[issue36144] Dictionary addition. (PEP 584)

2020-02-25 Thread Steve Dower
Steve Dower added the comment: Not sure if this is a big deal or not, and it seems likely that the preexisting behaviour of .update() and ** unpacking have already decided it, but is it intentional that you end up with the first-seen key and the last-seen value in the case of collisions?

[issue38403] nuspec iconUrl field is deprecated

2020-02-25 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +18021 pull_request: https://github.com/python/cpython/pull/18660 ___ Python tracker

[issue38403] nuspec iconUrl field is deprecated

2020-02-25 Thread Steve Dower
Steve Dower added the comment: New changeset d6448919702142123d937a54f20a81aeaf8d2acc by Steve Dower in branch 'master': bpo-38403: Update nuspec file for deprecated field and git repository (GH-18657) https://github.com/python/cpython/commit/d6448919702142123d937a54f20a81aeaf8d2acc

[issue36144] Dictionary union. (PEP 584)

2020-02-25 Thread Brandt Bucher
Change by Brandt Bucher : -- title: Dictionary addition. (PEP 584) -> Dictionary union. (PEP 584) ___ Python tracker ___ ___

[issue39755] Change example of itertools.product

2020-02-25 Thread Mark Bell
New submission from Mark Bell : The documentation for itertools.product at: https://docs.python.org/3/library/itertools.html#itertools.product currently says that: For example, product(A, B) returns the same as ((x,y) for x in A for y in B) While this is broadly correct, since product

[issue36144] Dictionary addition. (PEP 584)

2020-02-25 Thread Brandt Bucher
Brandt Bucher added the comment: As a somewhat simpler example: >>> f = {False: False} >>> z = {0: 0} >>> f | z {False: 0} >>> {**f, **z} {False: 0} >>> f.update(z); f {False: 0} Though these hairier cases aren't explicitly addressed, the conflict behavior is covered in the Rationale and

[issue17050] argparse.REMAINDER doesn't work as first argument

2020-02-25 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch nosy: +python-dev nosy_count: 4.0 -> 5.0 pull_requests: +18022 stage: test needed -> patch review pull_request: https://github.com/python/cpython/pull/18661 ___ Python tracker

[issue39622] KeyboardInterrupt is ignored when await asyncio.sleep(0)

2020-02-25 Thread Maor Kleinberger
Maor Kleinberger added the comment: Damn, good catch. How about the following idea - register a normal signal handler (using signal.signal) that does something like: def sigint_handler(): get_running_loop().interrupt() # in class BaseEventLoop def interrupt(self): # Might be a

[issue39622] KeyboardInterrupt is ignored when await asyncio.sleep(0)

2020-02-25 Thread Maor Kleinberger
Maor Kleinberger added the comment: While looking into this proposal, I realized that this will not wake up the loop from the select call. I think the safest solution would be to use the wakeup fd mechanism. An additional easy, but less secure solution would be to define an internal

[issue30064] BaseSelectorEventLoop.sock_{recv, sendall}() don't remove their callbacks when canceled

2020-02-25 Thread Yury Selivanov
Yury Selivanov added the comment: > I very doubt if any sane code is organizing like this test: start delayed > reading, cancel it and read again. Hm, cancellation should work correctly no matter how "sane" or "insane" the user code is. > The worse, neither previous not current sock_read()

[issue38403] nuspec iconUrl field is deprecated

2020-02-25 Thread Steve Dower
Steve Dower added the comment: Not enough value fixing 3.7 and 2.7 at this stage - nuget.org can't actively *break* the old format without spoiling half the repository, so I'm sure it'll be fine to leave them as they are for the last few uploads. -- resolution: -> fixed stage:

[issue39698] asyncio.sleep() does not adhere to time.sleep() behavior for negative numbers

2020-02-25 Thread Yury Selivanov
Yury Selivanov added the comment: > Source? I could not find a good source, sorry. I remember I had a complaint in uvloop to support negative timeouts, but I can't trace it. That said, I also distinctly remember seeing code (and writing such code myself) that performs computation on

[issue39737] Speed up list.__eq__ by about 6%

2020-02-25 Thread Dennis Sweeney
Dennis Sweeney added the comment: I made the requested changes to reflect that this is for code cleanliness rather than strictly for performance. However, it appears that Visual Studio on Windows 10 was not doing the optimization one might expect. In particular, here is the disassembly

[issue39529] Deprecate get_event_loop()

2020-02-25 Thread Yury Selivanov
Yury Selivanov added the comment: > For asyncio.Lock (plus other synchronization primitives) and asyncio.Queue, > this would be added in https://github.com/python/cpython/pull/18195. > Currently waiting on emanu (author of the PR) to finish up some changes, but > it's mostly complete. Could

[issue1207613] Idle Editor: Bottom Scroll Bar

2020-02-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: Some IDLE users really want a horizontal scrollbar (for the editor), and even consider its absence to be a reason to not use it. Stackoverflow 2012: https://stackoverflow.com/questions/10301071/is-there-a-horizontal-scroll-bar-in-pythons-idle Reddit 2020:

[issue39737] Speed up list.__eq__ by about 6%

2020-02-25 Thread Dennis Sweeney
Dennis Sweeney added the comment: > Hmm, Is this build on release mode? Yes--in debug mode, each Py_INCREF is these 8 instructions: 78BD071E mov ecx,dword ptr [_Py_RefTotal (79039700h)] 78BD0724 add ecx,1 78BD0727 mov dword ptr

[issue39737] Speed up list.__eq__ by about 6%

2020-02-25 Thread Dennis Sweeney
Dennis Sweeney added the comment: > Debug mode is not meaningful. > Visual Studio will optimize fully on release mode. Sorry if I wasn't clear--the original assembly difference I posted in (https://bugs.python.org/msg362665) was indeed using the "release" build configuration. My last

[issue39756] Event sequence "KeyRelease-Shift_R" not being fired

2020-02-25 Thread Devin Morgan
New submission from Devin Morgan : Trying to create a remake of Pong and am trying to use Right Control and Right Shift to move the right paddle up and down, moving the paddle down works fine but gets stuck in the move up state, despite my efforts root out logic errors through reviewing and

[issue39737] Speed up list.__eq__ by about 6%

2020-02-25 Thread Dong-hee Na
Dong-hee Na added the comment: > it appears that Visual Studio on Windows 10 was not doing the optimization > one might expect. Hmm, Is this build on release mode? -- ___ Python tracker

[issue39755] Change example of itertools.product

2020-02-25 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue27657] urlparse fails if the path is numeric

2020-02-25 Thread Senthil Kumaran
Senthil Kumaran added the comment: Hi Łukasz, There was a concern raised by python core-devs about behavior in 3.9. I plan to address that point raised in this issue and close this ticket. -- ___ Python tracker

[issue39737] Speed up list.__eq__ by about 6%

2020-02-25 Thread Raymond Hettinger
Raymond Hettinger added the comment: Speed-up or not, I concur that the new code it clearer. -- nosy: +rhettinger ___ Python tracker ___

[issue39737] Speed up list.__eq__ by about 6%

2020-02-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset be7ead62db9a1db3e2cd997b0beffd4480e51f5c by sweeneyde in branch 'master': bpo-39737: Remove code repitition in list_richcompare (GH-18638) https://github.com/python/cpython/commit/be7ead62db9a1db3e2cd997b0beffd4480e51f5c --

[issue39754] update_one_slot() does not inherit sq_contains and mp_subscript if they are explictly declared

2020-02-25 Thread Benjamin Peterson
Benjamin Peterson added the comment: See also #34396. -- nosy: +benjamin.peterson ___ Python tracker ___ ___ Python-bugs-list

[issue39737] Speed up list.__eq__ by about 6%

2020-02-25 Thread Dong-hee Na
Dong-hee Na added the comment: Debug mode is not meaningful. Visual Studio will optimize fully on release mode. -- ___ Python tracker ___

[issue39737] Speed up list.__eq__ by about 6%

2020-02-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your contribution Dennis. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue39755] Change example of itertools.product

2020-02-25 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks for the suggestion, but I will decline. The existing wording communicates the intended mental relationship between the product() and nested for-loop. IMO, the proposed change obfuscates that main point. The details of how product works are

[issue36144] Dictionary addition. (PEP 584)

2020-02-25 Thread Guido van Rossum
Guido van Rossum added the comment: Yup, great plan. On Mon, Feb 24, 2020 at 22:29 Brandt Bucher wrote: > > Brandt Bucher added the comment: > > My current PR plans are: > > - Docs. This will include the dict docs and the whatsnew 3.9. I assume we > have no plans to cover this in the

[issue39737] Speed up list.__eq__ by about 6%

2020-02-25 Thread Dong-hee Na
Dong-hee Na added the comment: IMHO, I can not see a noticeable performance improvement. I think that the modern compiler will optimize the reused variable. ;) The below result might be noise. [master] ./python.exe -m pyperf timeit "A = list(range(10**3)); B = list(range(10**3))" "A==B"

[issue39683] 2to3 fix_exitfunc suggests duplicated import of atexit module

2020-02-25 Thread Paulo Henrique Silva
Change by Paulo Henrique Silva : -- keywords: +patch nosy: +phsilva nosy_count: 1.0 -> 2.0 pull_requests: +18015 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18654 ___ Python tracker

[issue39672] SIGSEGV crash on shutdown with shelve & c pickle

2020-02-25 Thread Andrei Daraschenka
Change by Andrei Daraschenka : -- pull_requests: +18016 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18655 ___ Python tracker ___

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

2020-02-25 Thread Paulo Henrique Silva
Change by Paulo Henrique Silva : -- nosy: +phsilva ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39672] SIGSEGV crash on shutdown with shelve & c pickle

2020-02-25 Thread Andrei Daraschenka
Andrei Daraschenka added the comment: Hello I was finally reproduce your problem. Probles was in Lib/shelve.py module in method Shelf.sync. When python is shut down in classes calls __exit__ methods, in our issues method __exti__ called method close() which called method sync(). Method

[issue39672] SIGSEGV crash on shutdown with shelve & c pickle

2020-02-25 Thread zd nex
zd nex added the comment: So I was trying it again in Python 3.6.9 and 3.8.1 directly in REPL. And it behaves same. I have tried it on two different linux boxes (both 64bit) where I have diffrent versions. In both of them it crashes in same way .. destroy _ast and then it crashes and

[issue39747] test_os debug assertion failure

2020-02-25 Thread Steve Dower
Steve Dower added the comment: Well, you're running a debug build but building a release build (unless you missed the "-d" from the command line -- "-e" is the default now, BTW), so your build may be out of sync. These assertion dialogs are supposed to be suppressed during the test suite,

[issue39749] python 3.8.1 (3.14 * 10 = 31.400000002 bug)

2020-02-25 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: This is a known behavior : https://docs.python.org/3/tutorial/floatingpoint.html -- nosy: +xtreak ___ Python tracker ___

[issue39749] python 3.8.1 (3.14 * 10 = 31.400000002 bug)

2020-02-25 Thread 꿈돌
New submission from 꿈돌 : 10 * 3.14 31.402 there is a bug in 3.8.1 python, 10 * 3.14 is 31.4 but in python 31.402 -- messages: 362641 nosy: 꿈돌 priority: normal severity: normal status: open title: python 3.8.1 (3.14 * 10 = 31.40002 bug)

[issue27657] urlparse fails if the path is numeric

2020-02-25 Thread Łukasz Langa
Łukasz Langa added the comment: Can this be closed? Downgrading priority since the fix was released as part of 3.8.2rc2 and 3.8.2 final. -- priority: release blocker -> critical ___ Python tracker

[issue38856] asyncio ProactorEventLoop: wait_closed() can raise ConnectionResetError

2020-02-25 Thread Łukasz Langa
Łukasz Langa added the comment: Downgrading priority on this, agreed with Victor. -- priority: release blocker -> high ___ Python tracker ___

[issue39748] PyScripter could not find Python 3.8 64 bits

2020-02-25 Thread Noel del rosario
New submission from Noel del rosario : I installed Python 2.7, 3.7 and 3.8, all in 64 bits. Then I installed the PYSCRYPTER 3.6 54 bits. The PySCripter can easily set up PYTHON 2.7 and 3.7 easily. But it cannot settup Python 3.8. It cannot find it. -- components: Installation

[issue38913] Py_BuildValue("(s#O)", ...) segfaults if entered with exception raised

2020-02-25 Thread Łukasz Langa
Łukasz Langa added the comment: Sadly, this missed the train for 3.8.2 as well. -- ___ Python tracker ___ ___ Python-bugs-list

[issue39042] Use the runtime's main thread ID in the threading module.

2020-02-25 Thread Łukasz Langa
Łukasz Langa added the comment: I agree this should be fixed. Since we've already released 3.8.1 and 3.8.2 with this behavior it's hard to justify blocking releases on this, though. -- priority: release blocker -> high ___ Python tracker

[issue38410] Possible fatal errors due to _PyEval_SetAsyncGen{Finalizer, Firstiter}()

2020-02-25 Thread Łukasz Langa
Łukasz Langa added the comment: Sadly, this missed the train for 3.8.2. Steve, what's the status of the open PR for this? -- ___ Python tracker ___

[issue30064] BaseSelectorEventLoop.sock_{recv, sendall}() don't remove their callbacks when canceled

2020-02-25 Thread Łukasz Langa
Łukasz Langa added the comment: Downgrading priority on this one. -- priority: deferred blocker -> high ___ Python tracker ___ ___

[issue38913] Py_BuildValue("(s#O)", ...) segfaults if entered with exception raised

2020-02-25 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31539] asyncio.sleep may sleep less time then it should

2020-02-25 Thread Markus Roth
Markus Roth added the comment: When the fine tuning options for install-directories are set, the default directories "lib", "bin" and "include" are still created with essential content. Even if options like --libdir are set. -- nosy: +CatorCanulis

[issue39748] PyScripter could not find Python 3.8 64 bits

2020-02-25 Thread Eric V. Smith
Eric V. Smith added the comment: This sounds like an issue with PyScripter. I suggest you ask them for guidance on how to debug it. -- nosy: +eric.smith ___ Python tracker

[issue37228] UDP sockets created by create_datagram_endpoint() allow by default multiple processes to bind the same port

2020-02-25 Thread Łukasz Langa
Łukasz Langa added the comment: Downgrading priority since it's released everywhere except for 3.5. -- priority: deferred blocker -> normal ___ Python tracker ___

[issue37373] Configuration of windows event loop for libraries

2020-02-25 Thread Nathaniel Smith
Nathaniel Smith added the comment: > was Tornado the only project experiencing this pain At least twisted and anyio are still broken on 3.8+Windows because of this change: https://twistedmatrix.com/trac/ticket/9766 https://github.com/agronholm/anyio/issues/77 --

[issue31539] asyncio.sleep may sleep less time then it should

2020-02-25 Thread Guido van Rossum
Guido van Rossum added the comment: Markus, your comment does not seem relevant to this issue. Maybe you meant to add it to a different issue, or you meant to create a new issue? -- ___ Python tracker