Re: Why doesn't collections.Counter support a "key" argument in its constructor?

2020-09-12 Thread Random832
On Fri, Sep 11, 2020, at 12:01, Saurav Chirania wrote: > I really like that python's sort method accepts a key function as a > parameter which can be used to specify how elements should be compared. > > Similarly, we could have a "key" argument which specifies how elements > should be counted. Let

RE: Audacity and pipe_test.py

2020-09-12 Thread Steve
>>My time.sleep(60) or the do_command("'Start Time'=0, 'End Time'=150") >>lines > The first does nothing for Audacity processing -- it only blocks the >Python script itself. And you haven't provided the Audacity command >completely -- since I can't find that on the script reference page.

Re: requests-html 0.10.0 stopped rendering

2020-09-12 Thread nhpython
> On 09/12/2020 11:28 AM nhpython wrote: > > > Windows 10 x64 Pro v10.0.19041.488 build 19041 > 2020-09 Cumulative Update for Win 10 Ver 2004 for x64 KB4571756 > 2020-09 Cumulative Update for .NET Framework 3.5 & 4.8 for Win 10 Ver 2004 > for x64 KB4576478 > requests-html 0.10.0 > pyppeteer

Re: Why doesn't collections.Counter support a "key" argument in its constructor?

2020-09-12 Thread Peter Otten
Saurav Chirania wrote: > I really like that python's sort method accepts a key function as a > parameter which can be used to specify how elements should be compared. > > Similarly, we could have a "key" argument which specifies how elements > should be counted. Let's say we have a list of a mill

Re: Why doesn't collections.Counter support a "key" argument in its constructor?

2020-09-12 Thread Chris Angelico
On Sun, Sep 13, 2020 at 2:29 AM Saurav Chirania wrote: > > I really like that python's sort method accepts a key function as a > parameter which can be used to specify how elements should be compared. > > Similarly, we could have a "key" argument which specifies how elements > should be counted. L

Re: Audacity and pipe_test.py

2020-09-12 Thread Chris Angelico
On Sun, Sep 13, 2020 at 2:33 AM Dennis Lee Bieber wrote: > > On Thu, 10 Sep 2020 18:22:29 -0400, "Steve" declaimed > the following: > > >Your line worked except that I used copy/paste to place it in the program. > >I kept on getting something like "improper indentation or tab" and pointing > >to

Why doesn't collections.Counter support a "key" argument in its constructor?

2020-09-12 Thread Saurav Chirania
I really like that python's sort method accepts a key function as a parameter which can be used to specify how elements should be compared. Similarly, we could have a "key" argument which specifies how elements should be counted. Let's say we have a list of a million students. I would like to do s

requests-html 0.10.0 stopped rendering

2020-09-12 Thread nhpython
Windows 10 x64 Pro v10.0.19041.488 build 19041 2020-09 Cumulative Update for Win 10 Ver 2004 for x64 KB4571756 2020-09 Cumulative Update for .NET Framework 3.5 & 4.8 for Win 10 Ver 2004 for x64 KB4576478 requests-html 0.10.0 pyppeteer 0.2.2 python 3.7+ requests 2.24 I've been using requests-html