Re: [Python-ideas] PEP 572 version 2: Statement-Local Name Bindings

2018-03-16 Thread David Foster
(1) I am concerned with the proposal's ability to introduce variables with a new broader kind of multi-line scope not seen anywhere else in Python. It is difficult to reason about, particularly in constructs like lambdas and inline def functions. Limiting scope to the very same line is great: > s

Re: [Python-ideas] Adding quantile to the statistics module

2018-03-16 Thread Nathaniel Smith
On Fri, Mar 16, 2018 at 11:19 PM, Stephen J. Turnbull wrote: > PLIQUE Guillaume writes: > > > That's really interesting. I did not know there were so many way to > > consider quantiles. Maybe we should indeed wait for numpy to take a > > decision on the matter and go with their default choice s

Re: [Python-ideas] Adding quantile to the statistics module

2018-03-16 Thread Stephen J. Turnbull
PLIQUE Guillaume writes: > That's really interesting. I did not know there were so many way to > consider quantiles. Maybe we should indeed wait for numpy to take a > decision on the matter and go with their default choice so we remain > consistent with the ecosystem? The example of R with 9

Re: [Python-ideas] New PEP proposal -- Pathlib Module Should Contain All File Operations

2018-03-16 Thread Stephen J. Turnbull
Joonas Liik writes: > then it might be an acceptable compromise to have yet another... "There should be one-- and preferably only one -- obvious way to do it." The obvious way is to use the existing stdlib modules. So > package that just imports os, pathlib, shutil etc and re-exports >

Re: [Python-ideas] Descouraging the implicit string concatenation

2018-03-16 Thread Matt Arcidy
On Thu, Mar 15, 2018 at 8:58 PM, Rob Cliffe via Python-ideas wrote: > > > On 14/03/2018 17:57, Chris Angelico wrote: > > On Thu, Mar 15, 2018 at 12:40 AM, Søren Pilgård > wrote: > > Of course you can always make error, even in a single letter. > But I think there is a big difference between mixin

Re: [Python-ideas] Adding quantile to the statistics module

2018-03-16 Thread PLIQUE Guillaume
That's really interesting. I did not know there were so many way to consider quantiles. Maybe we should indeed wait for numpy to take a decision on the matter and go with their default choice so we remain consistent with the ecosystem? 2018-03-16 5:36 GMT+01:00 Stephen J. Turnbull < turnbull.steph

Re: [Python-ideas] New PEP proposal -- Pathlib Module Should Contain All File Operations

2018-03-16 Thread Joonas Liik
If there it is desireable to have pathlib used to represent paths that do not map directly to the filesystem.. then it might be an acceptable compromise to have yet another... package that just imports os, pathlib, shutil etc and re-exports all relevant functions. i mean we are talking about conve