2017-08-05 12:49 GMT+02:00 Barry :
> Does you code allow suporting more then gzip? For example Brotli
> compression is becoming inmportant for some web apps.
>
> Barry
>
In the latest version of the Pull Request, only gzip is supported. But your
comment makes me think that the code should probably
Ruby provides this feature. A friend who is a long term user of Rails
complained that Rails abuses this and it's a mess in practice. So I
dislike this idea.
Victor
2017-08-04 9:39 GMT+02:00 Paul Laos :
> Hi folks
> I was thinking about how sometimes, a function sometimes acts on classes,
> and
>
The generator syntax, (x for x in i if c), currently always creates a
new generator. I find this quite inefficient:
{x for x in integers if 1000 <= x < 100} # never completes, because
it's trying to iterate over all integers
What if, somehow, object `integers` could hook the generator and
On Tue, Aug 8, 2017 at 5:30 AM, Soni L. wrote:
> The generator syntax, (x for x in i if c), currently always creates a new
> generator. I find this quite inefficient:
>
> {x for x in integers if 1000 <= x < 100} # never completes, because it's
> trying to iterate over all integers
>
> What if,
On Mon, Aug 7, 2017 at 4:14 PM, Chris Angelico wrote:
> On Tue, Aug 8, 2017 at 5:30 AM, Soni L. wrote:
> > The generator syntax, (x for x in i if c), currently always creates a new
> > generator.
that's what it's for -- I'm confused as to what the problem is.
> > {x for x in integers if 1000
Hi Soni, and welcome!
On Mon, Aug 07, 2017 at 04:30:05PM -0300, Soni L. wrote:
> What if, (x for x in integers if 1000 <= x < 100), was syntax sugar
> for (x for x in range(1000, 100))?
If you want the integers from 1000 to 100, use:
range(1000, 100)
Don't waste your time slow
On 2017-08-07 08:35 PM, Steven D'Aprano wrote:
Hi Soni, and welcome!
On Mon, Aug 07, 2017 at 04:30:05PM -0300, Soni L. wrote:
What if, (x for x in integers if 1000 <= x < 100), was syntax sugar
for (x for x in range(1000, 100))?
If you want the integers from 1000 to 100, use:
r