Re: One-liner to merge lists?

2022-02-26 Thread Chris Angelico
On Sun, 27 Feb 2022 at 16:35, Dan Stromberg wrote: > > > On Fri, Feb 25, 2022 at 3:15 PM Chris Angelico wrote: >> >> But ultimately, that's still the same as sum(), and it's no more >> readable than chain(), so I'd still be inclined to go with chain and >> then wrap it in a function if you need t

Re: One-liner to merge lists?

2022-02-26 Thread Dan Stromberg
On Fri, Feb 25, 2022 at 3:15 PM Chris Angelico wrote: > But ultimately, that's still the same as sum(), and it's no more > readable than chain(), so I'd still be inclined to go with chain and > then wrap it in a function if you need the clarity. > "Need" the clarity? Please tell me you don't th

Re: How to solve the given problem?

2022-02-26 Thread Dennis Lee Bieber
On Sat, 26 Feb 2022 02:49:15 -0800 (PST), NArshad declaimed the following: >Its better to adjust the feed in the coming next two feeds that is the third >and fourth one. Thirty or thirty one units in the third feed and the remaining >units which are nine or ten in the fourth feed. Is

Re: C is it always faster than nump?

2022-02-26 Thread Dennis Lee Bieber
On Fri, 25 Feb 2022 21:44:14 -0800, Dan Stromberg declaimed the following: >Fortran, (still last I heard) did not support pointers, which gives Fortran >compilers the chance to exploit a very nice class of optimizations you >can't use nearly as well in languages with pointers. > Haven't l

Re: C is it always faster than nump?

2022-02-26 Thread Neil
Dan Stromberg wrote: > On Fri, Feb 25, 2022 at 8:12 AM BELAHCENE Abdelkader < > abdelkader.belahc...@enst.dz> wrote: > >> Hi, >> a lot of people think that C (or C++) is faster than python, yes I agree, >> but I think that's not the case with numpy, I believe numpy is faster than >> C, at least i

Re: Best way to check if there is internet?

2022-02-26 Thread Robert Latest via Python-list
Chris Angelico wrote: > Every language learns from every other. Except Visual Basic, which didn't learn anything from anywhere, and all that can be learned from it is how not to do it. Ugh. -- https://mail.python.org/mailman/listinfo/python-list

Re: PYT - The expressions described in the Python language reference yield only boolean values

2022-02-26 Thread Peter J. Holzer
On 2022-02-19 23:28:28 +0100, vanyp wrote: > *I am trying to learn Python from the grammar given in the Python language > reference and I am surprised.* > > *Lets start here:* > > *"* > *6.3.4. Calls* > > A call calls a callable object (e.g., a function >

Re: PYT - How can I subscribe to a topic in the mailing list?

2022-02-26 Thread Peter J. Holzer
On 2022-02-21 12:19:36 +0100, vanyp wrote: > The option to filter by topic is offered in the mailing list subscription > customization page, although no option list is given. Topics may have been a > project that was never implemented. Topics are a rarely used feature of the mailman mailing list s

Re: Best way to check if there is internet?

2022-02-26 Thread Peter J. Holzer
On 2022-02-22 12:31:42 +0400, Abdur-Rahmaan Janhangeer wrote: > A front end eng sent me this for how to check for the internet in JS > > https://html.spec.whatwg.org/multipage/system-state.html#dom-navigator-online > > But it also says: > > "This attribute is inherently unreliable. A computer ca