[issue39773] Export symbols for vectorcall

2020-02-27 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +petr.viktorin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39769] compileall.compile_dir(..., ddir="") omits the intermediate package paths when prepending the prefix

2020-02-27 Thread Gregory P. Smith
Change by Gregory P. Smith : -- keywords: +patch pull_requests: +18036 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/18676 ___ Python tracker

[issue39769] compileall.compile_dir(..., ddir="") omits the intermediate package paths when prepending the prefix

2020-02-27 Thread Gregory P. Smith
Gregory P. Smith added the comment: The regression was caused by the parallelization enhancement implementation from https://bugs.python.org/issue16104 -- ___ Python tracker

[issue16104] Compileall script: add option to use multiple cores

2020-02-27 Thread Gregory P. Smith
Gregory P. Smith added the comment: This caused a regression in behavior. compileall.compile_dir()'s ddir= parameter no longer does the right thing for any subdirectories. https://bugs.python.org/issue39769 -- nosy: +gregory.p.smith ___ Python

[issue39769] compileall.compile_dir(..., ddir="") omits the intermediate package paths when prepending the prefix

2020-02-27 Thread Gregory P. Smith
Gregory P. Smith added the comment: belated postmortem: if there had been tests against the filename encoded in the pycs living in subdirs as generated by compile_dir, this regression would not have happened. -- ___ Python tracker

[issue39769] compileall.compile_dir(..., ddir="") omits the intermediate package paths when prepending the prefix

2020-02-27 Thread Gregory P. Smith
Gregory P. Smith added the comment: meaning this regression was introduced in 3.5. -- versions: +Python 3.5 ___ Python tracker ___

[issue39772] Python 2 FAQ shown in h...@python.org auto reply

2020-02-27 Thread wyz23x2
Change by wyz23x2 : -- nosy: -barry, r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39773] Export symbols for vectorcall

2020-02-27 Thread David Hewitt
New submission from David Hewitt : I have been looking into using vectorcall in [pyo3](https://github.com/PyO3/pyo3) (Rust bindings to Python) against python3.8. It looks like the _PyObject_Vectorcall symbols are not included in the shared library. I've checked both Windows and Linux. I

[issue39771] EmailMessage.add_header doesn't work

2020-02-27 Thread Andrei Daraschenka
Andrei Daraschenka added the comment: Hello, could you please attach minimal-work file for reproduce it? -- nosy: +dorosch ___ Python tracker ___

[issue39768] remove tempfile.mktemp()

2020-02-27 Thread Zackery Spytz
Change by Zackery Spytz : -- nosy: +ZackerySpytz ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39774] Missing documentation on how to make package executable as script

2020-02-27 Thread igo95862
New submission from igo95862 : This is package documentation: https://docs.python.org/3/tutorial/modules.html#packages To make package executable (python -m package) you need to create a file __main__.py in the package directory. This is pretty much not documented anyone aside of trying

[issue39774] Missing documentation on how to make package executable as script

2020-02-27 Thread Steven D'Aprano
Steven D'Aprano added the comment: You're right that it's hard to find any documentation on package `__main__.py` files. There's nothing here that I can see: https://docs.python.org/3/reference/import.html#packages Aside from the tutorial, the only other place I can find it referenced is a

[issue38597] C Extension import limit

2020-02-27 Thread Xinfa Zhu
Xinfa Zhu added the comment: FYI when I reduced my package to 106 extension modules, I could run without the DLL error. -- ___ Python tracker ___

[issue39774] Missing documentation on how to make package executable as script

2020-02-27 Thread Andrei Daraschenka
Change by Andrei Daraschenka : -- keywords: +patch nosy: +dorosch nosy_count: 3.0 -> 4.0 pull_requests: +18037 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18677 ___ Python tracker

[issue17422] language reference should specify restrictions on class namespace

2020-02-27 Thread Guido van Rossum
Change by Guido van Rossum : -- nosy: -gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39775] inspect.Signature.parameters should be an OrderedDict, not a plain dict

2020-02-27 Thread Caleb Donovick
Change by Caleb Donovick : -- nosy: +donovick ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39776] Crash in decimal module in heavy-multithreaded scenario

2020-02-27 Thread Evgeny Boytsov
Evgeny Boytsov added the comment: I'am unable to reproduce neither my or your issues with python 3.6. The program runs infinitely as it meant to be. Can you please give me C++ traceback from the core dump, which was created when you ran my program? --

[issue39780] Add HTTP Response code 103

2020-02-27 Thread Ali McMaster
Change by Ali McMaster : -- keywords: +patch pull_requests: +18040 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18681 ___ Python tracker ___

[issue39780] Add HTTP Response code 103

2020-02-27 Thread Dong-hee Na
Dong-hee Na added the comment: Yes, this is duplicated issue. -- nosy: +corona10 ___ Python tracker ___ ___ Python-bugs-list

[issue39771] EmailMessage.add_header doesn't work

2020-02-27 Thread hwgdb Smith
hwgdb Smith added the comment: Microsoft outlook 20116 MSO(16.0.4266.10001) x64 Foxmail 7.2 (build 7.026) I use these two email client. All display incorrectly. And I have uploaded the screenshot. -- Added file: https://bugs.python.org/file48924/foxmail_screenshot.jpeg

[issue39781] IDLE: Do not jump when select in codecontext

2020-02-27 Thread Terry J. Reedy
Change by Terry J. Reedy : -- keywords: +patch pull_requests: +18042 stage: commit review -> patch review pull_request: https://github.com/python/cpython/pull/18683 ___ Python tracker

[issue39778] collections.OrderedDict and weakref.ref raises "refcount is too small" assertion

2020-02-27 Thread Raymond Hettinger
Change by Raymond Hettinger : -- nosy: +eric.snow ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17422] language reference should specify restrictions on class namespace

2020-02-27 Thread Caleb Donovick
Change by Caleb Donovick : -- pull_requests: +18041 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/18682 ___ Python tracker ___

[issue39780] Add HTTP Response code 103

2020-02-27 Thread Martin Panter
Martin Panter added the comment: See also Issue 39509, proposing to add 103 and "425 Too Early" -- nosy: +martin.panter ___ Python tracker ___

[issue39721] Fix constness of members of tok_state struct.

2020-02-27 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset 384f3c536dd15ba33ea7e8afb4087ae359d4c12e by Andy Lester in branch 'master': closes bpo-39721: Fix constness of members of tok_state struct. (GH-18600) https://github.com/python/cpython/commit/384f3c536dd15ba33ea7e8afb4087ae359d4c12e

[issue39704] Disable code coverage

2020-02-27 Thread Ammar Askar
Ammar Askar added the comment: Looks like it was just cached, the latest pull request didn't get a codecov comment nor was it ran on the latest commit: https://github.com/python/cpython/pull/18682 Should this be back-ported so backport pull requests/pull requests to other versioned

[issue39776] Crash in decimal module in heavy-multithreaded scenario

2020-02-27 Thread Evgeny Boytsov
Evgeny Boytsov added the comment: Thank you for feedback. I will try to reproduce the issue with 3.6. By the way, haven't you used gdb with python pretty-printers enabled to examine the state of the program? I've got the same error message, then I breaked the execution in debugger and tried

[issue39778] collections.OrderedDict and weakref.ref raises "refcount is too small" assertion

2020-02-27 Thread Tim Peters
Tim Peters added the comment: I'm suspecting that maybe we shouldn't be doing Py_VISIT(od->od_weakreflist); at all - best I can tell from a quick (non-exhaustive!) scan, the objects in the weakref list aren't incref'ed to begin with. And even if they were, that line would only be

[issue39775] inspect.Signature.parameters should be an OrderedDict, not a plain dict

2020-02-27 Thread Raymond Hettinger
Change by Raymond Hettinger : -- assignee: -> inada.naoki ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39775] inspect.Signature.parameters should be an OrderedDict, not a plain dict

2020-02-27 Thread Inada Naoki
Inada Naoki added the comment: Would you review the PR 18684? -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue39768] remove tempfile.mktemp()

2020-02-27 Thread wyz23x2
wyz23x2 added the comment: Well, I just think it's *serious*. I respect your thoughts. If you want to close this, you can. -- ___ Python tracker ___

[issue39779] [argparse] Add parameter to sort help output arguments

2020-02-27 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks for the suggestion, but I am going to decline. Since the parser remembers the order the arguments were added, the programmer already has complete control over the ordering of arguments. -- nosy: +rhettinger resolution: -> rejected stage:

[issue39771] EmailMessage.add_header doesn't work

2020-02-27 Thread hwgdb Smith
hwgdb Smith added the comment: Microsoft outlook 2016 MSO(16.0.4266.10001) x64 -- Added file: https://bugs.python.org/file48925/outlook_screenshot.jpeg ___ Python tracker ___

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

2020-02-27 Thread Caleb Donovick
Change by Caleb Donovick : -- nosy: +donovick ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39781] IDLE: Do not jump when select in codecontext

2020-02-27 Thread Terry J. Reedy
New submission from Terry J. Reedy : Tweak the code context widget so people can select context lines and copy to clipboard (perhaps to document nested code) without having to do the copy while still holding down the left mouse button. Button-down, move, and release (to select) is not

[issue39778] collections.OrderedDict and weakref.ref raises "refcount is too small" assertion

2020-02-27 Thread Tim Peters
Tim Peters added the comment: Thanks for the succinct example! Although you don't need the print() ;-) I can confirm this crashes the same way under a current master build (albeit on Windows 64-bit). gc is calculating how many references in the current generation are accounted for by

[issue39775] inspect.Signature.parameters should be an OrderedDict, not a plain dict

2020-02-27 Thread Inada Naoki
Change by Inada Naoki : -- nosy: +inada.naoki ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29505] Submit the re, json, csv, & struct modules to oss-fuzz testing

2020-02-27 Thread Gregory P. Smith
Change by Gregory P. Smith : -- title: Submit the re, json, & csv modules to oss-fuzz testing -> Submit the re, json, csv, & struct modules to oss-fuzz testing ___ Python tracker

[issue29505] Submit the re, json, csv, & struct modules to oss-fuzz testing

2020-02-27 Thread Ammar Askar
Change by Ammar Askar : -- nosy: +ammar2 nosy_count: 9.0 -> 10.0 pull_requests: +18043 pull_request: https://github.com/python/cpython/pull/18679 ___ Python tracker ___

[issue39775] inspect.Signature.parameters should be an OrderedDict, not a plain dict

2020-02-27 Thread Inada Naoki
Change by Inada Naoki : -- keywords: +patch pull_requests: +18044 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18684 ___ Python tracker ___

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

2020-02-27 Thread zd nex
zd nex added the comment: Hi, i was looking on failing tests on attached pull request and it seems to me that it intentionally should create new entry for saving. Maybe that save should actually happen, but it should be fixed in different way? From my small tests I was thinking that

[issue23080] BoundArguments.arguments should be unordered

2020-02-27 Thread Antony Lee
Antony Lee added the comment: Done in bugs.python.org/issue36350 / https://github.com/python/cpython/pull/12412. -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker

[issue39757] EmailMessage wrong encoding for international domain

2020-02-27 Thread Julien Castiaux
Julien Castiaux added the comment: Woops wrong copie/paste, here is the correct link: https://bugs.python.org/issue11783 -- ___ Python tracker ___

[issue39771] EmailMessage.add_header doesn't work

2020-02-27 Thread hwgdb Smith
hwgdb Smith added the comment: I have uploaded just now. Thank you. -- Added file: https://bugs.python.org/file48920/email bug.rar ___ Python tracker ___

[issue39776] Crash in decimal module in heavy-multithreaded scenario

2020-02-27 Thread Evgeny Boytsov
New submission from Evgeny Boytsov : Hello everybody! We are using Python 3.7 running at CentOS 7 x64. Python is used as a library to create dynamic extensions for our app server. Some time ago we began to experience crashes in decimal module in some heavy-multithreaded scenarios. After

[issue39636] Can't change Treeview row color in Tkinter

2020-02-27 Thread Олег Париев
Олег Париев added the comment: I figured out the problem myself. I found out that the problem was in the topic that I used for Tkinter -- ___ Python tracker ___

[issue38380] Update SQLite to 3.30 in Windows and macOS installer builds

2020-02-27 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: I've updated these patches to sqlite3-3.30.1 (https://www.sqlite.org/releaselog/3_30_1.html). cpython-source-deps is updated (https://github.com/python/cpython-source-deps/pull/17). CPython commits are updated and rebased onto current 3.9 master:

[issue39771] EmailMessage.add_header doesn't work

2020-02-27 Thread R. David Murray
R. David Murray added the comment: I think you are saying that you want the charset in the encoded filename to be GBK rather than utf-8? utf-8 should certainly display correctly in your email client, though, so if it is not there is something else going wrong. As far as the 3 tuple not

[issue38597] C Extension import limit

2020-02-27 Thread Steve Dower
Steve Dower added the comment: Thanks, it does seem like it's finding the correct MSVC, but is not finding the redistributable DLL: > cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MT ... The "/MT" means to statically the CRT, and then we use link settings later to dynamically link the part

[issue38597] C Extension import limit

2020-02-27 Thread Steve Dower
Steve Dower added the comment: Hmm, just ran it on my own and it's finding the OneCore file first, which is not a problem (yet) but could become one. So we at least need to replace the "**" with a "*" in Lib/distutils/_msvccompiler.py#L109. Not sure if that will help in this other case or

[issue39775] inspect.Signature.parameters should be an OrderedDict, not a plain dict

2020-02-27 Thread Antony Lee
New submission from Antony Lee : https://bugs.python.org/issue36350 / https://github.com/python/cpython/pull/12412 changed Signature.parameters and BoundArguments.arguments to be plain dicts, not OrderedDicts (for Py3.9a4). Even though I agree for BoundArguments.arguments (in fact I argued

[issue39757] EmailMessage wrong encoding for international domain

2020-02-27 Thread Julien Castiaux
Julien Castiaux added the comment: Duplicate of https://bugs.python.org/issue39757 -- resolution: -> duplicate stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue38380] Update SQLite to 3.30 in Windows and macOS installer builds

2020-02-27 Thread Erlend Egeberg Aasland
Change by Erlend Egeberg Aasland : -- pull_requests: +18038 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/18678 ___ Python tracker

[issue39771] EmailMessage.add_header doesn't work

2020-02-27 Thread hwgdb Smith
hwgdb Smith added the comment: Using utf-8 doesn't display correctly on my mail client. So i thought it might work using GBK, and I try to change the Content-Disposition filename using GBK. And just now, I print the legacy Api MIMEMultipart.as_string(), I found it using utf-8 too. The

[issue39763] distutils.spawn should use subprocess (hang in parallel builds on QNX)

2020-02-27 Thread Elad Lahav
Elad Lahav added the comment: "When I uncomment the os.execl() line, the program runs and completes." In that case I'm not sure it is the same issue. The child processes in your case executed their part of the new_process function, which then returned. Nevertheless from the trace it looks

[issue38380] Update SQLite to 3.30 in Windows and macOS installer builds

2020-02-27 Thread Erlend Egeberg Aasland
Change by Erlend Egeberg Aasland : Added file: https://bugs.python.org/file48921/0001-bpo-38380-Update-macOS-installer-to-use-SQLite-3.30.1.patch ___ Python tracker ___

[issue38380] Update SQLite to 3.30 in Windows and macOS installer builds

2020-02-27 Thread Erlend Egeberg Aasland
Change by Erlend Egeberg Aasland : Added file: https://bugs.python.org/file48922/0002-bpo-38380-Update-Windows-builds-to-use-SQLite-3.30.1.patch ___ Python tracker ___

[issue39771] EmailMessage.add_header doesn't work

2020-02-27 Thread R. David Murray
R. David Murray added the comment: Actually, given that the contentmanager does accept a charset parameter for text content, it does seem reasonable to treat this as a bug. But as I said fixing it may not be trivial. -- ___ Python tracker

[issue39768] remove tempfile.mktemp()

2020-02-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: wyz23x2, why do you think that this is not a duplicate of issue36309? -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue39771] EmailMessage.add_header doesn't work

2020-02-27 Thread hwgdb Smith
hwgdb Smith added the comment: Why there are two different representations of the same file name? It displays incorrectly when use the EmailMessage API filename representation. -- ___ Python tracker

[issue39689] test_struct failure on s390x Fedora Clang buildbot

2020-02-27 Thread Petr Viktorin
Petr Viktorin added the comment: C compiler dev that it's indeed undefined behavior. > Quick and obvious fix: > > static PyObject * > nu_bool(const char *p, const formatdef *f) > { > char x; > memcpy((char *), p, sizeof x); > return

[issue36144] Dictionary union. (PEP 584)

2020-02-27 Thread Guido van Rossum
Guido van Rossum added the comment: OK, assuming `|=` gets the same semantics as update(), can you repeat once more (without motivation) what the specification for `cm | other` will be? -- ___ Python tracker

[issue39763] distutils.spawn should use subprocess (hang in parallel builds on QNX)

2020-02-27 Thread Guido van Rossum
Guido van Rossum added the comment: The key is that os.execl() never returns. My understanding is that the hang happens when the child code returns (or raises) in the forked child process, because the semaphore state is cloned by the fork. There is no logging here. I just added some

[issue39776] Crash in decimal module in heavy-multithreaded scenario

2020-02-27 Thread Stefan Krah
Stefan Krah added the comment: I've briefly looked at the zip archive. Without going much into the C++ module as a whole, this should not be done: gil_unlocker.UnlockGILAndSleep() self.val = decimal.Decimal(1) / decimal.Decimal(7) gil_unlocker.UnlockGILAndSleep() If you want

[issue36144] Dictionary union. (PEP 584)

2020-02-27 Thread Guido van Rossum
Guido van Rossum added the comment: I had just come to a different conclusion. Maybe ChainMap should just not grow `|` and `|=` operators? That way there can be no confusion. `dict() | ChainMap()` and `ChainMap() | dict()` will fail because ChainMap doesn't inherit from dict. (Note that in

[issue36144] Dictionary union. (PEP 584)

2020-02-27 Thread Brandt Bucher
Brandt Bucher added the comment: I believe that: cm | other Should return the equivalent of: ChainMap(cm.maps[0] | dict(other), *cm.maps[1:]) -- ___ Python tracker

[issue39763] distutils.spawn should use subprocess (hang in parallel builds on QNX)

2020-02-27 Thread Elad Lahav
Elad Lahav added the comment: OK, but that's not the problem I see. The parent calls fork(), creates a child that then runs the atfork() handlers *before* returning from the os.fork() call (which is the expected behaviour). At least one of those atfork() handlers is the one registered by

[issue36144] Dictionary union. (PEP 584)

2020-02-27 Thread Guido van Rossum
Guido van Rossum added the comment: I didn't see your second reply, with `ChainMap(other, *cm.maps)`. I'm not so keen on that, because its special behavior can't be mimicked by `|=`. -- ___ Python tracker

[issue39757] EmailMessage wrong encoding for international domain

2020-02-27 Thread SilentGhost
Change by SilentGhost : -- superseder: -> email parseaddr and formataddr should be IDNA aware ___ Python tracker ___ ___

[issue36144] Dictionary union. (PEP 584)

2020-02-27 Thread Brandt Bucher
Brandt Bucher added the comment: ...however, I could also see the (similar): ChainMap(other, *cm.maps) # Note that `other` is the original reference here. Being okay as well. Maybe even better, now that I've written it out. -- ___ Python

[issue39689] test_struct failure on s390x Fedora Clang buildbot

2020-02-27 Thread Petr Viktorin
Petr Viktorin added the comment: The call: struct.unpack('>?', b'\xf0') means to unpack a "native bool", i.e. native size and alignment. Internally, this does: static PyObject * nu_bool(const char *p, const formatdef *f) { _Bool x; memcpy((char *), p, sizeof

[issue39776] Crash in decimal module in heavy-multithreaded scenario

2020-02-27 Thread Stefan Krah
Stefan Krah added the comment: Before I look at the example code: Can you also reproduce this with Python 3.6? The threading code in _decimal was changed to a ContextVar in 3.7. There's a high chance though that the problem is in the c++ module. -- nosy: +skrah

[issue36144] Dictionary union. (PEP 584)

2020-02-27 Thread Brandt Bucher
Brandt Bucher added the comment: > Note that in your last message, `d1 |= cm2` will fail for this reason. You > can of course fix that with `d1 |= dict(cm2)`, although IIUC there's no > reason one of the maps couldn't be some other [Mutable]Mapping. Mappings and iterables are fine for the

[issue36144] Dictionary union. (PEP 584)

2020-02-27 Thread Guido van Rossum
Guido van Rossum added the comment: OK, that makes sense, it works similar to ChainMap.copy(), which copies maps[0] and keeps links to the rest. So in particular `cm | {}` will do the same thing as cm.copy(). Im not sure if the dict(other) cast is the best way to go about it. Maybe this

[issue39771] EmailMessage.add_header doesn't work

2020-02-27 Thread R. David Murray
R. David Murray added the comment: The legacy API appears to be using an RFC-incorrect (but common) encoded-word encoding, while the new API is using the RFC-compliant MIME-parameter encoding (% encoding). Which email client are you using? --

[issue39730] Licence (license) for Python 3.8.1 is missing

2020-02-27 Thread Brett Cannon
Brett Cannon added the comment: The 3.8.1 license can be found at https://github.com/python/cpython/blob/v3.8.1/LICENSE. But the reason you are seeing the license as under 3.8.2rc2 is because that's the version the 3.8 docs is showing, not 3.8.1. So there's no license missing, you're just

[issue39715] Implement __repr__ methods for AST classes

2020-02-27 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39704] Disable code coverage

2020-02-27 Thread Brett Cannon
Brett Cannon added the comment: The codecov config lives at https://github.com/python/cpython/blob/master/.github/codecov.yml and the docs for the file are at https://docs.codecov.io/docs/codecov-yaml. Specifically, the comment feature is covered at

[issue39777] Use the codecov GH Action

2020-02-27 Thread Brett Cannon
New submission from Brett Cannon : Codecov provides a GH Action for uploading coverage reports which we might as well use instead of their bash uploader: https://github.com/marketplace/actions/codecov. -- messages: 362839 nosy: brett.cannon, steve.dower priority: normal severity:

[issue39763] distutils.spawn should use subprocess (hang in parallel builds on QNX)

2020-02-27 Thread Elad Lahav
Elad Lahav added the comment: As sure as I can be given my limited experience debugging Python... Luckily I do know my way around the QNX kernel ;-) The stack trace for the child shows it stuck on a semaphore with a count value of 0. A print in the logging module shows that the child gets

[issue36144] Dictionary union. (PEP 584)

2020-02-27 Thread Brandt Bucher
Brandt Bucher added the comment: > Im not sure if the dict(other) cast is the best way to go about it. Maybe > this would work? Yeah, I was imagining something like that... I used the cast for brevity in my reply but that probably wasn't helpful. Note that for __or__, we probably want to

[issue39763] distutils.spawn should use subprocess (hang in parallel builds on QNX)

2020-02-27 Thread Guido van Rossum
Guido van Rossum added the comment: And you're sure that your "toy" example hangs in the at-fork handler. In that case I can't help you further, I don't have the resources or time to try out QNX. Your best bet is indeed to change distutils.spawn to not use fork+exec -- do you think you can

[issue39776] Crash in decimal module in heavy-multithreaded scenario

2020-02-27 Thread Stefan Krah
Change by Stefan Krah : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue36144] Dictionary union. (PEP 584)

2020-02-27 Thread Brandt Bucher
Brandt Bucher added the comment: Just to clarify: If we decide to check isinstance(other, (ChainMap, dict)), '|' should probably be used. If we decide to check isinstance(other, Mapping), I think the copy/update methods should be used. -- ___

[issue39776] Crash in decimal module in heavy-multithreaded scenario

2020-02-27 Thread Evgeny Boytsov
Evgeny Boytsov added the comment: Please note, that UnlockGILandSleep takes GIL back before returning. In a real production code there is a database query. In this example I emulate them with random sleep. So I don't see any problems here. -- ___

[issue39704] Disable code coverage

2020-02-27 Thread Brett Cannon
Brett Cannon added the comment: New changeset 766b7546a564c8e386a3c31eb06fc1b55e8f5a25 by Ammar Askar in branch 'master': bpo-39704: Explicitly pass the path to codecov config (GH-18680) https://github.com/python/cpython/commit/766b7546a564c8e386a3c31eb06fc1b55e8f5a25 --

[issue39779] [argparse] Add parameter to sort help output arguments

2020-02-27 Thread brian.gallagher
New submission from brian.gallagher : 1 import argparse 2 3 parser = argparse.ArgumentParser(description='Test')

[issue39689] test_struct failure on s390x Fedora Clang buildbot

2020-02-27 Thread Benjamin Peterson
Benjamin Peterson added the comment: maybe we should be raising an error if the bytes are not a valid platform _Bool pattern? -- nosy: +benjamin.peterson ___ Python tracker

[issue36144] Dictionary union. (PEP 584)

2020-02-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: 1. def __or__(self, other): return self.__class__(self.maps[0] | other, *self.maps[1:]) def __ror__(self, other): return other | dict(self) 2. def __or__(self, other): return self.__class__(other, *self.maps) def __ror__(self, other):

[issue39609] Set the thread_name_prefix for asyncio's default executor ThreadPoolExecutor

2020-02-27 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue39689] test_struct failure on s390x Fedora Clang buildbot

2020-02-27 Thread Gregory P. Smith
Gregory P. Smith added the comment: the concept of a native _Bool seems fuzzy. the important thing for the struct module is to consume sizeof _Bool bytes from the input stream. how those are interpreted is up to the platform. So if the platform says a bool is 8 bytes and it only ever

[issue39609] Set the thread_name_prefix for asyncio's default executor ThreadPoolExecutor

2020-02-27 Thread miss-islington
miss-islington added the comment: New changeset 374d998b507d34a6c0a3816a163926a8ba0c483f by Markus Mohrhard in branch 'master': bpo-39609: set the thread_name_prefix for the default asyncio executor (GH-18458) https://github.com/python/cpython/commit/374d998b507d34a6c0a3816a163926a8ba0c483f

[issue39765] asyncio loop.add_signal_handler() may not behave as expected

2020-02-27 Thread Andrew Svetlov
Andrew Svetlov added the comment: Other threads are not related. Speaking about the main thread that runs an event loop with the signal handler installed -- the handler is executed along with other async code. If the loop executes some user-provides async task -- it executes the signal

[issue39689] test_struct failure on s390x Fedora Clang buildbot

2020-02-27 Thread Gregory P. Smith
Change by Gregory P. Smith : -- components: +Extension Modules nosy: +gregory.p.smith stage: -> needs patch type: -> behavior ___ Python tracker ___

[issue39776] Crash in decimal module in heavy-multithreaded scenario

2020-02-27 Thread Stefan Krah
Stefan Krah added the comment: I built your example with 3.6: git clone https://github.com/pybind/pybind11 wget https://bugs.python.org/file48923/decimal_crash.zip unzip decimal_crash.zip git checkout v3.6.7 ./configure --with-pydebug make g++ -std=c++11 -pthread -Wno-unused-result

[issue36144] Dictionary union. (PEP 584)

2020-02-27 Thread Brandt Bucher
Brandt Bucher added the comment: I think we're only seriously considering the first variant (although implemented slightly differently, see my last two messages). And __ror__ would probably change, returning the type of self. What are the "problems" with it, exactly? We seem to be in

[issue14678] Update zipimport to support importlib.invalidate_caches()

2020-02-27 Thread Brett Cannon
Brett Cannon added the comment: @crwilcox Don't know what's left. That's probably part of the work that's left. ;) This issue is so old that it's possibly out-of-date since zipimport got rewritten in pure Python. -- ___ Python tracker

[issue10572] Move test sub-packages to Lib/test

2020-02-27 Thread Brett Cannon
Brett Cannon added the comment: @ned.deily the motivation is covered in Michael's initial comment; some vendors like to leave out the tests and not having them all under 'test' prevents that from working cleanly. Plus it makes the tests more discoverable. As for any of the projects being

[issue39778] collections.OrderedDict and weakref.ref raises "refcount is too small" assertion

2020-02-27 Thread Leonard Lausen
Change by Leonard Lausen : -- type: -> crash ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39763] distutils.spawn should use subprocess (hang in parallel builds on QNX)

2020-02-27 Thread Elad Lahav
Elad Lahav added the comment: I may be missing something, but subprocess depends on _posixsubprocess, which doesn't get built until setup.py is run, which results in a circular dependency. -- ___ Python tracker

  1   2   >