[Python-ideas] Re: Conditional with statements

2021-02-07 Thread lasizoillo
El dom, 7 feb 2021 a las 9:38, Jonathan Crall () escribió: > > > Currently my timerit package requires syntax like: > > import timerit > for timer in timerit.Timerit(num=100, bestof=3, verbose=1): > with timer: > [code] > > But that could be simplified to > > > import timerit > for tim

[Python-ideas] Re: Conditional with statements

2021-02-06 Thread lasizoillo
El dom, 7 feb 2021 a las 3:08, MRAB () escribió: > On 2021-02-07 00:57, Jonathan Crall wrote: > > > [snip] > > > > To be clear, in the proposed syntax: > > > > if [condition] with [obj]: > > [code] > > > > Would behave exactly as: > > > > if [condition]: > > with [obj]:

[Python-ideas] Re: Python with braces formal proposal?

2021-01-05 Thread lasizoillo
Hi! El mar, 5 ene 2021 a las 0:35, Paul Sokolovsky () escribió: > Hello, > > On Tue, 5 Jan 2021 08:52:54 +1100 > Steven D'Aprano wrote: > > > >> We love Python. We love them bash one-liners. We want to do > >> one-liners in Python. > > > The most vivid real-world example of that I know is Frida

[Python-ideas] Re: Capture manylinux environment set-up in pyproject.toml

2020-12-23 Thread lasizoillo
> > The manylinux project does not specify a way to record "environment set > up" information required to build wheels from certain packages. > > Some packages require that the stock manylinux environment be modified by > installing system dependencies, setting environment variables, modifying > th