[Python-ideas] Re: New 'How to Write a Good Bug Report' Article for Docs

2021-08-18 Thread c . buhtz
Bug Report https://github.com/mdn/content/issues/8036 ___ Python-ideas mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived

[Python-ideas] Re: Notation for subscripts.

2021-08-18 Thread Matsuoka Takuo
Matsuoka Takuo : > > Now, is "1,2," more boxed up than "*(1,2)," is? The *current* rule > surely says the former is a tuple at some places and the latter > is not, Actually, this was wrong. First of all, >>> *(1,2), (1, 2) Moreover, while the Language Reference says return_stmt ::= "return"

[Python-ideas] multiprocessing: hybrid CPUs

2021-08-18 Thread c . buhtz
Hello, before posting to python-dev I thought is is the best to discuss this here. And I assume that someone else had the same idea then me before. Maybe you can point me to the relevant discussion/ticket. I read about Intels hybrid CPUs. It means there are multiple cores e.g. 8 high-speed c

[Python-ideas] SyntaxError says: "can't use starred expression here", but its not the same "starred expression" defined in the Language Reference.

2021-08-18 Thread Matsuoka Takuo
The error mentioned in the title is this. >>> *() File "", line 1 SyntaxError: can't use starred expression here According to the Language Reference https://docs.python.org/3/reference/expressions.html#expression-lists it's not really a starred expression. In the context of defining the notio

[Python-ideas] Re: Notation for subscripts.

2021-08-18 Thread Matsuoka Takuo
Dear Guido van Rossum, Thank you for bringing the PEP's to my attention. The idea of PEP 637 on a[*x] is different from my idea. The PEP's idea appears making subscription analogous to function calls. In the end, a[*x] would have been equivalent to a[tuple(x)] if the PEP had been adopted. a[*

[Python-ideas] Re: multiprocessing: hybrid CPUs

2021-08-18 Thread Joao S. O. Bueno
So, It is out of scope of Pythonmultiprocessing, and, as I perceive it, from the stdlib as a whole to be able to allocate specific cores for each subprocess - that is automatically done by the O.S. (and of course, the O.S. having an interface for it, one can write a specific Python library which wo

[Python-ideas] Re: multiprocessing: hybrid CPUs

2021-08-18 Thread c . buhtz
Dear Joan, Am 18.08.2021 14:36 schrieb Joao S. O. Bueno: As it stands however, is that you simply have to change your approach: instead of dividing yoru workload into different cores before starting, the common approach there is to set up worker processes, one per core, or per processor thread,

[Python-ideas] Re: multiprocessing: hybrid CPUs

2021-08-18 Thread Chris Angelico
On Wed, Aug 18, 2021 at 10:37 PM Joao S. O. Bueno wrote: > > So, > It is out of scope of Pythonmultiprocessing, and, as I perceive it, from > the stdlib as a whole to be able to allocate specific cores for each > subprocess - > that is automatically done by the O.S. (and of course, the O.S. havin

[Python-ideas] Re: multiprocessing: hybrid CPUs

2021-08-18 Thread Marc-Andre Lemburg
On 18.08.2021 15:58, Chris Angelico wrote: > On Wed, Aug 18, 2021 at 10:37 PM Joao S. O. Bueno > wrote: >> >> So, >> It is out of scope of Pythonmultiprocessing, and, as I perceive it, from >> the stdlib as a whole to be able to allocate specific cores for each >> subprocess - >> that is automat

[Python-ideas] Re: multiprocessing: hybrid CPUs

2021-08-18 Thread Chris Angelico
On Thu, Aug 19, 2021 at 12:52 AM Marc-Andre Lemburg wrote: > > On 18.08.2021 15:58, Chris Angelico wrote: > > On Wed, Aug 18, 2021 at 10:37 PM Joao S. O. Bueno > > wrote: > >> > >> So, > >> It is out of scope of Pythonmultiprocessing, and, as I perceive it, from > >> the stdlib as a whole to be

[Python-ideas] Re: multiprocessing: hybrid CPUs

2021-08-18 Thread Barry
> On 18 Aug 2021, at 16:03, Chris Angelico wrote: > > On Thu, Aug 19, 2021 at 12:52 AM Marc-Andre Lemburg wrote: >> >>> On 18.08.2021 15:58, Chris Angelico wrote: >>> On Wed, Aug 18, 2021 at 10:37 PM Joao S. O. Bueno >>> wrote: So, It is out of scope of Pythonmultiprocessin

[Python-ideas] Re: multiprocessing: hybrid CPUs

2021-08-18 Thread Christopher Barker
The worker pool approach is probably the way to go, but there is a fair bit of overhead to creating a multiprocessing job. So fewer, larger jobs are faster than many small jobs. So you do want to make the jobs as large as you can without wasting CPU time. -CHB On Wed, Aug 18, 2021 at 9:09 AM Bar

[Python-ideas] Stack-scoped variables

2021-08-18 Thread Paul Prescod
Let's imagine I have an algorithm which depends on a context variable. I write an algorithm (elided below for space) which depends on it. Then I realize that I can improve the performance of my algorithm by using concurrent.futures. But my algorithm will change its behaviour because it does not

[Python-ideas] Re: New 'How to Write a Good Bug Report' Article for Docs

2021-08-18 Thread Thomas Grainger
Jack DeVries wrote: > Hi All! > We are trying to replace a link in the official docs which is now > broken, but used to link to this article: > https://web.archive.org/web/20210613191914/https://developer.mozilla.org/en-... > Can you offer a suggestion for a replacement? The bad link has already >

[Python-ideas] Re: Stack-scoped variables

2021-08-18 Thread Cameron Simpson
On 18Aug2021 16:30, Paul Prescod wrote: >Let's imagine I have an algorithm which depends on a context variable. > >I write an algorithm (elided below for space) which depends on it. Then I >realize that I can improve the performance of my algorithm by using >concurrent.futures. But my algorithm

[Python-ideas] Re: multiprocessing: hybrid CPUs

2021-08-18 Thread Stephen J. Turnbull
Christopher Barker writes: > The worker pool approach is probably the way to go, but there is a fair bit > of overhead to creating a multiprocessing job. So fewer, larger jobs are > faster than many small jobs. True, but processing those rows would have to be awfully fast for the increase in o

[Python-ideas] Re: multiprocessing: hybrid CPUs

2021-08-18 Thread Thomas Grainger
Would a work stealing approach work better for you here? Then the only signalling overhead would be when a core runs out of work On Thu, 19 Aug 2021, 05:36 Stephen J. Turnbull, < [email protected]> wrote: > Christopher Barker writes: > > > The worker pool approach is probably t