[Python-ideas] Re: Start argument for itertools.accumulate() [Was: Proposal: A Reduce-Map Comprehension and a "last" builtin]

2019-10-04 Thread trekha89
Historical gloss: Lehman surprisingly transformed Fermat's O(n) method into an O(cube_root(n)) method. I believe that was the first deterministic factoring method known beating trial division's O(sqrt(n)) time. Alas for Lehman, Pollard very soon after published his rho method, which runs in prob

[Python-ideas] Re: Start argument for itertools.accumulate() [Was: Proposal: A Reduce-Map Comprehension and a "last" builtin]

2019-10-04 Thread Jonathan Goble
On Fri, Oct 4, 2019 at 7:41 AM wrote: > [spam removed] Why is this 18-month-old thread in particular attracting spammers? The last four messages to this thread have been three spam links and one complaint about spam. Is there any reason for this thread to be bumped in the future with legitimate d

[Python-ideas] Allow kwargs in __{get|set|del|}item__

2019-10-04 Thread Caleb Donovick
While there is no restriction on passing dicts to getitem. Doing so tends to be a bit ugly. I have two main use cases in mind for this syntax. The first and perhaps the most obvious, is doing relational queries. ``` where_x_1 = db[x=1] ``` is more beautiful than ``` where_x_1 = db[dict(x=1)] wh

[Python-ideas] Re: Allow kwargs in __{get|set|del|}item__

2019-10-04 Thread Todd
On Fri, Oct 4, 2019 at 3:59 PM Caleb Donovick wrote: > While there is no restriction on passing dicts to getitem. Doing so tends > to be a bit ugly. I have two main use cases in mind for this syntax. > > The first and perhaps the most obvious, is doing relational queries. > ``` > where_x_1 = d